[LU-968] e2scan not reporting files Created: 06/Jan/12  Updated: 30/Jan/12  Resolved: 30/Jan/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Alexander Boyko Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: None
Environment:

latest e2fsprogs


Severity: 3
Rank (Obsolete): 6495

 Description   

simple reproduce:
sh lustre/tests/llmount.sh
touch /mnt/lustre/000
mkdir /mnt/lustre/test
touch /mnt/lustre/test/111
touch /mnt/lustre/test/222
stat /mnt/lustre/test/111
sh lustre/tests/llmountcleanup.sh
e2scan -l /tmp/lustre-mdt0

generating list of files with
mtime newer than Thu Jan 5 12:58:21 2012
ctime newer than Thu Jan 5 12:58:21 2012
inode bitmap is read, 0 seconds
visible root: "/"
scanning inode tables .. done
44 inodes, 0 seconds, 28 files, 0 dirs to find
scanning directory blocks (13).. ./lov_objid
./oi.16
./fld
./seq_srv
./seq_ctl
./capa_keys
./last_rcvd
./CATALOGS
./ROOT/000
./CONFIGS/mountdata
./CONFIGS/_mgs-sptlrpc
./CONFIGS/lustre-client
./CONFIGS/lustre-sptlrpc
./CONFIGS/lustre-MDT0000
./CONFIGS/lustre-params
./CONFIGS/changelog_catalog
./CONFIGS/changelog_users
./CONFIGS/sptlrpc
./CONFIGS/lustre-OST0000
./CONFIGS/lustre-OST0001
./NIDTBL_VERSIONS/lustre
./OBJECTS/22:e683f8d4
./OBJECTS/23:e683f8d5
done
13 blocks, 0 seconds, 23 files reported

No file 111, 222.
more information in:
https://bugzilla.clusterstor.com/show_bug.cgi?id=626



 Comments   
Comment by Alexander Boyko [ 06/Jan/12 ]

root cause of the bug:
e2scan/filelist.c have next code at filelist_dblist_iterate_cb() function:
is_dirname = (dirent2->file_type == EXT2_FT_DIR) ? 1 : 0;

for /mnt/lustre/test/ file_type is 18, but type of dir is only 3 bits.

patch is submitted to http://review.whamcloud.com/1925

Comment by Build Master (Inactive) [ 30/Jan/12 ]

Integrated in e2fsprogs-master » x86_64,el5 #183
LU-968 e2scan: fix directory check (Revision 881de8642d4cc3174a85474112e52b2f11310b69)

Result = SUCCESS
alexander_boyko : 881de8642d4cc3174a85474112e52b2f11310b69
Files :

  • patches/e2fsprogs-e2scan.patch
Comment by Build Master (Inactive) [ 30/Jan/12 ]

Integrated in e2fsprogs-master » x86_64,el6 #183
LU-968 e2scan: fix directory check (Revision 881de8642d4cc3174a85474112e52b2f11310b69)

Result = SUCCESS
alexander_boyko : 881de8642d4cc3174a85474112e52b2f11310b69
Files :

  • patches/e2fsprogs-e2scan.patch
Comment by Build Master (Inactive) [ 30/Jan/12 ]

Integrated in e2fsprogs-master » i686,el6 #183
LU-968 e2scan: fix directory check (Revision 881de8642d4cc3174a85474112e52b2f11310b69)

Result = SUCCESS
alexander_boyko : 881de8642d4cc3174a85474112e52b2f11310b69
Files :

  • patches/e2fsprogs-e2scan.patch
Comment by Build Master (Inactive) [ 30/Jan/12 ]

Integrated in e2fsprogs-master » i686,el5 #183
LU-968 e2scan: fix directory check (Revision 881de8642d4cc3174a85474112e52b2f11310b69)

Result = SUCCESS
alexander_boyko : 881de8642d4cc3174a85474112e52b2f11310b69
Files :

  • patches/e2fsprogs-e2scan.patch
Comment by Peter Jones [ 30/Jan/12 ]

Patch landed

Generated at Sat Feb 10 01:12:12 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.