diff options
author | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-03-15 16:30:17 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-03-23 09:06:09 +1100 |
commit | a2441c75956929293359888a4169114267a5fdbf (patch) | |
tree | effaff0e3ef2abd25a912319d426b954a9ee713a /lib/util/util.h | |
parent | 55ffff9a5e0bd87fd4e8720a35b65befde9fe965 (diff) | |
download | talos-petitboot-a2441c75956929293359888a4169114267a5fdbf.tar.gz talos-petitboot-a2441c75956929293359888a4169114267a5fdbf.zip |
discover/device-handler: Attempt to retry failed mounts
Commit 6c1a9dd, "discover: Allow fs recovery if snapshot available",
forced the use of 'norecovery' for all XFS mounts to avoid failing when
a cross-endian journal existed. This is a bit heavy handed, healthy XFS
file systems can still be safely mounted, as can dirty filesystems in
the same endian as Petitboot.
This adds try_mount() which opportunistically mounts devices and falls
back to using 'norecovery' where possible on failure. This enables XFS
filesystems to be mounted read-write when possible. try_mount() contains
the logic previously described by fs_parameters(), and should be used in
place of any existing calls to mount().
Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/util/util.h')
0 files changed, 0 insertions, 0 deletions