From: Eric Sandeen Date: Tue, 17 Sep 2013 17:07:45 +0000 (+0000) Subject: xfsprogs: initialize filetype for lost+found creation X-Git-Tag: v3.2.0-alpha2~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68774b900e0c8368342cb12f649572a86ef2f6e4;p=thirdparty%2Fxfsprogs-dev.git xfsprogs: initialize filetype for lost+found creation If we create lost+found make sure it's got the proper filetype. Signed-off-by: Eric Sandeen Reviewed-by: Mark Tinguely Signed-off-by: Rich Johnston --- diff --git a/repair/phase6.c b/repair/phase6.c index 580dbf7f4..f84bdc083 100644 --- a/repair/phase6.c +++ b/repair/phase6.c @@ -906,6 +906,8 @@ mk_orphanage(xfs_mount_t *mp) xname.name = (unsigned char *)ORPHANAGE; xname.len = strlen(ORPHANAGE); + xname.type = XFS_DIR3_FT_DIR; + if (libxfs_dir_lookup(NULL, pip, &xname, &ino, NULL) == 0) return ino;