mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Do not add late flag when file= is specified because it has a bad
side-effect. The specified file should exist before the fstab line. Reported by: wblock (long time ago) MFC after: 1 day
This commit is contained in:
parent
b888b86e6f
commit
1482f98247
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272885
@ -172,15 +172,8 @@ main(int argc, char **argv)
|
||||
continue;
|
||||
if (strstr(fsp->fs_mntops, "noauto") != NULL)
|
||||
continue;
|
||||
/*
|
||||
* Forcibly enable "late" option when file= is
|
||||
* specified. This is because mounting file
|
||||
* systems with rw option is typically
|
||||
* required to make the backing store ready.
|
||||
*/
|
||||
if (which_prog != SWAPOFF &&
|
||||
(strstr(fsp->fs_mntops, "late") != NULL ||
|
||||
strstr(fsp->fs_mntops, "file=") != NULL) &&
|
||||
strstr(fsp->fs_mntops, "late") &&
|
||||
late == 0)
|
||||
continue;
|
||||
swfile = swap_on_off(fsp->fs_spec, 1,
|
||||
|
Loading…
Reference in New Issue
Block a user