Permalink
Browse files

Revert "Remove the mirror functionality for now, will need to be re-e…

…xamined"

This reverts commit 8f6c088.
  • Loading branch information...
1 parent c7aa193 commit 5d99101c2d541c020f84d3d50f25d929e90cd08a @kmoore134 kmoore134 committed Sep 6, 2013
Showing with 11 additions and 9 deletions.
  1. +11 −9 src-sh/lpreserver/lpreserver
@@ -46,6 +46,7 @@ Type in help <command> for information and usage about that command
listcron - Listing of scheduled snapshots
listsnap - List snapshots of a zpool/dataset
mksnap - Create a ZFS snapshot of a zpool/dataset
+ mirror - Enable / Disable ZFS mirroring to a local drive
replicate - Enable / Disable ZFS replication to a remote system
revertsnap - Revert zpool/dataset to a snapshot
rmsnap - Remove a snapshot
@@ -386,6 +387,7 @@ case "$1" in
listcron) help_listcron ;;
listsnap) help_listsnap ;;
revertsnap) help_revertsnap ;;
+ mirror) help_mirror ;;
replicate) help_replicate ;;
cronsnap) help_cronsnap ;;
rmsnap) help_rmsnap ;;
@@ -486,15 +488,15 @@ revertsnap) require_root
*) help_replicate ;;
esac
;;
-# mirror) require_root
-# shift
-# case ${1} in
-# add) add_mirror_disk "$2" "$3" ;;
-# list) list_mirror_disks "$2" ;;
-# remove) rem_mirror_disk "$2" "$3" ;;
-# *) help_mirror ;;
-# esac
-# ;;
+ mirror) require_root
+ shift
+ case ${1} in
+ add) add_mirror_disk "$2" "$3" ;;
+ list) list_mirror_disks "$2" ;;
+ remove) rem_mirror_disk "$2" "$3" ;;
+ *) help_mirror ;;
+ esac
+ ;;
*) help_main ;;
esac

0 comments on commit 5d99101

Please sign in to comment.