summaryrefslogtreecommitdiff
path: root/source3/smbd/dosmode.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-08-10 15:07:53 -0700
committerJeremy Allison <jra@samba.org>2009-08-10 15:07:53 -0700
commitc9dca82ed7757f4745edf6ee6048bd94d86c4dbc (patch)
tree39022ef781029f7de9e9948f644e071f11347e3b /source3/smbd/dosmode.c
parent303e49b2f1d3cc437c399fb8d59b8eb60e86f86c (diff)
downloadsamba-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.c20
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;
+}