]> git.openpandora.org Git - pandora-kernel.git/commitdiff
cifs: Add create MFSymlinks to protocol ops struct
authorSachin Prabhu <sprabhu@redhat.com>
Mon, 25 Nov 2013 17:09:52 +0000 (17:09 +0000)
committerSteve French <smfrench@gmail.com>
Mon, 20 Jan 2014 06:14:00 +0000 (00:14 -0600)
Add a new protocol ops function create_mf_symlink and have
create_mf_symlink() use it.

This patchset moves the MFSymlink operations completely to the
ops structure so that we only use the right protocol versions when
querying or creating MFSymlinks.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/link.c
fs/cifs/smb1ops.c

index fba4d1341f88977416cd0bbf982591e7df3c2bdc..61228b7f6b67d97347811d543e494e0a4c226d3a 100644 (file)
@@ -373,6 +373,9 @@ struct smb_version_operations {
        int (*query_mf_symlink)(unsigned int, struct cifs_tcon *,
                                struct cifs_sb_info *, const unsigned char *,
                                char *, unsigned int *);
+       int (*create_mf_symlink)(unsigned int, struct cifs_tcon *,
+                                struct cifs_sb_info *, const unsigned char *,
+                                char *, unsigned int *);
        /* if we can do cache read operations */
        bool (*is_read_op)(__u32);
        /* set oplock level for the inode */
index 78bb6d6ad06afd43d53981b8d79ddf3d88ba4354..e88c3b192ef560c445036bedd6852fec9840f73c 100644 (file)
@@ -500,4 +500,8 @@ int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
                          struct cifs_sb_info *cifs_sb,
                          const unsigned char *path, char *pbuf,
                          unsigned int *pbytes_read);
+int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
+                          struct cifs_sb_info *cifs_sb,
+                          const unsigned char *path, char *pbuf,
+                          unsigned int *pbytes_written);
 #endif                 /* _CIFSPROTO_H */
diff --cc fs/cifs/link.c
Simple merge
Simple merge