Actions
Bug #1957
closedceph-fuse: have "." and ".." entries consistently
% Done:
0%
Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
I was cleaning old emails and found this: http://marc.info/?l=ceph-devel&m=130688351921306&w=2
Quick experiment says:
$ ls -a -l total 1 drwxr-xr-x 1 root root 0 2012-01-20 14:51 ./ $ mkdir z $ ls -la z total 1 drwxr-xr-x 1 root root 0 2012-01-20 14:52 ./ drwxr-xr-x 1 root root 0 2012-01-20 14:52 ../
So it seems subdirectories currently get a "..", but the top-level doesn't. Counterexample for /proc:
$ ls -la /proc|head -3 total 4 dr-xr-xr-x 213 root root 0 2012-01-17 00:37 ./ drwxr-xr-x 24 root root 4096 2011-11-22 09:51 ../
Updated by Sage Weil over 12 years ago
this is specifically me not know how to handle .. on the root directory with fuse. sshfs does it, though, so it's possible; someone needs to look at that code.
Updated by Sam Lang over 11 years ago
- Assignee set to Sam Lang
It looks like the trick is to use a fake inode number when filling in the parent (..) entry. I chose 2, as 1 is already taken to refer to the root dir.
Updated by John Spray over 7 years ago
- Project changed from Ceph to CephFS
- Category deleted (
11)
Bulk updating project=ceph category=ceph-fuse issues to move to fs project so that we can remove the ceph-fuse category from the ceph project
Actions