summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-07-08 16:22:44 -0700
committerTim Prouty <tprouty@samba.org>2009-07-08 21:36:04 -0700
commit3a7d372e2eb5ab00986aafe69ac715a68faa077f (patch)
tree2fba0fae51888d6792f8eae16fde5d2d547f5066 /source3/include
parent83e5ac569577566fa171b8f4288e26e5129015ab (diff)
downloadsamba-3a7d372e2eb5ab00986aafe69ac715a68faa077f.tar.gz
samba-3a7d372e2eb5ab00986aafe69ac715a68faa077f.tar.bz2
samba-3a7d372e2eb5ab00986aafe69ac715a68faa077f.zip
s3: Change the share_mode_lock struct to store a base_name and stream_name
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h10
-rw-r--r--source3/include/smb.h3
2 files changed, 6 insertions, 7 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index aaedc15726..f887b4e796 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -3443,16 +3443,14 @@ char *share_mode_str(TALLOC_CTX *ctx, int num, const struct share_mode_entry *e)
struct share_mode_lock *get_share_mode_lock(TALLOC_CTX *mem_ctx,
const struct file_id id,
const char *servicepath,
- const char *fname,
+ const struct smb_filename *smb_fname,
const struct timespec *old_write_time);
struct share_mode_lock *fetch_share_mode_unlocked(TALLOC_CTX *mem_ctx,
- const struct file_id id,
- const char *servicepath,
- const char *fname);
+ const struct file_id id);
bool rename_share_filename(struct messaging_context *msg_ctx,
struct share_mode_lock *lck,
const char *servicepath,
- const char *newname);
+ const struct smb_filename *smb_fname);
void get_file_infos(struct file_id id,
bool *delete_on_close,
struct timespec *write_time);
@@ -6581,7 +6579,7 @@ bool open_match_attributes(connection_struct *conn,
NTSTATUS fcb_or_dos_open(struct smb_request *req,
connection_struct *conn,
files_struct *fsp_to_dup_into,
- const char *fname,
+ const struct smb_filename *smb_fname,
struct file_id id,
uint16 file_pid,
uint16 vuid,
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 87fd2b05cc..9afeb67b00 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -774,7 +774,8 @@ Offset Data length.
struct share_mode_lock {
const char *servicepath; /* canonicalized. */
- const char *filename;
+ const char *base_name;
+ const char *stream_name;
struct file_id id;
int num_share_modes;
struct share_mode_entry *share_modes;