opnsense-src/sys/fs
Konstantin Belousov 03311f117b Use whole mnt_stat.f_fsid bits for st_dev.
Since ino64 expanded dev_t to 64bit, make VOP_GETATTR(9) provide all
bits of mnt_stat.f_fsid as va_fsid for vnodes on filesystems which use
f_fsid.  In particular, NFSv3 and sometimes NFSv4, and ZFS use this
method or reporting st_dev by stat(2).

Provide a new helper vn_fsid() to avoid duplicating code to copy
f_fsid to va_fsid.

Note that the change is mostly cosmetic.  Its motivation is to avoid
sign-extension of f_fsid[0] into 64bit dev_t value which happens after
dev_t becomes 64bit..

Reviewed by:	avg(zfs), rmacklem (nfs) (both for previous version)
Sponsored by:	The FreeBSD Foundation
2017-05-27 17:00:30 +00:00
..
autofs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cd9660 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cuse Prevent cuse4bsd.ko and cuse.ko from loading at the same time by 2016-09-23 07:41:23 +00:00
deadfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
devfs Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
ext2fs ext2fs: add read-write support for Extended Attributes. 2017-05-03 22:35:41 +00:00
fdescfs Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
fifofs Remove register keyword from sys/ and ANSIfy prototypes 2017-05-17 00:34:34 +00:00
fuse fuse: Implement FOPEN_KEEP_CACHE flag 2017-04-21 22:00:22 +00:00
msdosfs msdosfs: constify 2017-05-21 20:00:49 +00:00
nandfs Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
nfs Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
nfsclient Use whole mnt_stat.f_fsid bits for st_dev. 2017-05-27 17:00:30 +00:00
nfsserver Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
nullfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
procfs remove procfs ctl interface 2017-03-05 03:05:24 +00:00
pseudofs Forcibly remove the cached items from pseudofs vncache on module unload. 2017-01-09 20:14:18 +00:00
smbfs - Remove 'struct vmmeter' from 'struct pcpu', leaving only global vmmeter 2017-04-17 17:34:47 +00:00
tmpfs Remove mistakenly merged field. 2017-01-19 20:03:26 +00:00
udf On error, bread(9) zeroes buffer pointer, do not dereference it. 2016-11-22 13:24:57 +00:00
unionfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00