reading it, but if the read fails (for example, because of a corrupt inode)
then proceed without reading the root inode.
fall back to a mount without reading the root inode if the mount with reading
and checking the root inode fails.
mp = libxfs_mount(&xmount, sbp, x.ddev, x.logdev, x.rtdev,
LIBXFS_MOUNT_ROOTINOS | LIBXFS_MOUNT_DEBUGGER);
if (!mp) {
- dbprintf(_("%s: device %s unusable (not an XFS filesystem?)\n"),
+ mp = libxfs_mount(&xmount, sbp, x.ddev, x.logdev, x.rtdev,
+ LIBXFS_MOUNT_DEBUGGER);
+ if (!mp) {
+ dbprintf(_("%s: device %s unusable (not an XFS filesystem?)\n"),
progname, fsdevice);
- exit(1);
+ exit(1);
+ }
}
blkbb = 1 << mp->m_blkbb_log;