| To: | David Chinner <dgc@xxxxxxx> |
|---|---|
| Subject: | Re: porting xfs_reno to linux |
| From: | Ruben Porras <ruben.porras@xxxxxxxxxxx> |
| Date: | Wed, 14 Nov 2007 15:19:22 +0100 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20071113210018.GX995458@sgi.com> |
| References: | <4739EB0B.6030407@linworks.de> <20071113210018.GX995458@sgi.com> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla-Thunderbird 2.0.0.6 (X11/20071009) |
David Chinner schrieb:
On Tue, Nov 13, 2007 at 07:20:59PM +0100, Ruben Porras wrote:Sorry, I didn't exlplain myself well enough. I already saw the mail from Barry, but the program needs not only a review. Now xfs_reno filter the inodes with nftw and the stat info. The problem is that we need to filter the inodes according to the AG where they are. Currently there is no way to find this out. Possibilities: a) Extend the bulkstat structure to include the AG number (better not) b) A new ioctl to find out the AG of an inode. and call the ioctl for each file on the fs. c) Find all the inodes in 'marked' AGs. Export it through a new ioctl. xfs_reno needs to find later which files on the fs were on the list. The second way would be to do everything in kernel space. The steps would be: a) Find all the inodes in 'marked' AGs b) Allocate a new inode for each one c) Move the information from each old inode to the new one and unlink the old one. (This is what Barry suggest to do anyway in kernel space) xfs_reno does only steps b) and c). The second needs more work, but it doesn't need to traverse the filesystem several times. Cheers, -- Rubén Porras LinWorks GmbH |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: 2.6.24-rc2 XFS nfsd hang, J. Bruce Fields |
|---|---|
| Next by Date: | Re: 2.6.24-rc2 XFS nfsd hang, Benny Halevy |
| Previous by Thread: | Re: porting xfs_reno to linux, David Chinner |
| Next by Thread: | xfs_repair - what's the damage?, Chris Eddington |
| Indexes: | [Date] [Thread] [Top] [All Lists] |