X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74500383D80F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1629125565; bh=4EDKHi9l9agR66T5DnF4qdHANtX+FDDdAg5+hSYFjHU=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=sG+k2k1fY9pwcGF9CiACSMJNQNMWkIL8lkx/lle5W/WJbRxBG3+AMhuoYGhR3RHW8 7BWNWV7AGgbaFglBfm0zdMPCWhrGl6FOdSDswfweoJyZ8mcpisbU7bZGd+FKRMvbsx Ngj2aOxy/4rJZ56loH7a13Wjl8sVkEeORvn1IgIE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 40461394C030 Date: Mon, 16 Aug 2021 16:51:21 +0200 To: cygwin AT cygwin DOT com Subject: Re: Duplicates in /proc/partitions Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline 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 AT cygwin DOT 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: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 17GEqlbv006427 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple