-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/cephfs: add 'scan_links' command which fixes linkages errors
Signed-off-by: Yan, Zheng <zyan@redhat.com>
- Loading branch information
Showing
2 changed files
with
221 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edc84d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ukernel
i have something want to tell you because i don't know if it's a problem
before i get this scan_links() master branch
i create a dir in cephfs and make some hardlink and remove the file the hardlink dir then ll will display the dir has some value but new version display 0 the procedure is:
mkdir test1
mkdir test2
seq 10000|xargs -i dd if =/dev/zero of=test1/a{} bs=1K count=50000
for a in
ls ./test1
;do ln test1/$a test2/$a ; done;rm -rf test1/*
[root@lab8106 mnt]# ll total 0 drwxr-xr-x 1 root root 0 Nov 7 15:51 test1 drwxr-xr-x 1 root root 0 Nov 7 18:16 test2
the test2 display 0
but old version the 0 may some value ,is it a porblem?
edc84d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and after i restart mds and ll dir it will display
[root@lab8106 ~]# ll /mnt
total 0
drwxr-xr-x 1 root root 0 Nov 7 15:51 test1
drwxr-xr-x 1 root root 51200000 Nov 7 23:42 test2