]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: initialize filetype for xfs_name_dot
authorEric Sandeen <sandeen@redhat.com>
Tue, 17 Sep 2013 16:56:59 +0000 (16:56 +0000)
committerRich Johnston <rjohnston@sgi.com>
Thu, 17 Oct 2013 18:52:02 +0000 (13:52 -0500)
If we add the '.' entry in repair, make sure it has a file type
initialized.

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 a4ad7a311dcc5f2a1942061b4eef2e8f381e00b5..580dbf7f4db0bd295d821be13bcfa5d88d5d8438 100644 (file)
@@ -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 ".."