Sha256: 7f28f7b269c75c9e9029dab1ab99a2fc916718809156ea4e155749c5240d4beb
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
# -*- coding: utf-8 -*- module Dcmgr module Drivers # Base class for remote storage initiators: NFS, ISCSI... class StorageInitiator def mount(hva_ctx) raise NotImplementedError end def umount(hva_ctx) raise NotImplementedError end end class LinuxIscsiInitiator < StorageInitiator def mount(hva_ctx) end def umount(hva_ctx, volume) sh("iscsiadm -m node -T '%s' --logout", [volume[:transport_information][:iqn]]) end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
wakame-vdc-agents-11.12.0 | lib/dcmgr/drivers/storage_initiator.rb |
wakame-vdc-dcmgr-11.12.0 | lib/dcmgr/drivers/storage_initiator.rb |