REFACTOR: Final cleanup of DiscImageChef.Devices.

This commit is contained in:
2017-12-23 20:04:36 +00:00
parent e5c92090a1
commit 536888507f
45 changed files with 2811 additions and 2688 deletions

View File

@@ -41,7 +41,7 @@ namespace DiscImageChef.Devices.Linux
const string PATH_SYS_DEVBLOCK = "/sys/block/";
/// <summary>
/// Gets a list of all known storage devices on Linux
/// Gets a list of all known storage devices on Linux
/// </summary>
/// <returns>List of devices</returns>
internal static DeviceInfo[] GetList()
@@ -65,8 +65,8 @@ namespace DiscImageChef.Devices.Linux
if(hasUdev)
{
IntPtr udevDev = Extern.udev_device_new_from_subsystem_sysname(udev, "block",
Path.GetFileName(sysdevs[i]));
IntPtr udevDev =
Extern.udev_device_new_from_subsystem_sysname(udev, "block", Path.GetFileName(sysdevs[i]));
devices[i].Vendor = Extern.udev_device_get_property_value(udevDev, "ID_VENDOR");
devices[i].Model = Extern.udev_device_get_property_value(udevDev, "ID_MODEL");
if(!string.IsNullOrEmpty(devices[i].Model)) devices[i].Model = devices[i].Model.Replace('_', ' ');