Leaving dir_data flags on filetype will confuse "ncheck -c".
This also adds man page and help message for the "-D" option
of ls.
Change-Id: I5bbaf1b6845eaa6c2b6d97818c174f56b669f27d
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/33574
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
This can be used to try to track down journal problems even after the
journal has been replayed.
.TP
-.BI ls " [-l] [-c] [-d] [-p] [-r] filespec"
+.BI ls " [-l] [-c] [-d] [-p] [-r] [-D] filespec"
Print a listing of the files in the directory
.IR filespec .
The
The
.I \-r
flag will force the printing of the filename, even if it is encrypted.
+The
+.I \-D
+flag will print the extra data found inside each entry when the
+.I \-l
+flag is used.
.TP
.BI list_deleted_inodes " [limit]"
List deleted inodes, optionally limited to those deleted within
if (argc > optind+1) {
print_usage:
- com_err(0, 0, "Usage: ls [-c] [-d] [-l] [-p] [-r] file");
+ com_err(0, 0, "Usage: ls [-c] [-d] [-l] [-p] [-r] [-D] file");
return;
}
iw->position++;
if (iw->position <= 2)
return 0;
+ if (current_fs->super->s_feature_incompat &
+ EXT4_FEATURE_INCOMPAT_DIRDATA)
+ filetype &= EXT2_FT_MASK;
for (i=0; i < iw->num_inodes; i++) {
if (iw->iarray[i] == dirent->inode) {
if (!iw->parent && !iw->get_pathname_failed) {