diff options
author | Steve French <sfrench@us.ibm.com> | 2007-07-15 01:48:57 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-07-15 01:48:57 +0000 |
commit | 2d785a50a8aa404c19f56d2c22445e48e418112b (patch) | |
tree | 260f7a1bf95126a8681d170e15337ff0ffad7e17 /fs/cifs/cifspdu.h | |
parent | 50c2f75388727018c3c357454a247072915a9e3f (diff) | |
download | linux-2d785a50a8aa404c19f56d2c22445e48e418112b.tar.gz linux-2d785a50a8aa404c19f56d2c22445e48e418112b.tar.bz2 linux-2d785a50a8aa404c19f56d2c22445e48e418112b.zip |
[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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h index 9044d9886f0d..6a2056e58ceb 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 */ |