git: c66e9307ea95 - main - mount.h: improve a comment about flags

Piotr Pawel Stefaniak pstef at FreeBSD.org
Tue Aug 17 17:15:47 UTC 2021


The branch main has been updated by pstef:

URL: https://cgit.FreeBSD.org/src/commit/?id=c66e9307ea9520f3d6e4d38dc842a99a31ae80bf

commit c66e9307ea9520f3d6e4d38dc842a99a31ae80bf
Author:     Piotr Pawel Stefaniak <pstef at FreeBSD.org>
AuthorDate: 2021-08-14 20:07:09 +0000
Commit:     Piotr Pawel Stefaniak <pstef at FreeBSD.org>
CommitDate: 2021-08-17 17:08:33 +0000

    mount.h: improve a comment about flags
    
    The comment only specifies MNT_ROOTFS - which is set by the kernel when
    mounting its root file system. So it's not clear if any other flags
    are not quite right and for what reason.
---
 sys/sys/mount.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 016c7e9c188d..f4b5945d3ad0 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -398,9 +398,7 @@ struct mntoptnames {
 #define	MNT_EXTLSCERTUSER 0x0000010000000000ULL /* require TLS with user cert */
 
 /*
- * Flags set by internal operations,
- * but visible to the user.
- * XXX some of these are not quite right.. (I've never seen the root flag set)
+ * Flags set by internal operations, but visible to the user.
  */
 #define	MNT_LOCAL	0x0000000000001000ULL /* filesystem is stored locally */
 #define	MNT_QUOTA	0x0000000000002000ULL /* quotas are enabled on fs */


More information about the dev-commits-src-main mailing list