Skip to content

[mount] It is expensive to run fsck on every remount #137

@27149chen

Description

@27149chen

In method formatAndMount, we will run fsck (or xfs_repair for xfs) before mounting the device. It happens on every remount, which is expensive for some kinds of disk that need more time to finish the command. But most of the time the filesystem is error free, so I think it will improve the perfermance if we can find a way to check the filesystem errors after mounting, and follow the steps:

  1. Mount the device.
  2. If it is failed, run fsck and mount again.
  3. If it is successful, check if the filesystem is running well, if not, unmount it and run fsck and then mount again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions