Nilesh Chate
Nilesh Chate
Similar issue with key-value in json. Ex: ```{ "packages":[ { "name":"p1", "version":"" } ], "vendorPackages":{ "vp1":{ "name":"", "version":"123" }, "vp2":{ "name":"456", "version":"" } } } ``` Should be ``` type...
Ok, I got a bit confused after I saw driveType as HDD for both. I think I will use `BusPath` for now and also look into the code for why...
> > What do you think of using `ls /dev/disk/by-id/` to detect the correct value. ATA for HDD, USB for USB drive?. Shall I go ahead and code it? >...
> > The above USB drive was detected as HDD because /queue/rotational field is 1 which is because of > > it being a logical volume/emulated (Correct me here). Not...
> @jpo-joyent I didn't say being attached by USB is a reliable indicator of being rotational. I suggested that for USB drives, we check to see if the ID_ATA_ROTATION_RATE_RPM udev...
Hi, I too what a solution without parsing command outputs or reading MBR as it requires root privileges. So far I haven't come across any clean solution, so for now...