]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: initialize filetype for lost+found creation
authorEric Sandeen <sandeen@sandeen.net>
Tue, 17 Sep 2013 17:07:45 +0000 (17:07 +0000)
committerRich Johnston <rjohnston@sgi.com>
Thu, 17 Oct 2013 20:39:05 +0000 (15:39 -0500)
If we create lost+found make sure it's got the proper filetype.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
repair/phase6.c

index 580dbf7f4db0bd295d821be13bcfa5d88d5d8438..f84bdc08371975b578dabf4e0205161a9a2aaaee 100644 (file)
@@ -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;