diff options
author | Jeremy Allison <jra@samba.org> | 2009-08-12 13:00:54 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-08-12 13:00:54 -0700 |
commit | d6270df748dcfd8d5a02c328518c2332da8fbed5 (patch) | |
tree | 7e921433a6e293f54fac3c0405b42be36ff7ac78 /source3/include | |
parent | 1ddd10b56aea663b06768638d83e3bdcfea9ec89 (diff) | |
download | samba-d6270df748dcfd8d5a02c328518c2332da8fbed5.tar.gz samba-d6270df748dcfd8d5a02c328518c2332da8fbed5.tar.bz2 samba-d6270df748dcfd8d5a02c328518c2332da8fbed5.zip |
Add "store create time" parameter (docs to follow)
that stores the create time in the user.DosTimestamps EA.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 12 | ||||
-rw-r--r-- | source3/include/smb.h | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 8b3e029d3f..963e6df0c8 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4187,6 +4187,7 @@ bool lp_administrative_share(int ); bool lp_print_ok(int ); bool lp_map_hidden(int ); bool lp_map_archive(int ); +bool lp_store_create_time(int ); bool lp_store_dos_attributes(int ); bool lp_dmapi_support(int ); bool lp_locking(const struct share_params *p ); @@ -6266,10 +6267,17 @@ bool set_sticky_write_time_fsp(struct files_struct *fsp, struct timespec mtime); bool update_write_time(struct files_struct *fsp); -struct timespec get_create_timespec(struct files_struct *fsp, +NTSTATUS set_create_timespec_ea(connection_struct *conn, + struct files_struct *fsp, + const struct smb_filename *smb_fname, + struct timespec create_time); + +struct timespec get_create_timespec(connection_struct *conn, + struct files_struct *fsp, const struct smb_filename *smb_fname); -struct timespec get_change_timespec(struct files_struct *fsp, +struct timespec get_change_timespec(connection_struct *conn, + struct files_struct *fsp, const struct smb_filename *smb_fname); /* The following definitions come from smbd/error.c */ diff --git a/source3/include/smb.h b/source3/include/smb.h index fb01a92113..28bd60a670 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1859,6 +1859,8 @@ struct ea_list { #define SAMBA_XATTR_DOS_ATTRIB "user.DOSATTRIB" /* Prefix for DosStreams in the vfs_streams_xattr module */ #define SAMBA_XATTR_DOSSTREAM_PREFIX "user.DosStream." +/* Prefix for DOS timestamps. */ +#define SAMBA_XATTR_DOSTIMESTAMPS "user.DosTimestamps" #define UUID_SIZE 16 |