#!/usr/bin/env python

# Copyright C 2002-2012 by Isilon Systems LLC. All rights not expressly
# granted herein are reserved.
# Created in the United States of America.
# 
# This digital media is protected by U.S. and international copyright and
# intellectual property laws. Unless otherwise specified, all information
# and screens appearing as part of this digital medium, including
# software, services, documents, text, images, icons, and logos design;
# the selection, assembly, arrangement, and design thereof; and the code
# that enables its presentation, are the sole property of Isilon Systems,
# Inc.
# 
# Except as otherwise required by applicable law, no part of any
# copyrighted material may be reproduced, modified, translated,
# distributed, published, or transmitted by any means, electronic or
# mechanical, for any purpose, without the prior written consent of Isilon
# Systems. 
#  
# Isilon and Isilon Systems are registered trademarks of Isilon Systems
# LLC.  Legion is a trademark of Isilon Systems, LLC.  All other
# trademarks and registered trademarks are the property of their
# respective holders.

# This script makes a tar of all the files in boot/.files, along with the local
# patch record and files added from patches.  It sends the tarball out stdout.
# It assumes no filenames either in the original install, the patch
# files or anywhere in the local patch store contain tab characters or newline
# characters.

import sys

import isi.fs.diskpool as fsdp

if __name__ == '__main__':
    if fsdp.ifsvar_blocked():
        sys.exit(1)
    else:
        sys.exit(0)
