xfs
[Top] [All Lists]

[PATCH] xfsprogs: initialize filetype for xfs_name_dot

To: "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>
Subject: [PATCH] xfsprogs: initialize filetype for xfs_name_dot
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Tue, 17 Sep 2013 11:56:59 -0500
Delivered-to: linux-xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
If we add the '.' entry in repair, make sure it has a file type
initialized.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

diff --git a/repair/phase6.c b/repair/phase6.c
index a4ad7a3..580dbf7 100644
--- a/repair/phase6.c
+++ b/repair/phase6.c
@@ -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 ".."

<Prev in Thread] Current Thread [Next in Thread>