On Tue, Aug 17, 2004 at 12:35:56AM +0200, Markus Lidel wrote:
> 1. Is there a facility to iterate over each used inode?
xfs_bulkstat. although I doubt it fits your needs.
> 2. how could i easily copy the inode to a free space outside the current
> agi (i thought of setting pag.pagf_freeblks, pag.pagf_flcount,
> pag.pagf_longest to 0).
You could try by marking the AG unavailable to the allocator and use
> 3. have i missed something or is there a better way to do it?
As it seems you're trying to implement online shrinking of a filesystem,
remember that moving an inode around actually changes the inode number
in XFS, which will you get all kinds of funnies not only with the kernel
but also userspace and nfs clients.