holds.py revision 842727c2f41f01b380de4f5e787d905702870f23
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# CDDL HEADER START
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# The contents of this file are subject to the terms of the
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# Common Development and Distribution License (the "License").
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# You may not use this file except in compliance with the License.
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# See the License for the specific language governing permissions
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# and limitations under the License.
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# When distributing Covered Code, include this CDDL HEADER in each
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# If applicable, add the following below this CDDL HEADER, with the
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# fields enclosed by brackets "[]" replaced with your own identifying
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# information: Portions Copyright [yyyy] [name of copyright owner]
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# CDDL HEADER END
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby# Use is subject to license terms.
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby"""This module implements the "zfs holds" subcommand.
842727c2f41f01b380de4f5e787d905702870f23Chris KirbyThe only public interface is the zfs.holds.do_holds() function."""
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby """Implements the "zfs holds" subcommand."""
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby u = _("""holds [-r] <snapshot> ...""")
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby parser = optparse.OptionParser(usage=u, prog="zfs")
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby parser.add_option("-r", action="store_true", dest="recursive",
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby (options, args) = parser.parse_args(sys.argv[2:])