]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - LinuxGUI/Ventoy2Disk/Web/ventoy_http.c
1. Add new options for Windows CLI mode.
[Ventoy.git] / LinuxGUI / Ventoy2Disk / Web / ventoy_http.c
index 561e0807d2b6fb0856ab07035f89dd23a1d6e963..d221dd390fd983978b02d867877ee32b1e91330e 100644 (file)
@@ -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)
     {