freebsd-src/sys
Rick Macklem 14eff785e8 Fix the pNFS server's reporting of SpaceUsed (va_bytes).
The pNFS server currently reports SpaceUsed (va_bytes) for the metadata
file. This in not correct, since the metadata file is always empty and,
as such, va_bytes is just the allocation for the empty file.
This patch adds va_bytes to the list of attributes acquired from the
DS for a file, so that it includes the allocated data size and is updated
when the file is written.
For files created on a pNFS server before this patch is applied, the
va_bytes value is estimated by rounding va_size up to a multiple of
BLKDEV_IOSIZE. Once the file is written after this patch has been
applied to the metadata server, the va_bytes returned for the file
will be correct.

This patch only affects a pNFS metadata server.

Found during testing of the NFSv4.2 pNFS server for the Allocate operation.
(Not yet in head/current.)

MFC after:	2 weeks
2019-11-22 00:22:55 +00:00
..
amd64 Add kcsan_md_unsupported from NetBSD. 2019-11-21 13:22:23 +00:00
arm Remove two obsolete comments that reference splhigh/splx. 2019-11-21 18:49:54 +00:00
arm64 Add kcsan_md_unsupported from NetBSD. 2019-11-21 13:22:23 +00:00
bsm Jail and capability mode for shm_rename; add audit support for shm_rename 2019-11-18 13:31:16 +00:00
cam Set handling for some "Logical unit not ready" errors. 2019-11-20 20:00:03 +00:00
cddl MFV r354383: 10592 misc. metaslab and vdev related ZoL bug fixes 2019-11-21 13:35:43 +00:00
compat linux: avoid overhead of P_CONTROLT checks if possible 2019-11-20 12:06:29 +00:00
conf NIC KTLS for Chelsio T6 adapters. 2019-11-21 19:30:31 +00:00
contrib Update to Zstandard 1.4.4 2019-11-16 16:39:08 +00:00
crypto Fix the armv8 crypto driver after r354170. 2019-10-30 10:41:10 +00:00
ddb ddb(4): Add some support for lexing IPv6 addresses 2019-09-09 16:32:23 +00:00
dev NIC KTLS for Chelsio T6 adapters. 2019-11-21 19:30:31 +00:00
dts dtso: allwinner: Add an overlay for H3 thermal node 2019-08-24 13:26:34 +00:00
fs Fix the pNFS server's reporting of SpaceUsed (va_bytes). 2019-11-22 00:22:55 +00:00
gdb gdb(4): Implement support for NoAckMode 2019-10-17 22:37:25 +00:00
geom Add GEOM attribute to report physical device name, and report it 2019-11-09 17:30:19 +00:00
gnu arm: dts: ti: Fix mmc3 instance by setting it to disabled 2019-10-07 08:11:49 +00:00
i386 Convert in-tree sysent targets to use new makesyscalls.lua 2019-11-18 23:28:23 +00:00
isa
kern cc_ktr_event_name is used only with KTR 2019-11-21 23:55:43 +00:00
kgssapi Stop using des_cblock * for arguments to DES functions. 2019-08-26 17:25:07 +00:00
libkern Port the NetBSD KCSAN runtime to FreeBSD. 2019-11-21 11:22:08 +00:00
mips Remove two obsolete comments that reference splhigh/splx. 2019-11-21 18:49:54 +00:00
modules NIC KTLS for Chelsio T6 adapters. 2019-11-21 19:30:31 +00:00
net netmap: check if we already ran mmap before we attempt it 2019-11-19 21:29:49 +00:00
net80211 Don't use if_maddr_rlock() in 802.11, use epoch(9) directly instead. 2019-10-10 23:55:33 +00:00
netgraph Fix regression from r353026. Pointer was increased instead of value 2019-11-02 03:09:17 +00:00
netinet Reduce the vnet_set module size of ip_mroute to allow loading as a module. 2019-11-19 15:38:55 +00:00
netinet6 in6: move include 2019-11-19 21:14:15 +00:00
netipsec netinet*: replace IP6_EXTHDR_GET() 2019-11-15 21:44:17 +00:00
netpfil pf: Must be in NET_EPOCH to call icmp_error 2019-10-18 03:36:26 +00:00
netsmb Stop using des_cblock * for arguments to DES functions. 2019-08-26 17:25:07 +00:00
nfs
nfsclient
nfsserver
nlm
ofed Prevent potential underflow in ibcore. 2019-11-15 11:46:53 +00:00
opencrypto kTLS support for TLS 1.3 2019-09-27 19:17:40 +00:00
powerpc powerpc/pmap: Remove an unused error from moea64_pvo_enter() 2019-11-19 02:00:13 +00:00
riscv RISC-V: busdma_bounce: fix BUS_DMA_ALLOCNOW for non-paged aligned sizes 2019-11-16 01:25:51 +00:00
rpc Avoid relying on header pollution from sys/refcount.h. 2019-07-29 20:26:01 +00:00
security Instead of looking up a predecessor or successor to the current map 2019-11-20 16:06:48 +00:00
sparc64 Set MALLOC_DEBUG_MAXZONES=1 in GENERIC-NODEBUG configurations. 2019-11-18 20:03:28 +00:00
sys Delete ih_thread. Should have gone in r334170. 2019-11-21 23:55:19 +00:00
teken Adjust teken to allow build as part of loader 2019-09-05 18:07:40 +00:00
tests
tools Add makesyscalls.lua, a rewrite of makesyscalls.sh 2019-11-17 14:08:19 +00:00
ufs Add some KASSERTs. Reacquire a mutex after a kernel printf rather 2019-11-20 01:10:01 +00:00
vm As with r354905 use uint16_t to store aflags on the stack and as function 2019-11-20 18:00:43 +00:00
x86 Port the NetBSD KCSAN runtime to FreeBSD. 2019-11-21 11:22:08 +00:00
xdr
xen
Makefile