summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifspdu.h
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2007-07-15 01:48:57 +0000
committerSteve French <sfrench@us.ibm.com>2007-07-15 01:48:57 +0000
commit2d785a50a8aa404c19f56d2c22445e48e418112b (patch)
tree260f7a1bf95126a8681d170e15337ff0ffad7e17 /fs/cifs/cifspdu.h
parent50c2f75388727018c3c357454a247072915a9e3f (diff)
downloadop-kernel-dev-2d785a50a8aa404c19f56d2c22445e48e418112b.zip
op-kernel-dev-2d785a50a8aa404c19f56d2c22445e48e418112b.tar.gz
[CIFS] Add support for new POSIX unlink
In the cleanup phase of the dbench test, we were noticing sharing violation followed by failed directory removals when dbench did not close the test files before the cleanup phase started. Using the new POSIX unlink, which Samba has supported for a few months, avoids this. Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r--fs/cifs/cifspdu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h
index 9044d98..6a2056e 100644
--- a/fs/cifs/cifspdu.h
+++ b/fs/cifs/cifspdu.h
@@ -2155,6 +2155,12 @@ typedef struct {
/* struct following varies based on requested level */
} __attribute__((packed)) OPEN_PSX_RSP; /* level 0x209 SetPathInfo data */
+#define SMB_POSIX_UNLINK_FILE_TARGET 0
+#define SMB_POSIX_UNLINK_DIRECTORY_TARGET 1
+
+struct unlink_psx_rq { /* level 0x20a SetPathInfo */
+ __le16 type;
+} __attribute__((packed));
struct file_internal_info {
__u64 UniqueId; /* inode number */
OpenPOWER on IntegriCloud