summaryrefslogtreecommitdiff
path: root/source4/ntvfs/common/opendb.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-02-27 21:50:51 +0100
committerStefan Metzmacher <metze@samba.org>2008-02-28 08:10:50 +0100
commit85d58175c8d046a01da62c0107e29537862ed8a4 (patch)
tree06597a8a7b4697142e70372f36ab075eff7e6368 /source4/ntvfs/common/opendb.h
parent2a209a6a9dcd0c6b7814fa7eb3838dbaf5d57481 (diff)
downloadsamba-85d58175c8d046a01da62c0107e29537862ed8a4.tar.gz
samba-85d58175c8d046a01da62c0107e29537862ed8a4.tar.bz2
samba-85d58175c8d046a01da62c0107e29537862ed8a4.zip
opendb: return the path that should be deleted in odb_close_file()
That means the last close returns the path name if the delete_on_close flag is set. metze (This used to be commit fc27730bad24e8dddaa2e7f754a16811e38a2f60)
Diffstat (limited to 'source4/ntvfs/common/opendb.h')
-rw-r--r--source4/ntvfs/common/opendb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/common/opendb.h b/source4/ntvfs/common/opendb.h
index 9591bcf6b9..c736c25a8d 100644
--- a/source4/ntvfs/common/opendb.h
+++ b/source4/ntvfs/common/opendb.h
@@ -32,7 +32,8 @@ struct opendb_ops {
uint32_t open_disposition, bool break_to_none,
uint32_t oplock_level, uint32_t *oplock_granted);
NTSTATUS (*odb_open_file_pending)(struct odb_lock *lck, void *private);
- NTSTATUS (*odb_close_file)(struct odb_lock *lck, void *file_handle);
+ NTSTATUS (*odb_close_file)(struct odb_lock *lck, void *file_handle,
+ const char **delete_path);
NTSTATUS (*odb_remove_pending)(struct odb_lock *lck, void *private);
NTSTATUS (*odb_rename)(struct odb_lock *lck, const char *path);
NTSTATUS (*odb_set_delete_on_close)(struct odb_lock *lck, bool del_on_close);