vfs_ceph: Implement SMB_VFS_FGET_DOS_ATTRIBUTES to preserve create_time
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 15:24:39 +0000 (15:24 +0000)
commitdd2289eb3ae83b6586493a14098a7e7eddc1ec63
treedbec11da3da736573e90113f5a46823fd865b4e4
parentf3c185a6294d4d92c43687a0ebe64f9cf59a4a2a
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>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Mon Apr  1 15:24:39 UTC 2024 on atb-devel-224
source3/modules/vfs_ceph.c