diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:25 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:26 -0400 |
commit | cbe6f439f5762c7fb4d2dd9293f5fdbfc4cd68f8 (patch) | |
tree | c7469d59efb93d1a1d0fe7e40b5224fbed37d84f /fs/cifs/smb2inode.c | |
parent | ed6875e0d6c28e4a6b44da04d6d4363b3d92d630 (diff) |
CIFS: Add SMB2 support for unlink
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2inode.c')
-rw-r--r-- | fs/cifs/smb2inode.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/cifs/smb2inode.c b/fs/cifs/smb2inode.c index 2aa5cb08c526..02a9bda4248c 100644 --- a/fs/cifs/smb2inode.c +++ b/fs/cifs/smb2inode.c | |||
@@ -161,3 +161,12 @@ smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, | |||
161 | 0, CREATE_NOT_FILE | CREATE_DELETE_ON_CLOSE, | 161 | 0, CREATE_NOT_FILE | CREATE_DELETE_ON_CLOSE, |
162 | NULL, SMB2_OP_DELETE); | 162 | NULL, SMB2_OP_DELETE); |
163 | } | 163 | } |
164 | |||
165 | int | ||
166 | smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name, | ||
167 | struct cifs_sb_info *cifs_sb) | ||
168 | { | ||
169 | return smb2_open_op_close(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN, | ||
170 | 0, CREATE_DELETE_ON_CLOSE, NULL, | ||
171 | SMB2_OP_DELETE); | ||
172 | } | ||