From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by sourceware.org (Postfix) with ESMTPS id 40461394C030 for ; Mon, 16 Aug 2021 14:51:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 40461394C030 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MiaLn-1mlO983raZ-00fkiP for ; Mon, 16 Aug 2021 16:51:21 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 8D25FA80DE0; Mon, 16 Aug 2021 16:51:21 +0200 (CEST) Date: Mon, 16 Aug 2021 16:51:21 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Duplicates in /proc/partitions Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Provags-ID: V03:K1:6JSf6UW12gf4ENE9PcVe4LEUVte3Tx1YMRiwbhfXWsDQLn2FvLG mg3hM0hrfqqrood0NY5eb+euz7PwkVFSFzigDavcVakfKTv2JU0ZQl959x+O//yaAr0+jVB 46uq91AsBD89eHLfH/t2m6jZxOYOc8bGU8HPLJnabsxV8yC3mUlH1ohRdK7282L3oc801gz xDQ9SwdSF1YUfmX8Bc3Jw== X-UI-Out-Filterresults: notjunk:1;V03:K0:VE3x1deqHT0=:HIvbEmA4dUkoGn4tpqn3L3 4DBBMGn34kVWyTq+m6VMUCj31yQ7bYJyu31xhoiIeMZduA7y0H397SFpiOezUudhDKa9/W8Lj td/8bilmF3qjBQeAZKksBuUFK8xHzyj7Ec2PRLVrl+geSJz9TIcBNZXBHCMDhaadUDYqFwwvN FoTm4vad6v40EHD6Suwmi6QcwJhGGFzNmmR/+3jeALSiXPdiBgjjRksQLu+6EGxWD34XjyXse Y1aW98UCWV6vxMmffmVAvSL/LJLUXYpBb6qvwNoo9iyEkTAWJCO9ALgOJFw6OxOFri+bHCKqK Y9ZdgsdRCv2ZW5IPsvcBTc4HxjKiFD1YM5WAqPlBf00+yIUjvIsFsIVjWCmFion2jLCEaV1+r ZlfZ3ra4nAaHfd+bCf6BElqmwb01Tgi+F6fpLu+QdTmN5Njuy8JY8N4WHQMF84tWf3T0xn3hn Wz57V8iI9iBhqPuT4OJqBbqswk3p6XiuBsZ/T2MzunYTgw/EbdxpPvpysNU6CYyqSH/k4Nelx VmCFKJcjEPY1SUuP8tj6yoZLmgzD/Ns4CSoA54/j2767E9tazm9d5JnSidqentkLsxmq7jOrl Od1+hCbXtneSRHQ+8OmCtksqjGuiiuAk+uA5w4Z3jmcJhyH6BH8RGhyUtedYoqOxhn8gyvCBF q436+U0X6fPWWWMeXbiIYHwWgOxYhhd2SnUFI6f95Vm0kx1n1nWtFd18Knvc8dyHk6T9c1nZH pNYtfhVd9NC2bYUeItVLXhjpeNOrENARBu+gbBg7CQR7iFnWofU4fa9I4HWoroYSe+eLrQIvf yXXAX5npgkq7hLMsArV+w21HG7meZTUzTRIEICkyf3+gkVdjgZXBQOP1SsV7EvwaX4vcEwzlr z38KSl/FOjf1wPEofYfA== X-Spam-Status: No, score=-99.9 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2021 14:51:33 -0000 On Aug 13 12:56, David Balažic via Cygwin wrote: > Before, during and after plugging in a n USB stick: > > $ cat /proc/partitions > major minor #blocks name win-mounts > > 8 0 1000204632 sda > 8 1 102400 sda1 > 8 2 16384 sda2 > 8 3 999571820 sda3 C:\ > 8 4 510976 sda4 > > $ cat /proc/partitions > major minor #blocks name win-mounts > > 8 0 1000204632 sda > 8 1 102400 sda1 > 8 2 16384 sda2 > 8 3 999571820 sda3 C:\ > 8 4 510976 sda4 > 8 16 62522712 sdb > 8 17 4096000 sdb1 D:\ > 8 18 58424664 sdb2 > 8 16 62522712 sdb > 8 17 4096000 sdb1 D:\ > 8 18 58424664 sdb2 E:\ > > $ cat /proc/partitions > major minor #blocks name win-mounts > > 8 0 1000204632 sda > 8 1 102400 sda1 > 8 2 16384 sda2 > 8 3 999571820 sda3 C:\ > 8 4 510976 sda4 > 8 16 62522712 sdb > 8 17 4096000 sdb1 D:\ > 8 18 58424664 sdb2 E:\ > > > So the second listing shows sdb twice. Also E: does not seem to exist > (see below). So, second report. Which OS is that on? I don't have any physical Windows machine anymore, so I have a bit of a problem to reproduce this. As I wrote in https://cygwin.com/pipermail/cygwin/2021-August/249012.html, I don't see how Cygwin would be able to duplicate entries, unless the OS itself duplicates entries. Somebody who can duplicate this issue would have to single step through function format_proc_partitions, see https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/fhandler_proc.cc;h=66d19ab82f;hb=HEAD#l1686 and check what actually happens in the above cases. Corinna