vfs_ceph: Implement SMB_VFS_FGET_DOS_ATTRIBUTES to preserve create_time master
authorAnoop C S <anoopcs@samba.org>
Thu, 21 Mar 2024 11:19:04 +0000 (16:49 +0530)
committerAnoop C S <anoopcs@samba.org>
Mon, 1 Apr 2024 10:23:18 +0000 (15:53 +0530)
commite79163f56bb506792ec529cefb6b097102d05fa4
treedbec11da3da736573e90113f5a46823fd865b4e4
parentba86fc1d4c851ec7934697e9071d836c34905107
vfs_ceph: Implement SMB_VFS_FGET_DOS_ATTRIBUTES to preserve create_time

In order to avoid the dependency on dos attribute for create_time we now
preserve the btime before parsing dos attribute which may update btime
from its value with an old one unless we explicitly reset dos attribute
with new create_time in SMB_VFS_FNTIMES implementation. Therefore have
an implementation for SMB_VFS_FGET_DOS_ATTRIBUTES to save and restore
updated create_time.

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_ceph.c