aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-02-18 14:24:55 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-02-18 14:28:28 +0000
commit662283b1088d6488671b90ab18a66a997c526448 (patch)
treed9800d1c0439f6795b5339aec6c78d4215bfbf8a /sys
parent10f57cb98fd61b2669640a84aa73ad118601f281 (diff)
downloadsrc-662283b1088d6488671b90ab18a66a997c526448.tar.gz
src-662283b1088d6488671b90ab18a66a997c526448.zip
vn_printf: handle VI_FOPENING
Noted by: mjg Sponsored by: The FreeBSD Foundation MFC after: 6 days Fixes: fa3bd463cee
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_subr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 04cd0e0175f9..3e39d19666e5 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -4116,8 +4116,10 @@ vn_printf(struct vnode *vp, const char *fmt, ...)
strlcat(buf, "|VI_OWEINACT", sizeof(buf));
if (vp->v_iflag & VI_DEFINACT)
strlcat(buf, "|VI_DEFINACT", sizeof(buf));
+ if (vp->v_iflag & VI_FOPENING)
+ strlcat(buf, "|VI_FOPENING", sizeof(buf));
flags = vp->v_iflag & ~(VI_TEXT_REF | VI_MOUNT | VI_DOINGINACT |
- VI_OWEINACT | VI_DEFINACT);
+ VI_OWEINACT | VI_DEFINACT | VI_FOPENING);
if (flags != 0) {
snprintf(buf2, sizeof(buf2), "|VI(0x%lx)", flags);
strlcat(buf, buf2, sizeof(buf));