diff options
author | Paulo Alcantara <pc@manguebit.com> | 2024-09-18 21:53:35 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-09-24 21:51:48 -0500 |
commit | a9de67336a4aa3ff2e706ba023fb5f7ff681a954 (patch) | |
tree | b0ed9d742d48df80e4d0dd54555d7395e733d2c5 | |
parent | 4e3ba580f5ab2d74e1e2210aba869aad235349d5 (diff) |
smb: client: set correct device number on nfs reparse points
Fix major and minor numbers set on special files created with NFS
reparse points.
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r-- | fs/smb/client/reparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/smb/client/reparse.c b/fs/smb/client/reparse.c index 48c27581ec51..63984796721a 100644 --- a/fs/smb/client/reparse.c +++ b/fs/smb/client/reparse.c @@ -108,8 +108,8 @@ static int nfs_set_reparse_buf(struct reparse_posix_data *buf, buf->InodeType = cpu_to_le64(type); buf->ReparseDataLength = cpu_to_le16(len + dlen - sizeof(struct reparse_data_buffer)); - *(__le64 *)buf->DataBuffer = cpu_to_le64(((u64)MAJOR(dev) << 32) | - MINOR(dev)); + *(__le64 *)buf->DataBuffer = cpu_to_le64(((u64)MINOR(dev) << 32) | + MAJOR(dev)); iov->iov_base = buf; iov->iov_len = len + dlen; return 0; |