[PVFS-developers] libpvfs: rename bug

Rob Ross rross at mcs.anl.gov
Thu Mar 4 16:48:49 EST 2004


On Thu, 4 Mar 2004, Porter Don wrote:

> Ok, so I have a fix that should always do the right thing.  Attached is an
> appended version of the patch I sent before.
> 
> The kernel module didn't have a handy place to keep fs_ino.  The more I
> thought about it, the more wonky it seemed for the manager to trust the
> client to tell it the correct fs_ino, since the manager is the keeper of
> that info anyway.  
> 
> So, I took the line in mgr:do_open() where the fs_ino of the ack is set and
> moved it before the md_open call and set the incoming req instead.  Thus,
> all metadata files are created with the proper fs_ino.  This field shouldn't
> be changed by any other functions, so this should get it right, thus
> allowing library applications to rename files created by the kernel.

Yeah this sounds like the right call.

Thanks Don; I'll try to not wait a month before I get this checked in...

Rob



More information about the PVFS-developers mailing list