aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/dtable.cc
diff options
context:
space:
mode:
authorChristian Franke <christian.franke@t-online.de>2023-11-05 15:54:23 +0100
committerCorinna Vinschen <corinna@vinschen.de>2023-11-05 17:01:43 +0100
commitc8cf1933ba04edf40181545b4c258be059d66f87 (patch)
tree90be43517bc9e85deadf593fe4b406ff90c3ddef /winsup/cygwin/dtable.cc
parent12e3bac3ce562007e83c3c67243c85fcb5ee70a4 (diff)
downloadnewlib-c8cf1933ba04edf40181545b4c258be059d66f87.zip
newlib-c8cf1933ba04edf40181545b4c258be059d66f87.tar.gz
newlib-c8cf1933ba04edf40181545b4c258be059d66f87.tar.bz2
Cygwin: Add /dev/disk/by-id symlinks
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 <christian.franke@t-online.de>
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 21d5253..9508f3e 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -585,6 +585,9 @@ fh_alloc (path_conv& pc)
case FH_DEV:
fh = cnew (fhandler_dev);
break;
+ case FH_DEV_DISK:
+ fh = cnew (fhandler_dev_disk);
+ break;
case FH_DEV_FD:
fh = cnew (fhandler_dev_fd);
break;