adelolmo / hd-idle

Hard Disk Idle Spin-Down Utility
GNU General Public License v3.0
562 stars 32 forks source link

Use GivenName instead of Name in the log #94

Closed GrayXu closed 1 year ago

GrayXu commented 1 year ago

Change the device name in log and stdout to GivenName instead of Name. Adding or removing disks will affect the assignment of /dev/sdX. So it makes sense to set a unique id for each disk. (This is common, just as scrutiny also changed sdX to disk id). Obviously, users with such a purpose won't pass sdX as a parameter, as they are dynamic. So I think using GivenName directly is acceptable. Also, for those users who do pass sdX as a parameter, the original functionality will not change.

Closes #65