delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/08/02/14:23:22

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C3723890436
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1627928601;
bh=QAmGNBamYNxLcl9tha/EkstIVR/dzrMM++aGkX8qLAw=;
h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=KoNqg3hWB5e0mAydHojedg1hWTSdorFJ78fNFDMgq6IttsVC+azEOFbYmggApFoVD
lw5cOY3diaPjO9aF/QtRSW0boEU0v/7snyqPg7AGwf97Z51XFSS/Npig4RhhYyFUEt
MR0q9v055x6E7PAJ0O/LLV1J9rsyTglDmI3CPsWY=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BF1CE389003F
IronPort-SDR: /iTPuHn1/p1xvx24P/tHu3+CxcVkV/s3FliSddBPvkbeZq+fJU/GPIayavWMKCqITW++9ivXnZ
bxaGUUDzzLsw==
X-SBRS-Extended: Low
X-IronPortListener: ces-out
X-IronPort-AV: E=Sophos;i="5.84,289,1620705600"; d="scan'208";a="202983130"
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=Rhfb/KQhBk3W9oRcQxhwYvuBW33u4KnThbhfjQUC5sCkbrnbGNFWe1eq9YoWR2K6wsYOP11vko8GUi8eXBcjXUi+y6wT+FcU4cCwyKBVPuaar49IK6jQI2xxxouq/DCphd9JNAh02TKDMlKGv1ZdBVMVU1huP6J88kET8+PtHg28Q6Jd1Ja6T2ED/VJiNkA07bBR8qhYIVb4SpF5yVVfJ91ASeA4uvKL8fFXnz9AsRhB76c1PaN+TA552M+1pIiVC3s8Yg0r8QY7ckCMrR9CCsSZoZGSOLYyz4PpP0vK4EbXKOgVCalcAuoKImSqqRsm0kq3ncGRp8TIYXsPqZoTrQ==
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=Vl82khKjRxnmbmFvXzNjZFmYpIznZJC6Yn0XSVLu9Lo=;
b=oI9lTxL+4ITFVTg8AuCzBSvSMMXgmxnO7Hjx6HLDTTr74YLA3kaQhJ7GHB/1t5DG5+rksyXJX9fPp1rZVBDuiuQ1ppUUKbO7esOWU3gcmZ/phQB3XUosM9kTGyZfiKOMitwjF94Hs6a6z6EhaFjvMdVRkRQQ4tlSebHVAY9m1s7ND0Dz/Vafhg5fFB0PFkxWJoT440UrcgrMqMw6rE40xSUieCKfwavah5XIXbwg7HSwLmwp/JVm5kXPQ6Cy1rTDGIe6bHCr65THH1KAQKGiR2nuB+qNpthmLF+2qA/luwoB+MJ3x10jX+jvWR0o+a7S9fu2qz4p6IqBMY882PryAQ==
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: Seeing double in /proc/partitions (Win 7 Home)
Thread-Topic: Seeing double in /proc/partitions (Win 7 Home)
Thread-Index: AdeGUMEwMI0LSP5TQEmL69jKr4c/lQBKlyEAAAqvlrAAAIdcAAABG+4AAADGoCAABqRhAAAAD2TQ
Date: Mon, 2 Aug 2021 18:21:25 +0000
Message-ID: <DM8PR09MB7095BC7E894D31D2DC5C77A8A5EF9@DM8PR09MB7095.namprd09.prod.outlook.com>
References: <DM8PR09MB709539AEC9028AC39D91090CA5ED9 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
<YQexSP8vBCzfJL+r AT calimero DOT vinschen DOT de>
<DM8PR09MB7095A847B0E239753A1CC7C8A5EF9 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
<DM8PR09MB7095B52052AB72AA10D5B7F2A5EF9 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
<YQgD/IA0JYVWcnrS AT calimero DOT vinschen DOT de>
<DM8PR09MB70954B0B82E59E49E0B2D5BBA5EF9 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
<6ffd84eb-24e0-c80c-fc5e-eb38c9b22b42 AT SystematicSw DOT ab DOT ca>
In-Reply-To: <6ffd84eb-24e0-c80c-fc5e-eb38c9b22b42@SystematicSw.ab.ca>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 50b47068-a041-41c4-add0-08d955e256e0
x-ms-traffictypediagnostic: DM6PR09MB4886:
x-microsoft-antispam-prvs: <DM6PR09MB4886CD49CE316A11597FE6C2A5EF9 AT DM6PR09MB4886 DOT namprd09 DOT prod DOT outlook DOT com>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: pa50p0gxcNLS8sff5zMwWmQi9ze5qebQVK84u8q1TgHkf4g61HQWykp+jV4WtaDrhNFJiDadY3lMexIX1DjDYltSPX604cY7/3nScq0jZ0BCoHAefdJyS+CVl9mrO0DmLaUfSvzObILR0jM29tB56ADMlJfYRFz9F1UnW197BhQec2duA68YoN52d8L2sKDAZ/dIiuVSnzRsZEEPekzWwp+7Mc24lyhz84npiPbf9UVmZhQ3BWSVjutBA5ildv8+3dXM+3yRNzU/9Kl/1SPcz30a59Xhlgd+XTDeU9xz7FHh80M0vakVQO9XIByuv7m9iqM3pEaj4EV3DteOd9VT7mIAGUe2cYF/Ygwvj2H8kdsMd12uQZqFJcNGjCkvC/EpJ2PJ+YP5qXWu1lHH96ZpAgeP5ruv5mcASpiN04W2eLd5ebHU1ae4Xwin/bGVDb9ladi8yWrgdQGVAT1UEfPvTR+wgJOjcgjhOFn2D3W5n3lb5zYFkVdrlDIKoD1Vktq4Fs/ssz7NkRpKBSG0j4UTmmvnCw9z7CET0evmZtVuHZTzcfEoAWsvR/y8bJW0851Ndz/fXrJBNIVwzaIo98qnAnP1E9K1axw1ZHQQdL+bxoDs1MelBZN/oDXhWmi8JVN2kuWdocUimUjKWUAkjMtlfmreTeJ36FwPU0oDb9fAcjNwaK8ZbDCcTVPheU4ZkhLopAsHUvJV1CbiWVR0pSAJkg==
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)(136003)(396003)(366004)(346002)(39860400002)(376002)(7696005)(64756008)(66946007)(6506007)(66476007)(316002)(8936002)(2906002)(38070700005)(86362001)(76116006)(52536014)(66556008)(66446008)(8676002)(33656002)(9686003)(186003)(6916009)(55016002)(122000001)(83380400001)(5660300002)(38100700002)(71200400001)(19627235002)(26005)(478600001);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?cY26FSJGyauZAgfREKLrLW/jFhNH+hpyDPJ4fxgNah+UVwQjoZ5OMcI3jXo/?=
=?us-ascii?Q?8wXFDyLSDNs3lrOxKW8VkgNG4A0j73AA28hsDbtSM1ig1DAVbnYb6ay//+TO?=
=?us-ascii?Q?sZwq2Cr9hc+eHIUY9cS2HkF/AeYtfwONFJfX34PuJz7o48nY3UwC/47G8q5F?=
=?us-ascii?Q?ZouXV3vcgVXcTR0PkjXnzM8k9nNB/HCbxraNHEaJ+/eOddWk6PZVEdrWGKyF?=
=?us-ascii?Q?Gf4nlHZovWff70BLfEAwdswcFoue02uDYdLzND1e0exe2Ap+zo+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okdFwDbn5DeHXP4l7RgKh3G3WgrzYEwqicddvoRBjrxiUaGN7n3g?=
=?us-ascii?Q?vJAmmsq+Sow1S9LGq8MGH75M5VZJ9BzCK8b/mjCEt0nB/aAqnHwx+caHaj3G?=
=?us-ascii?Q?hfO2i+uF9+aaTOmnbeG0O+DqiH5yffZy2cPVbmUZLt/p7jt3aldWCuRuHjYU?=
=?us-ascii?Q?4jDtbVLHZ6fP7XpIwtvkcl0n?=
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: 50b47068-a041-41c4-add0-08d955e256e0
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2021 18:21:25.7444 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR09MB4886
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, 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>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

