cifs: support RENAME_NOREPLACE
This flag gives CIFS the ability to support its native rename semantics. Implementation is simple: just bail out before trying to hack around the noreplace semantics. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Steve French <smfrench@gmail.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -848,7 +848,7 @@ const struct inode_operations cifs_dir_inode_ops = {
|
||||
.link = cifs_hardlink,
|
||||
.mkdir = cifs_mkdir,
|
||||
.rmdir = cifs_rmdir,
|
||||
.rename = cifs_rename,
|
||||
.rename2 = cifs_rename2,
|
||||
.permission = cifs_permission,
|
||||
/* revalidate:cifs_revalidate, */
|
||||
.setattr = cifs_setattr,
|
||||
|
Reference in New Issue
Block a user