ccgfs-user Mailing List for Transport-agnostic network filesystem
Status: Inactive
Brought to you by:
jengelh
You can subscribe to this list here.
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|---|
|
From: András H. <ban...@gm...> - 2015-11-11 10:25:49
|
Hi ccgfs Community,
I wonder that nobody used this mail list before.
ccgfs is really a great idea.
I came across this bug:
Mount my whole fs via ccgfs as root:
$ ccgfs-ssh-pull -s root@localhost:/ -m ~/mnt/test/
Try to set posix acl on ccgfs:
$ setfacl -m user:1002:r-- ~/mnt/test/home/handras/a
Produced syscall on ccgfs-mount side:
lsetxattr("home/handras/a", "system.posix_acl_access",
"\x02\x00\x08\x00\x00\x004\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19\x0f\x02\x00\x04\x00\x00\x00\xe8\x03\x00\x00\x10\x00\x00\x80/home/handra",
52, 0) = -1 EOPNOTSUPP
The same setfacl (directly) works and gives this:
setxattr("/home/handras/a", "system.posix_acl_access",
"\x02\x00\x00\x00\x01\x00\x06\x00\xff\xff\xff\xff\x02\x00\x04\x00\xe9\x03\x00\x00\x02\x00\x04\x00\xea\x03\x00\x00\x04\x00\x05\x00\xff\xff\xff\xff\x10\x00\x05\x00\xff\xff\xff\xff
\x00\x04\x00\xff\xff\xff\xff", 52, 0) = 0
I noticed that local operation uses setxattr and ccgfs uses lsetxattr,
so I rewrote and recompiled ccgfs-storage. So she did:
ccgfs:
setxattr("home/handras/a", "system.posix_acl_access",
"\x02\x00\x08\x00\x00\x004\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19\x0f\x02\x00\x04\x00\x00\x00\xe8\x03\x00\x00\x10\x00\x00\x80/home/handra",
52, 0) = -1 EOPNOTSUPP
directly:
setxattr("/home/handras/a", "system.posix_acl_access",
"\x02\x00\x00\x00\x01\x00\x06\x00\xff\xff\xff\xff\x02\x00\x04\x00\xe9\x03\x00\x00\x02\x00\x04\x00\xea\x03\x00\x00\x04\x00\x05\x00\xff\xff\xff\xff\x10\x00\x05\x00\xff\xff\xff\xff
\x00\x04\x00\xff\xff\xff\xff", 52, 0) = 0
There is a chunked string "/home/handra" (no strace chunked it), so I
think this is a data exchange issue.
Am I right?
Sincerely, handras.
|