This program snapshots the volume and runs a file system check on the snapshot to look for corruption errors. The LVM volume group must have at least 256MiB of unallocated space to dedicate to the snapshot or the logical volume will be skipped. The snapshot will be named lvname.e2scrub and udev will not create symbolic links to it under /dev/disk. Every attempt will be made to remove the snapshots prior to running e2scrub, but in a dire situation it may be necessary to remove the snapshot manually.
If no errors are found, fstrim can be called on the file system if it is mounted. If errors are found, the file system will be marked as having errors. The filesystem should be taken offline and e2fsck run as soon as possible, because e2scrub does not fix corruptions. If the filesystem is not repaired, e2fsck will be run before the next mount.