From c9dca82ed7757f4745edf6ee6048bd94d86c4dbc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 10 Aug 2009 15:07:53 -0700 Subject: Refactor the use of create_time and change time to go through functions. Will aid in making us pass RAW-SETFILEINFO. Jeremy. --- source3/smbd/dosmode.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'source3/smbd/dosmode.c') 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; +} -- cgit