auto generate ioctl structs and definitions from scoutfs headers

This commit is contained in:
Ben McClelland
2019-06-28 12:17:29 -07:00
parent 16911b5b0a
commit 92e719d578
6 changed files with 227 additions and 374 deletions

View File

@@ -30,12 +30,12 @@ func main() {
os.Exit(1)
}
f, err := os.Open(os.Args[1])
f, err := os.OpenFile(os.Args[1], os.O_RDWR, 0)
if err != nil {
log.Fatalf("open %v: %v", os.Args[1], err)
}
lxr := scoutfs.NewListXattrRaw(f)
lxr := scoutfs.NewListXattrHidden(f)
for {
attrs, err := lxr.Next()