Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 885843 - allow /etc/init.d/localmount to parallel mount local filesystems
Summary: allow /etc/init.d/localmount to parallel mount local filesystems
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-14 08:55 UTC by Jaco Kroon
Modified: 2023-01-03 09:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2022-12-14 08:55:30 UTC
37     ebegin "Mounting local filesystems"
 38     mount -at "$types" $no_netdev
 39     eend $? "Some local filesystem failed to mount"

Some mechanism to pass -F to mount there would be great.  This should probably be explicitly enabled by the system administrator and not done by default.  Would have been preferred if there was a max concurrency for -F to mount but it doesn't look like that is possible.  Would have to umount quite a number of filesystems to see how mount -F deals with ~80 filesystems to be mounted. 

Reproducible: Always
Comment 1 Jaco Kroon 2022-12-21 19:57:04 UTC
For reference, reduces mount -a time from close on 40 minutes to 30 seconds.  Not all filesystems we're mounted in this round, but at worst this should take us to ~60s time to mount all filesystems compared to the current 40 minutes.
Comment 2 Jaco Kroon 2023-01-03 09:49:53 UTC
But here is the kicker:

If filesystems have a hierarchy eg:

/var
/var/lib
/var/cache

Then the latter could fail.  This will need to be fixed in mount itself somehow, recommendation to just leave gentoo as-is, unless someone is willing to put in the work for the mount command, not something I have capacity for.

Going to close this as UPSTREAM because it's based on the above a bad idea to do this in current state.