Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321199
b: refs/heads/master
c: 1a500f0
h: refs/heads/master
i:
  321197: e00c120
  321195: a6c331f
  321191: 3bb7a85
  321183: 5ac2b2f
v: v3
  • Loading branch information
Pavel Shilovsky authored and Steve French committed Jul 27, 2012
1 parent 7224739 commit b1a3bad
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f958ca5d88e6071767b10549d544b3475dfb6996
refs/heads/master: 1a500f010fb2d121c58f77ddfde2eca1bde3bfcd
9 changes: 9 additions & 0 deletions trunk/fs/cifs/smb2inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,12 @@ smb2_mkdir_setinfo(struct inode *inode, const char *name,
if (tmprc == 0)
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);
}
1 change: 1 addition & 0 deletions trunk/fs/cifs/smb2ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ struct smb_version_operations smb21_operations = {
.build_path_to_root = smb2_build_path_to_root,
.mkdir = smb2_mkdir,
.mkdir_setinfo = smb2_mkdir_setinfo,
.rmdir = smb2_rmdir,
};

struct smb_version_values smb21_values = {
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/cifs/smb2proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
struct cifs_sb_info *cifs_sb,
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
Expand Down

0 comments on commit b1a3bad

Please sign in to comment.