mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Implement the -r and -w options as -o ro' and
-o noro', respectively. At
least in -w's case, simply unsetting the correct bit in init_flags was not enough. The bit may be reset later if, say, the filesystem is marked `ro' in fstab. The command line option should override the fstab setting, but did not. The implementation of -r was changed for consistency. PR: 26886 Reviewed by: archie
This commit is contained in:
parent
de85e722d1
commit
ad0447715b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76198
@ -158,7 +158,7 @@ main(argc, argv)
|
||||
verbose = 1;
|
||||
break;
|
||||
case 'r':
|
||||
init_flags |= MNT_RDONLY;
|
||||
options = catopt(options, "ro");
|
||||
break;
|
||||
case 't':
|
||||
if (vfslist != NULL)
|
||||
@ -173,7 +173,7 @@ main(argc, argv)
|
||||
verbose = 1;
|
||||
break;
|
||||
case 'w':
|
||||
init_flags &= ~MNT_RDONLY;
|
||||
options = catopt(options, "noro");
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user