[PVFS-developers] Return of the Rename Bug
Rob Ross
rross at mcs.anl.gov
Fri May 14 16:01:18 EDT 2004
Hi,
This has been applied now. Thanks!
Rob
On Tue, 4 May 2004, Porter Don wrote:
> The rename patch against 1.6.0 I sent a month or so ago didn't get cleanly
> applied to cvs and the 1.6.3 prerelease. Thus renames in the library are
> broken again.
>
> In 1.6.3pre1, the ack's fs_ino is set before the call. The problem is that
> the md_open call gets the information from the req and writes to the ack.
> Thus, the change to the ack is being ignored and the bad fs_ino is still
> getting written to disk. The assignment needs to be made to the req, and
> the correct value will make its way into the req, as below:
>
> diff -ur pvfs-1.6.3-pre1/mgr/mgr.c pvfs-1.6.3-pre1-rename-fix/mgr/mgr.c
> --- pvfs-1.6.3-pre1/mgr/mgr.c Wed Apr 21 15:57:45 2004
> +++ pvfs-1.6.3-pre1-rename-fix/mgr/mgr.c Tue May 4 14:11:45 2004
> @@ -1369,7 +1369,7 @@
> * this is correct in the metadata file, so we fill it in before
> * calling md_open().
> */
> - ack_p->ack.open.meta.fs_ino = fs_p->fs_ino;
> + req_p->req.open.meta.fs_ino = fs_p->fs_ino;
>
> /* md_open() fills in the st_ino structure used below and
> * performs sanity checking on the values passed in
>
> I know this is a bit terse, but I didn't really want to re-explain the
> entire bug. If anyone has questions about this, I would be happy to explain
> further or discuss.
>
> Thanks,
> Don
More information about the PVFS-developers
mailing list