fix: 修复写队列 busy 恢复、关闭安全、备份与配置构建问题

This commit is contained in:
Nixevol
2026-09-30 16:21:05 +08:00
parent 4059a1576b
commit 57c2f70678
23 changed files with 825 additions and 101 deletions
+17
View File
@@ -0,0 +1,17 @@
//go:build windows
package store
import "golang.org/x/sys/windows"
func availableBytes(path string) (uint64, error) {
p, err := windows.UTF16PtrFromString(path)
if err != nil {
return 0, err
}
var free, total, totalFree uint64
if err := windows.GetDiskFreeSpaceEx(p, &free, &total, &totalFree); err != nil {
return 0, err
}
return free, nil
}