> Under Cygwin you can also list from an elevated admin shell under
> /proc/sys (add Cygwin bin to an elevated cmd PATH) e.g.:

Thanks.  Did so.  Everything is proper and singular, and totally matches the winobj display posted earlier:

$ ls -dlgo /proc/sys/Device/Harddisk[0-9]*/*
brw-rw-rw- 1 284, 9999 Aug  2  2021 /proc/sys/Device/Harddisk0/DR0
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk0/Partition0 -> /proc/sys/Device/Harddisk0/DR0
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk0/Partition1 -> /proc/sys/Device/HarddiskVolume1
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk0/Partition2 -> /proc/sys/Device/HarddiskVolume2
brw-rw-rw- 1 284, 9999 Aug  2  2021 /proc/sys/Device/Harddisk1/DR1
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk1/Partition0 -> /proc/sys/Device/Harddisk1/DR1
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk1/Partition1 -> /proc/sys/Device/HarddiskVolume3
brw-rw-rw- 1 284, 9999 Aug  2  2021 /proc/sys/Device/Harddisk2/DR2
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk2/Partition0 -> /proc/sys/Device/Harddisk2/DR2
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk2/Partition1 -> /proc/sys/Device/HarddiskVolume4
brw-rw-rw- 1 284, 9999 Aug  2  2021 /proc/sys/Device/Harddisk3/DR3
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk3/Partition0 -> /proc/sys/Device/Harddisk3/DR3
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk3/Partition1 -> /proc/sys/Device/HarddiskVolume5
brw-rw-rw- 1 284, 9999 Aug  2  2021 /proc/sys/Device/Harddisk4/DR4
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk4/Partition0 -> /proc/sys/Device/Harddisk4/DR4
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk4/Partition1 -> /proc/sys/Device/HarddiskVolume6
brw-rw-rw- 1 284, 9999 Aug  2  2021 /proc/sys/Device/Harddisk5/DR57
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk5/Partition0 -> /proc/sys/Device/Harddisk5/DR57
lr--r--r-- 1         0 Aug  2 14:14 /proc/sys/Device/Harddisk5/Partition1 -> /proc/sys/Device/HarddiskVolume59

And, Oh!, from the same elevated admin shell, I get no doubles from "cat /proc/partitions", either!

$ 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    32 1000204632 sdc
    8    33 1000202240 sdc1   G:\
    8    48 1000204632 sdd
    8    49 1000202240 sdd1   I:\
    8    64 234431064 sde
    8    65 234428416 sde1   F:\
    8    80   1931264 sdf
    8    81   1931264 sdf1   S:\

Note that "winobj" had to be run "as Administrator" as well, in order for me to be able to open those entries...

IDK, if "strace" elevates itself somehow but like I noted previously, "strace -o cat.strace cat /proc/partitions" shows the list
without duplicates.

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