Add /sbin/fsck.zfs helper

A fsck helper to accomidate distributions that expect to be able
to execute a fsck on all filesystem types.  Currently this script
does nothing but it could be extended to act as a compatibility
wrapper for 'zpool scrub'.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #964
This commit is contained in:
Brian Behlendorf 2013-01-09 12:51:29 -08:00
parent 87bdc45ccb
commit a1e147eef8
4 changed files with 13 additions and 2 deletions

View File

@ -1,2 +1,2 @@
SUBDIRS = zfs zpool zdb zhack zinject zstreamdump ztest zpios mount_zfs SUBDIRS = zfs zpool zdb zhack zinject zstreamdump ztest zpios
SUBDIRS += zpool_layout zvol_id zpool_id vdev_id SUBDIRS += mount_zfs fsck_zfs zpool_layout zvol_id zpool_id vdev_id

1
cmd/fsck_zfs/Makefile.am Normal file
View File

@ -0,0 +1 @@
dist_sbin_SCRIPTS = fsck.zfs

9
cmd/fsck_zfs/fsck.zfs Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
#
# fsck.zfs: A fsck helper to accomidate distributions that expect
# to be able to execute a fsck on all filesystem types. Currently
# this script does nothing but it could be extended to act as a
# compatibility wrapper for 'zpool scrub'.
#
exit 0

View File

@ -97,6 +97,7 @@ AC_CONFIG_FILES([
cmd/ztest/Makefile cmd/ztest/Makefile
cmd/zpios/Makefile cmd/zpios/Makefile
cmd/mount_zfs/Makefile cmd/mount_zfs/Makefile
cmd/fsck_zfs/Makefile
cmd/zpool_layout/Makefile cmd/zpool_layout/Makefile
cmd/zvol_id/Makefile cmd/zvol_id/Makefile
cmd/zpool_id/Makefile cmd/zpool_id/Makefile