diff options
author | Jeremy Allison <jra@samba.org> | 2009-08-10 15:07:53 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-08-10 15:07:53 -0700 |
commit | c9dca82ed7757f4745edf6ee6048bd94d86c4dbc (patch) | |
tree | 39022ef781029f7de9e9948f644e071f11347e3b /source3/smbd/dosmode.c | |
parent | 303e49b2f1d3cc437c399fb8d59b8eb60e86f86c (diff) | |
download | samba-c9dca82ed7757f4745edf6ee6048bd94d86c4dbc.tar.gz samba-c9dca82ed7757f4745edf6ee6048bd94d86c4dbc.tar.bz2 samba-c9dca82ed7757f4745edf6ee6048bd94d86c4dbc.zip |
Refactor the use of create_time and change time to go
through functions. Will aid in making us pass RAW-SETFILEINFO.
Jeremy.
Diffstat (limited to 'source3/smbd/dosmode.c')
-rw-r--r-- | source3/smbd/dosmode.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index 535532d07a..f4803cb68d 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -851,3 +851,23 @@ bool update_write_time(struct files_struct *fsp) return true; } + +/****************************************************************** + Return a create time (may look at EA in future). +******************************************************************/ + +struct timespec get_create_timespec(struct files_struct *fsp, + const struct smb_filename *smb_fname) +{ + return smb_fname->st.st_ex_btime; +} + +/****************************************************************** + Return a change time (may look at EA in future). +******************************************************************/ + +struct timespec get_change_timespec(struct files_struct *fsp, + const struct smb_filename *smb_fname) +{ + return smb_fname->st.st_ex_mtime; +} |