durable.txt
authorStefan Metzmacher <metze@samba.org>
Thu, 31 May 2012 07:45:16 +0000 (09:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Jun 2012 09:53:57 +0000 (11:53 +0200)
durable.txt [new file with mode: 0644]

diff --git a/durable.txt b/durable.txt
new file mode 100644 (file)
index 0000000..559d873
--- /dev/null
@@ -0,0 +1,29 @@
+
+- cleanup/add missing stuff to struct smbXsrv_open*
+  - create_guid, application_guid..., file_name
+    desired_access, granted_access, share_mode
+
+- replace get_gen_count() by smbXsrv_open_hash()
+  smbXsrv_open_hash() should calculate the jenkins hash
+  over global->open_persistent_id global->open_volatile_id
+  and global->open_time
+  - in long run we should replace fsp->fh->gen_id with a dynamic
+    blob
+
+- add NTSTATUS SMB_VFS_DURABLE_COOKIE(fsp, mem_ctx, &cookie_blob);
+  vfs_default => NT_STATUS_NOT_IMPLEMENTED
+  vfs_simple_durable => blob = data_blob(fsp->file_id + fsp->fh->gen_id)
+
+- add NTSTATUS SMB_VFS_DURABLE_REOPEN(fsp, cookie_blob);
+  vfs_default => NT_STATUS_NOT_SUPPORTED
+  vfs_simple_durable => what we have currently...
+
+- remove file_find_fd()
+  - in oplocks_linux use a global linked list of
+    struct linux_oplock_fd_mapping {
+           struct linux_oplock_fd_mapping *prev, *next;
+           int fd;
+           struct files_struct *fsp;
+    };
+  - in smb_Dir_destructor() -- I don't know yet...
+