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
..
2017-05-23 09:29:05 +00:00
2016-11-08 23:59:41 +00:00
2017-05-18 18:24:11 +00:00
2017-02-12 09:49:44 +00:00
2017-01-25 20:22:32 +00:00
2017-05-23 09:29:05 +00:00
2017-05-23 16:59:24 +00:00
2017-02-14 13:54:05 +00:00
2017-03-14 22:02:02 +00:00
2017-03-19 00:51:12 +00:00
2016-11-08 23:59:41 +00:00
2017-02-07 16:01:07 +00:00
2017-05-16 23:31:52 +00:00
2017-01-14 04:16:13 +00:00
2017-05-23 09:30:42 +00:00
2017-05-23 09:30:42 +00:00
2017-05-23 09:29:05 +00:00
2017-05-23 09:29:05 +00:00
2017-04-14 10:21:38 +00:00
2017-02-13 09:04:38 +00:00