s3:vfs_gpfs:Fix query of creation time from GPFS
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Tue, 29 Nov 2011 20:23:29 +0000 (13:23 -0700)
committerChristian Ambach <ambi@samba.org>
Fri, 10 Feb 2012 17:10:43 +0000 (18:10 +0100)
commit8ce9982be9dac71bbfc109e7f0c43aec94850c89
tree3ea9b1e5d9a2ed14cdc89ed399d2af7a3b609559
parent318346a9373df9b16c436b8539362ff8d341960e
s3:vfs_gpfs:Fix query of creation time from GPFS

Setting the creation time through SetFileTime on a GPFS file system and
querying it with GetFileTime shows a mismatch.

The vfs_gpfs module first retrieves the information from the operating
system and the flag st_ex_calculated_birthtime is set to false. When
vfs_gpfs retrieves the birthtime from GPFS the flag
st_ex_calculated_birthtime has to be set to true. Otherwise the birth
time will get overwritten by a call to update_stat_ex_mtime, reporting
the wrong time to a client system.

Signed-off-by: Christian Ambach <ambi@samba.org>
source3/modules/vfs_gpfs.c