Changeset 782 for baculafs/trunk


Ignore:
Timestamp:
Aug 25, 2009, 5:20:48 PM (15 years ago)
Author:
joergs
Message:

added option parsing, debug, singleThreaded and version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • baculafs/trunk/baculafs.py

    • Property svn:keywords set to Id
    r781 r782  
    1414###### bconsole
    1515################
     16
     17BACULA_FS_VERSION = "$Id$"
    1618
    1719LOG_FILENAME        = '/tmp/baculafs.log'
     
    227229    logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG,format="%(asctime)s %(process)5d(%(threadName)s) %(levelname)-7s %(funcName)s( %(message)s )")
    228230
    229     fs = BaculaFS()
     231
     232    usage = """
     233    Bacula filesystem: displays files from Bacula backups as a (userspace) filesystem.
     234                       Internaly, it uses Baculas bconsole.
     235
     236    """ + fuse.Fuse.fusage
     237
     238
     239    fs = BaculaFS(
     240        version="%prog: " + BACULA_FS_VERSION,
     241        usage=usage,
     242        # required to let "-s" set single-threaded execution
     243        dash_s_do='setsingle'
     244    )
     245
     246    #server.parser.add_option(mountopt="root", metavar="PATH", default='/',help="mirror filesystem from under PATH [default: %default]")
     247    #server.parse(values=server, errex=1)
    230248    fs.parse()
     249
    231250    fs.main()
Note: See TracChangeset for help on using the changeset viewer.