update to the current set of mnt_, ufs_ and nfs_ flags
also make man-page correspond to the code
This commit is contained in:
parent
de51ba97a9
commit
4899c281c7
@ -287,16 +287,24 @@ A list of letters representing vnode flags:
|
||||
\- VXWANT
|
||||
.It B
|
||||
\- VBWAIT
|
||||
.It A
|
||||
\- VALIASED
|
||||
.It V
|
||||
\- VOBJBUF
|
||||
.It C
|
||||
\- VCOPYONWRITE
|
||||
.It a
|
||||
\- VAGE
|
||||
.It l
|
||||
\- VOLOCK
|
||||
.It w
|
||||
\- VOWANT
|
||||
.It D
|
||||
\- VDOOMED
|
||||
.It F
|
||||
\- VFREE
|
||||
.It O
|
||||
\- VONWORKLST
|
||||
.It M
|
||||
\- VMOUNT
|
||||
.El
|
||||
.Pp
|
||||
.It USE
|
||||
@ -322,20 +330,22 @@ update time
|
||||
must be corrected
|
||||
.It A
|
||||
access time must be corrected
|
||||
.It W
|
||||
wanted by another process (L flag is on)
|
||||
.It C
|
||||
changed time must be corrected
|
||||
.It S
|
||||
shared lock applied
|
||||
.It E
|
||||
exclusive lock applied
|
||||
.It Z
|
||||
someone waiting for a lock
|
||||
.It U
|
||||
modification time most be corrected
|
||||
.It M
|
||||
contains modifications
|
||||
.It R
|
||||
has a rename in progress
|
||||
.It S
|
||||
shared lock applied
|
||||
.It E
|
||||
exclusive lock applied
|
||||
.It H
|
||||
inode is on hash list
|
||||
.It L
|
||||
modified, but don't write key
|
||||
.El
|
||||
.It "For nfs:"
|
||||
.Bl -tag -width indent
|
||||
@ -353,6 +363,16 @@ non-cacheable lease (nqnfs)
|
||||
write lease (nqnfs)
|
||||
.It G
|
||||
lease was evicted (nqnfs)
|
||||
.It A
|
||||
special file accessed
|
||||
.It U
|
||||
special file updated
|
||||
.It C
|
||||
special file times changed
|
||||
.It L
|
||||
node is locked
|
||||
.It w
|
||||
someone wants to lock
|
||||
.El
|
||||
.El
|
||||
.It SIZ/RDEV
|
||||
|
@ -147,27 +147,28 @@ struct {
|
||||
{ MNT_NODEV, "nodev" },
|
||||
{ MNT_UNION, "union" },
|
||||
{ MNT_ASYNC, "async" },
|
||||
{ MNT_SUIDDIR, "suiddir" },
|
||||
{ MNT_SOFTDEP, "softdep" },
|
||||
{ MNT_NOSYMFOLLOW, "nosymfollow" },
|
||||
{ MNT_NOATIME, "noatime" },
|
||||
{ MNT_NOCLUSTERR, "noclusterread" },
|
||||
{ MNT_NOCLUSTERW, "noclusterwrite" },
|
||||
{ MNT_EXRDONLY, "exrdonly" },
|
||||
{ MNT_EXPORTED, "exported" },
|
||||
{ MNT_DEFEXPORTED, "defexported" },
|
||||
{ MNT_EXPORTANON, "exportanon" },
|
||||
{ MNT_EXKERB, "exkerb" },
|
||||
{ MNT_EXPUBLIC, "public" },
|
||||
{ MNT_LOCAL, "local" },
|
||||
{ MNT_QUOTA, "quota" },
|
||||
{ MNT_ROOTFS, "rootfs" },
|
||||
{ MNT_USER, "user" },
|
||||
{ MNT_UPDATE, "update" },
|
||||
{ MNT_DELEXPORT },
|
||||
{ MNT_IGNORE, "ignore" },
|
||||
{ MNT_UPDATE, "update" },
|
||||
{ MNT_DELEXPORT, "delexport" },
|
||||
{ MNT_RELOAD, "reload" },
|
||||
{ MNT_FORCE, "force" },
|
||||
#if 0
|
||||
{ MNT_UNMOUNT, "unmount" },
|
||||
{ MNT_MWAIT, "mwait" },
|
||||
{ MNT_WANTRDWR, "wantrdwr" },
|
||||
#endif
|
||||
{ MNT_SNAPSHOT, "snapshot" },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
@ -438,12 +439,23 @@ vnode_print(avnode, vp)
|
||||
*fp++ = 'B';
|
||||
if (flag & VOBJBUF)
|
||||
*fp++ = 'V';
|
||||
if (flag & VCOPYONWRITE)
|
||||
*fp++ = 'C';
|
||||
if (flag & VAGE)
|
||||
*fp++ = 'a';
|
||||
if (flag & VOLOCK)
|
||||
*fp++ = 'l';
|
||||
if (flag & VOWANT)
|
||||
*fp++ = 'w';
|
||||
if (flag & VDOOMED)
|
||||
*fp++ = 'D';
|
||||
if (flag & VFREE)
|
||||
*fp++ = 'F';
|
||||
if (flag & VONWORKLST)
|
||||
*fp++ = 'O';
|
||||
if (flag & VMOUNT)
|
||||
*fp++ = 'M';
|
||||
|
||||
if (flag == 0)
|
||||
*fp++ = '-';
|
||||
*fp = '\0';
|
||||
@ -469,20 +481,24 @@ ufs_print(vp)
|
||||
|
||||
KGETRET(VTOI(vp), &inode, sizeof(struct inode), "vnode's inode");
|
||||
flag = ip->i_flag;
|
||||
if (flag & IN_RENAME)
|
||||
*flags++ = 'R';
|
||||
if (flag & IN_UPDATE)
|
||||
*flags++ = 'U';
|
||||
if (flag & IN_ACCESS)
|
||||
*flags++ = 'A';
|
||||
if (flag & IN_CHANGE)
|
||||
*flags++ = 'C';
|
||||
if (flag & IN_UPDATE)
|
||||
*flags++ = 'U';
|
||||
if (flag & IN_MODIFIED)
|
||||
*flags++ = 'M';
|
||||
if (flag & IN_RENAME)
|
||||
*flags++ = 'R';
|
||||
if (flag & IN_SHLOCK)
|
||||
*flags++ = 'S';
|
||||
if (flag & IN_EXLOCK)
|
||||
*flags++ = 'E';
|
||||
if (flag & IN_HASHED)
|
||||
*flags++ = 'H';
|
||||
if (flag & IN_LAZYMOD)
|
||||
*flags++ = 'L';
|
||||
if (flag == 0)
|
||||
*flags++ = '-';
|
||||
*flags = '\0';
|
||||
@ -532,6 +548,16 @@ nfs_print(vp)
|
||||
*flags++ = 'O';
|
||||
if (flag & NQNFSEVICTED)
|
||||
*flags++ = 'G';
|
||||
if (flag & NACC)
|
||||
*flags++ = 'A';
|
||||
if (flag & NUPD)
|
||||
*flags++ = 'U';
|
||||
if (flag & NCHG)
|
||||
*flags++ = 'C';
|
||||
if (flag & NLOCKED)
|
||||
*flags++ = 'L';
|
||||
if (flag & NWANTED)
|
||||
*flags++ = 'w';
|
||||
if (flag == 0)
|
||||
*flags++ = '-';
|
||||
*flags = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user