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トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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