Changeset 5d99101


Ignore:
Timestamp:
09/06/13 12:33:35 (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
e4d9ea3
Parents:
c7aa193
Message:

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

This reverts commit 8f6c08823fc3203016251461ceffae7c402a975b.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/lpreserver

    rc7aa193 r5d99101  
    4747   listsnap - List snapshots of a zpool/dataset 
    4848     mksnap - Create a ZFS snapshot of a zpool/dataset 
     49     mirror - Enable / Disable ZFS mirroring to a local drive 
    4950  replicate - Enable / Disable ZFS replication to a remote system 
    5051 revertsnap - Revert zpool/dataset to a snapshot 
     
    387388           listsnap) help_listsnap ;; 
    388389           revertsnap) help_revertsnap ;; 
     390           mirror) help_mirror ;; 
    389391           replicate) help_replicate ;; 
    390392           cronsnap) help_cronsnap ;; 
     
    487489            esac 
    488490         ;; 
    489 #    mirror) require_root 
    490 #           shift 
    491 #           case ${1} in 
    492 #               add) add_mirror_disk "$2" "$3" ;; 
    493 #               list) list_mirror_disks "$2" ;; 
    494 #               remove) rem_mirror_disk "$2" "$3" ;; 
    495 #               *) help_mirror ;; 
    496 #           esac 
    497 #        ;; 
     491    mirror) require_root 
     492            shift 
     493            case ${1} in 
     494                add) add_mirror_disk "$2" "$3" ;; 
     495                list) list_mirror_disks "$2" ;; 
     496                remove) rem_mirror_disk "$2" "$3" ;; 
     497                *) help_mirror ;; 
     498            esac 
     499         ;; 
    498500   *) help_main ;; 
    499501esac 
Note: See TracChangeset for help on using the changeset viewer.