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!
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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