Commit 65a00e12 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Don't set Inodes in Readdir.

parent d8ad3cc4
......@@ -223,7 +223,7 @@ func (self *PassThroughDir) ReadDir(input *fuse.ReadIn) (*fuse.DirEntryList, fus
list := fuse.NewDirEntryList(int(input.Size))
if self.leftOver != nil {
success := list.AddString(self.leftOver.Name, self.leftOver.Ino, self.leftOver.Mode)
success := list.AddString(self.leftOver.Name, fuse.FUSE_UNKNOWN_INO, self.leftOver.Mode)
self.exported++
if !success {
panic("No space for single entry.")
......@@ -236,7 +236,7 @@ func (self *PassThroughDir) ReadDir(input *fuse.ReadIn) (*fuse.DirEntryList, fus
if fi == nil {
break
}
if !list.AddString(fi.Name, fi.Ino, fi.Mode) {
if !list.AddString(fi.Name, fuse.FUSE_UNKNOWN_INO, fi.Mode) {
self.leftOver = fi
break
}
......
......@@ -38,6 +38,8 @@ const (
FUSE_BIG_WRITES = (1 << 5)
FUSE_DONT_MASK = (1 << 6)
FUSE_UNKNOWN_INO = 0xffffffff
CUSE_UNRESTRICTED_IOCTL = (1 << 0)
FUSE_RELEASE_FLUSH = (1 << 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment