From: Brian Behlendorf Date: Wed, 9 Jan 2013 20:51:29 +0000 (-0800) Subject: Add /sbin/fsck.zfs helper X-Git-Tag: zfs-0.6.0-rc14~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1e147eef8f61f3fcac742952d56b1f9d6c2703b;p=zfs 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 Closes #964 --- diff --git a/cmd/Makefile.am b/cmd/Makefile.am index afdba3440..22f3ee03d 100644 --- a/cmd/Makefile.am +++ b/cmd/Makefile.am @@ -1,2 +1,2 @@ -SUBDIRS = zfs zpool zdb zhack zinject zstreamdump ztest zpios mount_zfs -SUBDIRS += zpool_layout zvol_id zpool_id vdev_id +SUBDIRS = zfs zpool zdb zhack zinject zstreamdump ztest zpios +SUBDIRS += mount_zfs fsck_zfs zpool_layout zvol_id zpool_id vdev_id diff --git a/cmd/fsck_zfs/Makefile.am b/cmd/fsck_zfs/Makefile.am new file mode 100644 index 000000000..2380f56fa --- /dev/null +++ b/cmd/fsck_zfs/Makefile.am @@ -0,0 +1 @@ +dist_sbin_SCRIPTS = fsck.zfs diff --git a/cmd/fsck_zfs/fsck.zfs b/cmd/fsck_zfs/fsck.zfs new file mode 100755 index 000000000..f1685db65 --- /dev/null +++ b/cmd/fsck_zfs/fsck.zfs @@ -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 diff --git a/configure.ac b/configure.ac index fc38f2c55..2abd05d6f 100644 --- a/configure.ac +++ b/configure.ac @@ -97,6 +97,7 @@ AC_CONFIG_FILES([ cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile + cmd/fsck_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile