Skip to content

Commit

Permalink
Cygwin: Add /dev/disk/by-id symlinks
Browse files Browse the repository at this point in the history
The new directory '/dev/disk/by-id' provides symlinks for each
disk and its partitions:
'BUSTYPE-[VENDOR_]PRODUCT_SERIAL[-partN]' -> '../../sdX[N]'.
This is based on strings provided by STORAGE_DEVICE_DESCRIPTOR.
If this information is too short, a 128-bit hash of the
STORAGE_DEVICE_UNIQUE_IDENTIFIER raw data is added.
Administrator privileges are not required.

Signed-off-by: Christian Franke <[email protected]>
  • Loading branch information
chrfranke authored and github-cygwin committed Nov 5, 2023
1 parent 12e3bac commit c8cf193
Show file tree
Hide file tree
Showing 8 changed files with 1,417 additions and 708 deletions.
1 change: 1 addition & 0 deletions winsup/cygwin/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ FHANDLER_FILES= \
fhandler/console.cc \
fhandler/cygdrive.cc \
fhandler/dev.cc \
fhandler/dev_disk.cc \
fhandler/dev_fd.cc \
fhandler/disk_file.cc \
fhandler/dsp.cc \
Expand Down
Loading

0 comments on commit c8cf193

Please sign in to comment.