xfsprogs: initialize filetype for xfs_name_dot
PATCH 1/1 xfsprogs: initialize filetype for xfs_name_dot
If we add the '.' entry in repair, make sure it has a file type initialized.
---
repair/phase6.c +3 -1
@@ -34,7 +34,9 @@ static struct cred zerocr;static struct fsxattr zerofsx;static xfs_ino_t orphanage_ino; -static struct xfs_name xfs_name_dot = {(unsigned char *)"." ,1 }; +static struct xfs_name xfs_name_dot = {(unsigned char *)"." , +1 , +XFS_DIR3_FT_DIR };/* * Data structures used to keep track of directories where the ".."
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 5 lines · Eric Sandeen
If we add the '.' entry in repair, make sure it has a file type initialized.
Signed-off-by Eric Sandeen<[email protected]>---
This looks good.
looks like shared code xfs_dir_lookup() returns the ci match in a xfs_name without a file type. Not used now, but may be handy.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
This has been committed.
Thanks
--Rich
commit 1acc538540ce22e16bb55ca573691070a8d375db
Author: Eric Sandeen <[email protected]> Date: Tue Sep 17 16:56:59 2013 +0000
xfsprogs: initialize filetype for xfs_name_dot
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs