delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/08/17/09:00:01

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9CF4388802B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1629205199;
bh=NmzZvHbRqEt0RteB7UGXLmaZS18sSLYk0GIXX8QAbFI=;
h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=MJa+whdyyXfybBcr7dCCmD1KZK1l8g+FQ7+mcI82A7JsFPN+9/fmqGFPh9bXzaqPF
yyVJcClDdB4WKDz2uYZGl3Y+APQOWr/KFxoGvjGmBnTKyhbAxj95hYdoXpnodI6bN7
Q/ANvH99aIum4tmHzjZZnGSY/KvU9hWAE0VAcPzo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D2FB0382BC3B
IronPort-SDR: 72Fm2RCOhPDwiqLMDzy/3dThM7oxyhsyKlCsIeCbjtGdiZqyUzuQYmuBW5KGhtyraPqFkcife1
V42s6ZSmIRKQ==
X-SBRS-Extended: Low
X-IronPortListener: ces-out
X-IronPort-AV: E=Sophos;i="5.84,328,1620705600"; d="scan'208";a="206557420"
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=XMdwBfpwYvLiJ+rH/XUr7x7I+nUmCgqBLeCAQkcFbo0qH9ov9xF701gn1P7VOqqTlZNXuoR6cgdwpYqt4FnGWQTzZROutXFIQtgC60TCALAeIP/ullK6w/yFUHFDlFYe1ohbrY+10YOjMHWPtj4gyluFrSJc9FHO1YzGI/tTIvjyKm1WHDQkVtEK8PEmRog9Y9wx9h11RGsS5LAxHHUogGIUzjYDW/Z4aLadIT2dWkCOEM8hxeXOsber/yARwaAduhxnLkpHwmgzi8PerN0QASp4/GSkGyL1XuqfLHVWQMqYyN3kiMzIxdmzbp1zHBR6qmwbHIWHM/7cnwVGJzJalQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=HiMcpDiVvcDIB/qpYioGQ76Unv+rTsZ3hcBpJuCB4Tc=;
b=g0oft/txXB5bg1L6CXie++0oYdZZ+IYSMOB1/ofZvXmDX1BrOmdOpGmchP//zd0Ef/KYHCmsDU+CpT3OKDq1ikw2qvLB3AQbzcvdXlzLjDYJ7kQxLhStccZ1+2PDZijC39aQV6hsAhS1P3xUW2rpdzjcDq0ljA/WrWn92Lk/iLnDvXP9CXwP7JtlRr07T0YIAtblyFISBgTYjtXfeJ/mKCWysbkT4jkraDDdJtwPFKrCoE25JmEAxzJTLjxHrHBqJKayk2Hrv6nTPwHN7NBCK6ol4QdGy6rDFQipKuqgRKSHGp7rRDiG/PG3ReFfXKMhyZ94Scsg98GluWawGENztw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none
header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: Duplicates in /proc/partitions
Thread-Topic: Duplicates in /proc/partitions
Thread-Index: AQHXkDH4cTCV58/8mUC5AX7lCy3dnKt2O/aAgAAi+gCAAB+OgIABL1kA
Date: Tue, 17 Aug 2021 12:57:10 +0000
Message-ID: <DM8PR09MB70958FD69B70B19E187BD682A5FE9@DM8PR09MB7095.namprd09.prod.outlook.com>
References: <CAPJ9Yc8KMkmkCsZH7HwzHD59ju41L0svOcCskd3e0OG4qJ8Gxw AT mail DOT gmail DOT com>
<YRp7abUpIAqLCod3 AT calimero DOT vinschen DOT de>
<9a770c83-62ef-6849-16e7-e6956f4d2fab AT SystematicSw DOT ab DOT ca>
<YRqzOZAiDEfkHBM+@calimero.vinschen.de>
In-Reply-To: <YRqzOZAiDEfkHBM+@calimero.vinschen.de>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 3bc95ed6-65be-49b9-495f-08d9617e86be
x-ms-traffictypediagnostic: DM8PR09MB7287:
x-microsoft-antispam-prvs: <DM8PR09MB7287DDE0AF9272A160976302A5FE9 AT DM8PR09MB7287 DOT namprd09 DOT prod DOT outlook DOT com>
x-ms-oob-tlc-oobclassifiers: OLM:6430;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: LXKC64eOc5iUCmEoh/sqUfbKK6Aaeo+a+hXXx24P45SmrItl9agKbB8o1XS/ZPl+3nWPkdSb+T88fnWAjwSz1Z2FuvNcbqZ/zUY69fok5UsVnKN/4Wux/A2Fre0MicjRxclm/PR8qXB6lIKxTC1nlpGvv4Ezx0dz3+VmkNc5GxeUGnlyZWlLGCIYzO7baZ5sIBMwy4dJjOJNoQFANP76XU3gFkAA1f15yGsOoYNxKpVweYgveRkGi3cLl979eB1RZeqxr5f5FgPCLn0ZKqGYmgut3uwNOVbfGMZ2XpwHnsqrCOiLLWTNcJta/tu5cWsad6Turu+6UkjziBr2MAy7EBAS15/vLyuDmQXPSEh5YiLEOUYmY2aID+fuzXfQGb+Yk1sY22xnxNkFi8KryD+oWUcPA6Zqa+ahV6stDlYDHL6gN9H9WXhZuwbhFKBwbQRJf0F+EVe4qqRguEaMBIrRTCUj4MfETcGKThvJn+qKlspBhB9jfO9glb4YOlpjLxh3/Q1Os5U43I8HSdiLgOXIS8KGzfB1mMWDQTEc1KU7HKL4MDxc5rMq3pkdXopaYe0kwDgb1JVCXiVazn2AGyOY91kg9E9qOZAeojXQldQ53hp9crp8IT/SH/mHNgKpHHxAnST5lDEjKdF20TlWs2v9rgJG68vMWmC3TrEZTG2AGqjpbwIA1qY+MLBXd/1yQtcpsv6GvPGowLxxjizmM9Ot3g==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:DM8PR09MB7095.namprd09.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(376002)(346002)(366004)(136003)(39860400002)(396003)(8936002)(55016002)(9686003)(5660300002)(6506007)(71200400001)(52536014)(83380400001)(316002)(7696005)(33656002)(6916009)(26005)(76116006)(2906002)(122000001)(66446008)(8676002)(66476007)(4326008)(186003)(38100700002)(450100002)(66556008)(478600001)(66946007)(38070700005)(86362001)(64756008);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NGpPSEgybFNodmxKOWZpNFFZN1U3WlJCT0hxTGFHcE45RTVYSWVqZXNvOXRT?=
=?utf-8?B?SFRPampoZUxGQjFIS2ZHb2VZUldTUG1ncGNvb1I0QS85c3R1NU9hb0s2OHV5?=
=?utf-8?B?ZzAzWmszZHlYQ3pnL2o4SDdMcCs0WTMxTU9KODZxd1QxUVVHcFNQZ1k5V2pp?=
=?utf-8?B?aVJkQ3g3cmlmNlEzclhjbnVYM0xrRjYzMkxrS09oWVVDemdhRlcvVE1pMi9D?=
=?utf-8?B?Vm1XN21XTkh0WXl5Y2k4ZVJDZWVjUWtpMW0zSW41bkdsbERBK0M2Q21ER0xl?=
=?utf-8?B?MjRSNEtxVjAwbHYvc3JydWpVZ0ZobU5xeCtlZHprK094ZUNXZmI4Vm1BeFdL?=
=?utf-8?B?Y3pkK1lwY0hxN3p6YUUzeXZUWVQ1WjBsZm9oQkF3VHA5OVczYzBwQ3BwSnBo?=
=?utf-8?B?MnFtM1cwWUpaaHJiaXVBWlVtL1l3Y2lzVFNIUDc1SjkvcCtVZnJtTm9yUmtD?=
=?utf-8?B?bG1tY2tKRkgxcU1jb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dXS1lrLzBsQUJI?=
=?utf-8?B?MERWR2R5aU1MZ0F4MWZJN25Zd1hBalZEaVVUN2c1dnQzSVZ0ZVRCd211WXl6?=
=?utf-8?B?ZktYcmxYeHlKMkt6RllFYkU3R25KeVNLd2JKMmo0bVVIUHFkdXhjSm9IMGtt?=
=?utf-8?B?cE0wK3cvbnh6ZFJrNWg0bGJUL1NoWDEvaVJlMFBZMzdFN1ZxdEY5R1FUZUx4?=
=?utf-8?B?Y0psTUdiNXdFSnlQcjllVTJBTFZvejYwRGZ3cnRTdklsc2RySytkeXVXWlBV?=
=?utf-8?B?TlNhcndVd0RYRERydGpJeTJBd1hNek5KZU1EQUlTanpRUjVUY0phZm9HTmNi?=
=?utf-8?B?dTFqcFdhbnF5TEVFdko4RTNzM2oxaUFoNHA2UHFFcERXa0dGNitwcDdCM0hk?=
=?utf-8?Q?ePQxtiHbUYzz82udFo=3D?=
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM8PR09MB7095.namprd09.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 3bc95ed6-65be-49b9-495f-08d9617e86be
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2021 12:57:10.2254 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR09MB7287
X-OriginatorOrg: ncbi.nlm.nih.gov
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H2, SPF_PASS, TXREP,
T_SPF_HELO_PERMERROR 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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\] via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

