store /sys/block name in Linux
This commit is contained in:
@@ -28,6 +28,7 @@ struct UsbStorageDevice
|
|||||||
CString sSerial;
|
CString sSerial;
|
||||||
CString sDevice;
|
CString sDevice;
|
||||||
CString sOsMountDir; // WITHOUT trailing slash
|
CString sOsMountDir; // WITHOUT trailing slash
|
||||||
|
CString sSysPath; // Linux: /sys/block name
|
||||||
enum State
|
enum State
|
||||||
{
|
{
|
||||||
/* Empty device. This is used only by MemoryCardManager. */
|
/* Empty device. This is used only by MemoryCardManager. */
|
||||||
|
|||||||
@@ -278,6 +278,7 @@ void GetNewStorageDevices( vector<UsbStorageDevice>& vDevicesOut )
|
|||||||
UsbStorageDevice usbd;
|
UsbStorageDevice usbd;
|
||||||
|
|
||||||
CString sPath = sBlockDevicePath + sDevice + "/";
|
CString sPath = sBlockDevicePath + sDevice + "/";
|
||||||
|
usbd.sSysPath = sPath;
|
||||||
|
|
||||||
/* Ignore non-removable devices. */
|
/* Ignore non-removable devices. */
|
||||||
CString sBuf;
|
CString sBuf;
|
||||||
|
|||||||
Reference in New Issue
Block a user