[PVFS-developers] metadata file size checking
Don Porter
porterde at mercury.hendrix.edu
Thu May 13 18:48:01 EDT 2004
Err, make that stat in metaopen an lstat (not stat) or some symlinks
might not work.
Thanks,
don
On Thu, 2004-05-06 at 17:11, Rob Ross wrote:
> Hi Don,
>
> Any feel for the overhead of doing this on every open/create?
>
> Thanks,
>
> Rob
>
> Porter Don wrote:
> > Greetings all,
> >
> > I wanted to implement some protection against overwriting a metadata file
> > that has not had the migration script run on it after an upgrade. So I
> > ended up stat-ing the file in meta-open and if it is not a directory and its
> > size is not the same as a struct fmeta, then the manager will return an
> > EINVAL (open to suggestions for better error code) and print a message to
> > logs. See below:
>
> [snip]
>
> > Thanks and let me know what you all think,
> > don
More information about the PVFS-developers
mailing list