mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
Anding the fsid with 0xffff was causing aliasing problems.
PR: 17405, 16320 Submitted by: Mark W. Krentel <krentel@dreamscape.com> Submitted by: Peter Edwards <peter.edwards@ireland.com> MFC after: 2 weeks
This commit is contained in:
parent
c5250ed112
commit
b628b0dce5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86100
@ -67,7 +67,7 @@ isofs_filestat(vp, fsp)
|
||||
(void *)VTOI(vp), Pid);
|
||||
return 0;
|
||||
}
|
||||
fsp->fsid = dev2udev(isonode.i_dev) & 0xffff;
|
||||
fsp->fsid = dev2udev(isonode.i_dev);
|
||||
fsp->mode = (mode_t)isonode.inode.iso_mode;
|
||||
fsp->rdev = isonode.i_dev;
|
||||
|
||||
|
@ -561,7 +561,7 @@ ufs_filestat(vp, fsp)
|
||||
* contain dev_t structures. We need to convert to udev to make
|
||||
* comparisons
|
||||
*/
|
||||
fsp->fsid = dev2udev(inode.i_dev) & 0xffff;
|
||||
fsp->fsid = dev2udev(inode.i_dev);
|
||||
fsp->fileid = (long)inode.i_number;
|
||||
fsp->mode = (mode_t)inode.i_mode;
|
||||
fsp->size = (u_long)inode.i_size;
|
||||
@ -859,7 +859,7 @@ getfname(filename)
|
||||
devs = cur;
|
||||
|
||||
cur->ino = statbuf.st_ino;
|
||||
cur->fsid = statbuf.st_dev & 0xffff;
|
||||
cur->fsid = statbuf.st_dev;
|
||||
cur->name = filename;
|
||||
return(1);
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ msdosfs_filestat(vp, fsp)
|
||||
}
|
||||
}
|
||||
|
||||
fsp->fsid = dev2udev(denode.de_dev) & 0xffff;
|
||||
fsp->fsid = dev2udev(denode.de_dev);
|
||||
fsp->mode = 0555;
|
||||
fsp->mode |= denode.de_Attributes & ATTR_READONLY ? 0 : 0222;
|
||||
fsp->mode &= mnt->data.pm_mask;
|
||||
|
Loading…
Reference in New Issue
Block a user