Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
f13aa600
Commit
f13aa600
authored
Mar 26, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
434deb93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
wcfs/wcfs.go
wcfs/wcfs.go
+1
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+5
-5
No files found.
wcfs/wcfs.go
View file @
f13aa600
...
@@ -1257,7 +1257,7 @@ func (watch *Watch) GetAttr(out *fuse.Attr, f nodefs.File, fctx *fuse.Context) f
...
@@ -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_IFLNK - the kernel wants to follow the link
// XXX S_IFDIR - os.open complains "is a directory" (maybe could workaround)
// 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
// 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
return
st
}
}
...
...
wcfs/wcfs_test.py
View file @
f13aa600
...
@@ -367,13 +367,13 @@ class tWatch:
...
@@ -367,13 +367,13 @@ class tWatch:
# python/stdio lock file object on read/write
# python/stdio lock file object on read/write
# however we need both read and write to be working simultaneously
# however we need both read and write to be working simultaneously
print
(
'
\
n
\
n
'
)
#
print('\n\n')
os
.
system
(
"ls -l %s"
%
tdb
.
path
(
"head"
))
#
os.system("ls -l %s" % tdb.path("head"))
print
(
'
\
n
\
n
'
)
#
print('\n\n')
#os.system("LANG=C strace stat %s" % tdb.path("head/watch"))
#os.system("LANG=C strace stat %s" % tdb.path("head/watch"))
#print('\n\n')
#print('\n\n')
os
.
system
(
"LANG=C strace cat %s"
%
tdb
.
path
(
"head/watch"
))
#
os.system("LANG=C strace cat %s" % tdb.path("head/watch"))
print
(
'
\
n
\
n
'
)
#
print('\n\n')
t
.
wh
=
os
.
open
(
tdb
.
path
(
"head/watch"
),
os
.
O_RDWR
)
t
.
wh
=
os
.
open
(
tdb
.
path
(
"head/watch"
),
os
.
O_RDWR
)
t
.
wrx
=
os
.
fdopen
(
t
.
wh
,
'rb'
)
t
.
wrx
=
os
.
fdopen
(
t
.
wh
,
'rb'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment