Cannot create deep directories when caps contain "path=/somepath"
ceph-fuse client with having "path=/something" cannot create multiple dirs with mkdir (e.g. mkdir -p 1/2/3/4/5/6/7/8/9/0/1/2/3/4/5/6/7/8/9)
ceph auth caps client.test mds "allow rw path=/test" mon "allow r" osd "allow rw pool=cephfs_data"
it results in:
/mnt/test# mkdir -p 1/2/3/4/5/6/7/8/9/0/1/2/3/4/5/6/7/8/9 mkdir: cannot create directory ‘1/2/3/4’: Permission denied
only part of directory get's created. But using
ceph auth caps client.test mds "allow rw path=/" mon "allow r" osd "allow rw pool=cephfs_data"
allows creation of such dir.
Client get's mounted using same cmd line both times.
First time I noticed this bug in 10.2.0, but it is still present in 10.2.3
#13 Updated by Dan van der Ster over 3 years ago
Thanks Patrick. Indeed wip-17858-jewel resolves this for us. Both mkdir -p and our original untar kernel reproducer in #17893 are working now without permission denied errors. Thanks! Obviously would greatly appreciate if you tagged this for a jewel backport.