mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-05-24 20:14:33 -04:00
1. Add new options for Windows CLI mode.
2. Add tip message for 4k native disk.
This commit is contained in:
parent
e0132ac4b5
commit
4df793e021
46 changed files with 509 additions and 76 deletions
|
@ -1122,6 +1122,13 @@ static int ventoy_api_install(struct mg_connection *conn, VTOY_JSON *json)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (disk->is4kn)
|
||||
{
|
||||
vlog("disk %s is 4k native, not supported.\n", diskname);
|
||||
ventoy_json_result(conn, VTOY_JSON_4KN_RET);
|
||||
return 0;
|
||||
}
|
||||
|
||||
scnprintf(path, "/sys/block/%s", diskname);
|
||||
if (access(path, F_OK) < 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue