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!
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

30 lignes
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