return NT_STATUS_OBJECT_NAME_NOT_FOUND;
}
+ /* 2. proceed with opening file */
+
+ /*
+ * refetch with lock and update the pid
+ */
+ talloc_free(sharemode_lock);
+ sharemode_lock = get_share_mode_lock(mem_ctx,
+ op->global->backend_file_id);
+ if (sharemode_lock == NULL) {
+ return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+ }
+
/*
- *
- * - refetch with lock and update the pid
- * - reopen the file with SMB_VFS_OPEN()
* - build a files_struct
* - release the sharemode lock
* - update fsp pointer in smbXsrv_open
*
* ... think about seek()
*/
- /* 2. proceed with opening file */
return NT_STATUS_NOT_IMPLEMENTED;
}