add inode to path and open by id

This commit is contained in:
Ben McClelland
2018-12-02 15:48:41 -08:00
parent 5993eee035
commit 58a5d5e0d7
6 changed files with 246 additions and 30 deletions

View File

@@ -27,13 +27,18 @@ type server struct {
}
func queryPopulation(basedir string, update chan<- int) error {
f, err := os.Open(path)
if err != nil {
return err
}
defer f.Close()
h, err := scoutfs.NewQuery(basedir,
scoutfs.ByMSeq(scoutfs.InodesEntry{},
scoutfs.InodesEntry{Major: max64, Minor: max32, Ino: max64}))
if err != nil {
return fmt.Errorf("scoutfs new handle: %v", err)
}
defer h.Close()
count := 0
for {