> $ gcc -g -O2 -o proc_partition_O2 proc_partition.c -lntdll

I ran the program (without gdb yet, can't doit right away)... Its output is a bit different from /proc/partitions (w.r.t. drive names), but I still see the duplicates:

$ ./proc_partition
major minor  #blocks  name   win-mounts

    8     0 500107608 sda
    8     1    102400 sda1
    8     2 488280064 sda2    C:\
    8    16 1000204632 sdb
    8    17 1000202240 sdb1    D:\
    8    32 1000204632 sdc
    8    33 1000202240 sdc1    G:\
    8    48 1000204632 sdd
    8    49 1000202240 sdd1    I:\
    8    64 1000204632 sde
    8    65 1000202240 sde1    I:\
    8    80 234431064 sdf
    8    81 234428416 sdf1    F:\
    8    96 234431064 sdg
    8    97 234428416 sdg1    F:\
DeviceIoControl (Harddisk5\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) 5    8   112         0 sdh

$ cat /proc/partitions
major minor  #blocks  name   win-mounts

    8     0 500107608 sda
    8     1    102400 sda1
    8     2 488280064 sda2   C:\
    8    16 1000204632 sdb
    8    17 1000202240 sdb1   D:\
    8    16 1000204632 sdb
    8    17 1000202240 sdb1   D:\
    8    32 1000204632 sdc
    8    33 1000202240 sdc1   G:\
    8    32 1000204632 sdc
    8    33 1000202240 sdc1   G:\
    8    48 1000204632 sdd
    8    49 1000202240 sdd1   I:\
    8    48 1000204632 sdd
    8    49 1000202240 sdd1   I:\
    8    64 234431064 sde
    8    65 234428416 sde1   F:\
    8    64 234431064 sde
    8    65 234428416 sde1   F:\
    8    80         0 sdf

Anton Lavrentiev
Contractor NIH/NLM/NCBI


-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019