diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-11-26 03:55:07 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-01-07 22:46:06 +0100 |
commit | 5408990aa662bcfd6ba894734023a023a16e8729 (patch) | |
tree | 926738354eaea0c27e823c560fa78920973f9e08 /fs/smb/client/cifsglob.h | |
parent | smb: client: fix renaming of reparse points (diff) | |
download | linux-5408990aa662bcfd6ba894734023a023a16e8729.tar.xz linux-5408990aa662bcfd6ba894734023a023a16e8729.zip |
smb: client: fix hardlinking of reparse points
The client was sending an SMB2_CREATE request without setting
OPEN_REPARSE_POINT flag thus failing the entire hardlink operation.
Fix this by setting OPEN_REPARSE_POINT in create options for
SMB2_CREATE request when the source inode is a repase point.
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsglob.h')
-rw-r--r-- | fs/smb/client/cifsglob.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h index ad5cf3e31d73..d5d6aedef558 100644 --- a/fs/smb/client/cifsglob.h +++ b/fs/smb/client/cifsglob.h @@ -405,9 +405,11 @@ struct smb_version_operations { const char *from_name, const char *to_name, struct cifs_sb_info *cifs_sb); /* send create hardlink request */ - int (*create_hardlink)(const unsigned int, struct cifs_tcon *, - const char *, const char *, - struct cifs_sb_info *); + int (*create_hardlink)(const unsigned int xid, + struct cifs_tcon *tcon, + struct dentry *source_dentry, + const char *from_name, const char *to_name, + struct cifs_sb_info *cifs_sb); /* query symlink target */ int (*query_symlink)(const unsigned int xid, struct cifs_tcon *tcon, |