diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-07-23 15:15:36 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-08-07 20:40:09 +0200 |
commit | 7c33d5972ce382bcc506d16235f1e9b7d22cbef8 (patch) | |
tree | 6c14b1457b9dfa34d6798c67f1b7031fdcf9ff76 /fs/cifs/cifsfs.c | |
parent | hostfs: support rename flags (diff) | |
download | linux-7c33d5972ce382bcc506d16235f1e9b7d22cbef8.tar.xz linux-7c33d5972ce382bcc506d16235f1e9b7d22cbef8.zip |
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>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 888398067420..ac4f260155c8 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -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, |