예제 #1
0
        public FcoeSrDescriptor(FibreChannelDevice device) : base(device)
        {
            DeviceConfig[SrProbeAction.SCSIid] = device.SCSIid;
            DeviceConfig[SrProbeAction.PATH]   = device.Path;

            Description = string.Format(Messages.NEWSR_LVMOFCOE_DESCRIPTION, device.Vendor, device.Serial);
        }
예제 #2
0
 public Gfs2FcoeSrDescriptor(FibreChannelDevice device)
     : base(device, Messages.NEWSR_LVMOFCOE_DESCRIPTION)
 {
     DeviceConfig["provider"] = "fcoe";
     DeviceConfig["SCSIid"]   = device.SCSIid;
     DeviceConfig["path"]     = device.Path;
 }
예제 #3
0
        public LvmOhbaSrDescriptor(FibreChannelDevice device, IXenConnection connection)
        {
            Device = device;
            DeviceConfig[SrProbeAction.SCSIid] = device.SCSIid;

            Description = string.Format(Messages.NEWSR_LVMOHBA_DESCRIPTION, device.Vendor, device.Serial);
        }
예제 #4
0
        public Gfs2FcoeSrDescriptor(FibreChannelDevice device)
            : base(device)
        {
            var jsonUri = new JavaScriptSerializer().Serialize(new
            {
                provider = "fcoe",
                ScsiId   = device.SCSIid
            });

            DeviceConfig[SrProbeAction.URI] = jsonUri;
            Description = string.Format(Messages.NEWSR_LVMOFCOE_DESCRIPTION, device.Vendor, device.Serial);
        }
예제 #5
0
        public LvmOhbaSrDescriptor(FibreChannelDevice device, IXenConnection connection)
        {
            Host master = Helpers.GetMaster(connection);
            Device = device;

            // CA-19025: Change XenCenter SR.create for LVMoHBA to use the
            // updated SCSIid parameter rather than the device path
            if (master != null && (Helpers.HostBuildNumber(master) >= 9633
                                   || Helpers.HostBuildNumber(master) == Helpers.CUSTOM_BUILD_NUMBER))
            {
                DeviceConfig[SrProbeAction.SCSIid] = device.SCSIid;
            }
            else
            {
                DeviceConfig[SrProbeAction.DEVICE] = device.Path;
            }

            Description = string.Format(Messages.NEWSR_LVMOHBA_DESCRIPTION, device.Vendor, device.Serial);
        }
예제 #6
0
        public LvmOhbaSrDescriptor(FibreChannelDevice device)
        {
            Device = device;

            Description = string.Format(Messages.NEWSR_LVMOHBA_DESCRIPTION, device.Vendor, device.Serial);
        }
예제 #7
0
 public LvmOhbaSrDescriptor(FibreChannelDevice device)
     : base(device, Messages.NEWSR_LVMOHBA_DESCRIPTION)
 {
     DeviceConfig["SCSIid"] = device.SCSIid;
 }
예제 #8
0
 protected FibreChannelDescriptor(FibreChannelDevice device, string descrFormat)
 {
     Device      = device;
     Description = string.Format(descrFormat, device.Vendor, device.Serial);
 }
예제 #9
0
 public Gfs2HbaSrDescriptor(FibreChannelDevice device)
     : base(device, Messages.NEWSR_LVMOHBA_DESCRIPTION)
 {
     DeviceConfig["provider"] = "hba";
     DeviceConfig["SCSIid"]   = device.SCSIid;
 }