Re: [PATCH 1/2] Detect RAM disks as a separate filesystem type

2023-08-07 Thread Corinna Vinschen
Hi Les, your 2nd patch looks good to me, but this patch is a bit questionable. On Aug 7 03:13, Les De Ridder wrote: > diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc > index 36ab042a7..1950dadb0 100644 > --- a/winsup/cygwin/mount.cc > +++ b/winsup/cygwin/mount.cc > @@ -292,6

[PATCH 1/2] Detect RAM disks as a separate filesystem type

2023-08-07 Thread Les De Ridder
Native RAM disks, e.g. as are used in WinPE environments, have other characteristics than regular filesystems such as NTFS. For instance, re-opening files with NtOpenFile is buggy. This commit checks whether a volume is a RAM disk through the NT object the drive letter link refers to. This seems