]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Create um_flags in the ufsmount structure to hold flags for a UFS filesystem.
authorKirk McKusick <mckusick@FreeBSD.org>
Fri, 29 Jun 2018 22:24:41 +0000 (22:24 +0000)
committerKirk McKusick <mckusick@FreeBSD.org>
Fri, 29 Jun 2018 22:24:41 +0000 (22:24 +0000)
commitab0bcb60321e55632ae6c377becb9410d0fc0731
tree2fa6939280626689ffe7d1cdba4e7dd5729ac4d4
parent55a5b46aff84045feb84bad7afd8dffa34df33c5
Create um_flags in the ufsmount structure to hold flags for a UFS filesystem.
Convert integer structure flags to use um_flags:

int um_candelete; /* devvp supports TRIM */
int um_writesuspended; /* suspension in progress */

become:

#define UM_CANDELETE 0x00000001 /* devvp supports TRIM */
#define UM_WRITESUSPENDED 0x00000002 /* suspension in progress */

This is in preparation for adding other flags to indicate forcible
unmount in progress after a disk failure and possibly forcible
downgrade to read-only.

No functional change intended.

Sponsored by: Netflix
sys/ufs/ffs/ffs_alloc.c
sys/ufs/ffs/ffs_suspend.c
sys/ufs/ffs/ffs_vfsops.c
sys/ufs/ufs/ufsmount.h