IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

volume.py 686B

1234567891011121314151617181920212223242526272829
  1. from .misc import random_sha256_hexdigest
  2. from .zfs import *
  3. def command_volume_create(args):
  4. sha256 = random_sha256_hexdigest()
  5. poolname = zfs_poolname()
  6. for pre in range(7, 64):
  7. name = poolname + '/focker/volumes/' + sha256[:pre]
  8. if not zfs_exists(name):
  9. break
  10. zfs_run(['zfs', 'create', '-o', 'focker:sha256=' + sha256, name])
  11. zfs_tag(name, args.tags)
  12. def command_volume_prune(args):
  13. raise NotImplementedError
  14. def command_volume_list(args):
  15. raise NotImplementedError
  16. def command_volume_tag(args):
  17. raise NotImplementedError
  18. def command_volume_untag(args):
  19. raise NotImplementedError