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!
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

30 linhas
686B

  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