[Top] [All Lists]

Re: REVIEW: xfs_reno #2

To: Barry Naujok <bnaujok@xxxxxxx>
Subject: Re: REVIEW: xfs_reno #2
From: Vlad Apostolov <vapo@xxxxxxx>
Date: Fri, 16 Nov 2007 17:04:09 +1100
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>, xfs-dev <xfs-dev@xxxxxxx>
In-reply-to: <op.tznnweh23jf8g2@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <op.tznnweh23jf8g2@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird (X11/20070728)
Barry Naujok wrote:
A couple changes from the first xfs_reno:

 - Major one is that symlinks are now supported, but only
   owner, group and extended attributes are copied for them
   (not times or inode attributes).

 - Man page!

To make this better, ideally we need some form of
"swap inodes" function in the kernel, where the entire
contents of the inode themselves are swapped. This form
can handle any inode and without any of the dir/file/attr/etc
copy/swap mechanisms we have in xfs_reno.

Hi Barry,

The code is looking good. Some questions and minor remarks bellow.

- init_nodehash() return value is not used

- Why poll_output is volatile?

- I think you meant "exit()" instead of "goto quit" below as
"recover_fd" is not opened yet:

                if (n_opt)
                        goto quit;


- Is dirname(xxx) used as intended? I think it should be xxx = dirname(xxx).

- Some log_message() strings don't have _("text") convention.

I see that you take care to copy the DMAPI fields as well.
Unfortunately changing the inode number in a DMAPI filesystem
would make the DMAPI handle different, which means any application
using DMAPI would not be able to access the new file anymore.

When the XFS parent pointers feature is released we would need to find
out to update the EA to point to the new inode parent directory. This may
not be that easy though.


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