store /sys/block name in Linux

This commit is contained in:
Glenn Maynard
2005-10-03 07:17:09 +00:00
parent c1b271600f
commit f0998a1dc5
2 changed files with 2 additions and 0 deletions
@@ -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;