Commit f13aa600 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 434deb93
......@@ -1257,7 +1257,7 @@ func (watch *Watch) GetAttr(out *fuse.Attr, f nodefs.File, fctx *fuse.Context) f
// XXX S_IFLNK - the kernel wants to follow the link
// XXX S_IFDIR - os.open complains "is a directory" (maybe could workaround)
// XXX S_IFCHR - fusermount always adds nodev mount option -> the device cannot be accessed
out.Mode = syscall.S_IFSOCK | 0644
//out.Mode = syscall.S_IFSOCK | 0644
return st
}
......
......@@ -367,13 +367,13 @@ class tWatch:
# python/stdio lock file object on read/write
# however we need both read and write to be working simultaneously
print('\n\n')
os.system("ls -l %s" % tdb.path("head"))
print('\n\n')
#print('\n\n')
#os.system("ls -l %s" % tdb.path("head"))
#print('\n\n')
#os.system("LANG=C strace stat %s" % tdb.path("head/watch"))
#print('\n\n')
os.system("LANG=C strace cat %s" % tdb.path("head/watch"))
print('\n\n')
#os.system("LANG=C strace cat %s" % tdb.path("head/watch"))
#print('\n\n')
t.wh = os.open(tdb.path("head/watch"), os.O_RDWR)
t.wrx = os.fdopen(t.wh, 'rb')
......
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