mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
CIFS: Add SMB2 support for rmdir
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
This commit is contained in:
parent
f958ca5d88
commit
1a500f010f
3 changed files with 12 additions and 0 deletions
|
@ -152,3 +152,12 @@ smb2_mkdir_setinfo(struct inode *inode, const char *name,
|
||||||
if (tmprc == 0)
|
if (tmprc == 0)
|
||||||
cifs_i->cifsAttrs = dosattrs;
|
cifs_i->cifsAttrs = dosattrs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
|
||||||
|
struct cifs_sb_info *cifs_sb)
|
||||||
|
{
|
||||||
|
return smb2_open_op_close(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN,
|
||||||
|
0, CREATE_NOT_FILE | CREATE_DELETE_ON_CLOSE,
|
||||||
|
NULL, SMB2_OP_DELETE);
|
||||||
|
}
|
||||||
|
|
|
@ -320,6 +320,7 @@ struct smb_version_operations smb21_operations = {
|
||||||
.build_path_to_root = smb2_build_path_to_root,
|
.build_path_to_root = smb2_build_path_to_root,
|
||||||
.mkdir = smb2_mkdir,
|
.mkdir = smb2_mkdir,
|
||||||
.mkdir_setinfo = smb2_mkdir_setinfo,
|
.mkdir_setinfo = smb2_mkdir_setinfo,
|
||||||
|
.rmdir = smb2_rmdir,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct smb_version_values smb21_values = {
|
struct smb_version_values smb21_values = {
|
||||||
|
|
|
@ -57,6 +57,8 @@ extern int smb2_mkdir(const unsigned int xid, struct cifs_tcon *tcon,
|
||||||
extern void smb2_mkdir_setinfo(struct inode *inode, const char *full_path,
|
extern void smb2_mkdir_setinfo(struct inode *inode, const char *full_path,
|
||||||
struct cifs_sb_info *cifs_sb,
|
struct cifs_sb_info *cifs_sb,
|
||||||
struct cifs_tcon *tcon, const unsigned int xid);
|
struct cifs_tcon *tcon, const unsigned int xid);
|
||||||
|
extern int smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon,
|
||||||
|
const char *name, struct cifs_sb_info *cifs_sb);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SMB2 Worker functions - most of protocol specific implementation details
|
* SMB2 Worker functions - most of protocol specific implementation details
|
||||||
|
|
Loading…
Add table
Reference in a new issue