]> granicus.if.org Git - zfs/commitdiff
Add /sbin/fsck.zfs helper
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 9 Jan 2013 20:51:29 +0000 (12:51 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Jan 2013 00:54:58 +0000 (16:54 -0800)
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

cmd/Makefile.am
cmd/fsck_zfs/Makefile.am [new file with mode: 0644]
cmd/fsck_zfs/fsck.zfs [new file with mode: 0755]
configure.ac

index afdba3440d64aab82f7e0839cdf84ba54a42f23e..22f3ee03d2e8328d8359324e096e080e5235a93d 100644 (file)
@@ -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 (file)
index 0000000..2380f56
--- /dev/null
@@ -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 (executable)
index 0000000..f1685db
--- /dev/null
@@ -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
index fc38f2c55b9faa003d2954b27d3d1c86e553768d..2abd05d6f8895b1666460d2bf7722b45f505cd14 100644 (file)
@@ -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