* [PATCH] xfs_repair: add d_type when moving files to lost+found
@ 2013-10-18 17:59 Eric Sandeen
2013-10-18 18:20 ` Rich Johnston
2013-10-18 18:29 ` Rich Johnston
0 siblings, 2 replies; 4+ messages in thread
From: Eric Sandeen @ 2013-10-18 17:59 UTC (permalink / raw)
To: xfs-oss
When we move disconnected inodes to lost+found, they aren't
assigned a dtype. Fix this by just setting XFS_DIR3_FT_UNKNOWN
for now. If the files are moved out of lost+found, the type
will be properly set at that time.
When repair gains more type knowledge we could use xfs_mode_to_ftype[]
to set the proper type when moved, but right now it's not a big
deal; UNKNOWN will suffice for files in lost+found, and prevents
us from using an uninitialized value.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/repair/phase6.c b/repair/phase6.c
index f84bdc0..41f6bfc 100644
--- a/repair/phase6.c
+++ b/repair/phase6.c
@@ -1041,6 +1041,8 @@ mv_orphanage(
xname.name = fname;
xname.len = snprintf((char *)fname, sizeof(fname), "%llu",
(unsigned long long)ino);
+ /* XXX use xfs_mode_to_ftype[] when userspace gains it */
+ xname.type = XFS_DIR3_FT_UNKNOWN;
err = libxfs_iget(mp, NULL, orphanage_ino, 0, &orphanage_ip, 0);
if (err)
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] xfs_repair: add d_type when moving files to lost+found
2013-10-18 17:59 [PATCH] xfs_repair: add d_type when moving files to lost+found Eric Sandeen
@ 2013-10-18 18:20 ` Rich Johnston
2013-10-18 18:27 ` Rich Johnston
2013-10-18 18:29 ` Rich Johnston
1 sibling, 1 reply; 4+ messages in thread
From: Rich Johnston @ 2013-10-18 18:20 UTC (permalink / raw)
To: Eric Sandeen, xfs-oss
This has been committed.
Thanks
--Rich
commit dd536e1212d9008a182627b6333d69b2f8c1c393
Author: Eric Sandeen <sandeen@redhat.com>
Date: Fri Oct 18 17:57:37 2013 +0000
xfsprogs: Note projid32bit default change in mkfs.xfs manpage
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xfs_repair: add d_type when moving files to lost+found
2013-10-18 18:20 ` Rich Johnston
@ 2013-10-18 18:27 ` Rich Johnston
0 siblings, 0 replies; 4+ messages in thread
From: Rich Johnston @ 2013-10-18 18:27 UTC (permalink / raw)
To: Eric Sandeen, xfs-oss
oops ment to send this
Looks good.
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
On 10/18/2013 01:20 PM, Rich Johnston wrote:
> This has been committed.
>
> Thanks
> --Rich
>
> commit dd536e1212d9008a182627b6333d69b2f8c1c393
> Author: Eric Sandeen <sandeen@redhat.com>
> Date: Fri Oct 18 17:57:37 2013 +0000
>
> xfsprogs: Note projid32bit default change in mkfs.xfs manpage
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xfs_repair: add d_type when moving files to lost+found
2013-10-18 17:59 [PATCH] xfs_repair: add d_type when moving files to lost+found Eric Sandeen
2013-10-18 18:20 ` Rich Johnston
@ 2013-10-18 18:29 ` Rich Johnston
1 sibling, 0 replies; 4+ messages in thread
From: Rich Johnston @ 2013-10-18 18:29 UTC (permalink / raw)
To: Eric Sandeen, xfs-oss
This has been committed.
Thanks
--Rich
commit 2cca1dbd1c3e12d270a9baa5f85e548e8a5a2125
Author: Eric Sandeen <sandeen@redhat.com>
Date: Fri Oct 18 17:59:36 2013 +0000
xfs_repair: add d_type when moving files to lost+found
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-18 18:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-18 17:59 [PATCH] xfs_repair: add d_type when moving files to lost+found Eric Sandeen
2013-10-18 18:20 ` Rich Johnston
2013-10-18 18:27 ` Rich Johnston
2013-10-18 18:29 ` Rich Johnston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox