* [Lustre-devel] accessing object version from user space?
@ 2011-05-03 12:46 Erich Focht
2011-05-03 19:35 ` Andreas Dilger
0 siblings, 1 reply; 4+ messages in thread
From: Erich Focht @ 2011-05-03 12:46 UTC (permalink / raw)
To: lustre-devel
Hi,
is there a way to access the file objects version information (epoch, transno, whatever is used
for version based recovery) from user space? If yes, is that possible for lustre 1.8.x, too?
Looking for a way to check (quickly) whether a file has changed while copying it away...
Erich
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Lustre-devel] accessing object version from user space?
2011-05-03 12:46 [Lustre-devel] accessing object version from user space? Erich Focht
@ 2011-05-03 19:35 ` Andreas Dilger
2011-05-04 16:36 ` Erich Focht
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Dilger @ 2011-05-03 19:35 UTC (permalink / raw)
To: lustre-devel
On May 3, 2011, at 06:46, Erich Focht wrote:
> is there a way to access the file objects version information (epoch, transno, whatever is used
> for version based recovery) from user space? If yes, is that possible for lustre 1.8.x, too?
> Looking for a way to check (quickly) whether a file has changed while copying it away...
Comparing the ctime at the start/end of the copy should be enough for that.
Cheers, Andreas
--
Andreas Dilger
Principal Engineer
Whamcloud, Inc.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Lustre-devel] accessing object version from user space?
2011-05-03 19:35 ` Andreas Dilger
@ 2011-05-04 16:36 ` Erich Focht
2011-05-05 16:48 ` Andreas Dilger
0 siblings, 1 reply; 4+ messages in thread
From: Erich Focht @ 2011-05-04 16:36 UTC (permalink / raw)
To: lustre-devel
On 05/03/2011 09:35 PM, Andreas Dilger wrote:
> On May 3, 2011, at 06:46, Erich Focht wrote:
>> is there a way to access the file objects version information (epoch, transno, whatever is used
>> for version based recovery) from user space? If yes, is that possible for lustre 1.8.x, too?
>> Looking for a way to check (quickly) whether a file has changed while copying it away...
>
> Comparing the ctime at the start/end of the copy should be enough for that.
You mean ctime of Lustre file, or ctime of file objects on OSTs? Is there a nice way to access those?
Maybe I'm a bit paranoid, but what if a client loses connection to MDS while continuing to write to
OSTs? Just a thought...
Thanks & best regards,
Erich
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Lustre-devel] accessing object version from user space?
2011-05-04 16:36 ` Erich Focht
@ 2011-05-05 16:48 ` Andreas Dilger
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Dilger @ 2011-05-05 16:48 UTC (permalink / raw)
To: lustre-devel
On May 4, 2011, at 10:36, Erich Focht wrote:
> On 05/03/2011 09:35 PM, Andreas Dilger wrote:
>> On May 3, 2011, at 06:46, Erich Focht wrote:
>>> is there a way to access the file objects version information (epoch, transno, whatever is used
>>> for version based recovery) from user space? If yes, is that possible for lustre 1.8.x, too?
>>> Looking for a way to check (quickly) whether a file has changed while copying it away...
>>
>> Comparing the ctime at the start/end of the copy should be enough for that.
>
> You mean ctime of Lustre file, or ctime of file objects on OSTs? Is there a
> nice way to access those?
> Maybe I'm a bit paranoid, but what if a client loses connection to MDS while
> continuing to write to OSTs? Just a thought...
The ctime is derived from the latest ctime of the MDS inode and OST objects (ctime is not allowed to go backward), so even if the client is disconnected from the MDS it will get the latest ctime from the OSTs if the files are being modified there.
Cheers, Andreas
--
Andreas Dilger
Principal Engineer
Whamcloud, Inc.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-05 16:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-03 12:46 [Lustre-devel] accessing object version from user space? Erich Focht
2011-05-03 19:35 ` Andreas Dilger
2011-05-04 16:36 ` Erich Focht
2011-05-05 16:48 ` Andreas Dilger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.