delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/08/19/11:16:32

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FFCE38515DD
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1629386191;
bh=46D5NmLgK4XxhQWRuT2PIRiwLi5FpszA+EE8rKNnFB8=;
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=LVvnI0fPgiJEw93dqK/qKhbdWQ5S9DbJglyOxqfPIAXFdoKrR2rcfPXpR3Z8M5Gri
tNrTfWal5IG59McZQM8a9Ihh8CI8oXYwOfan0QsayJVhHc1Zp72ARTE/wkfd99kSdz
zVUY/39V08OpBBCJoFHWcJ5v6zlhBbrdxZIYPRz8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1DA163858437
IronPort-SDR: cYR5B2pOsL3gjLGnIYqnMAsFfehzpV82ejW92InGhkPsISQNZw9YPlED8fZGcR/nk6vcapnKhv
f9yb7IE3wPKw==
X-SBRS-Extended: Low
X-IronPortListener: ces-out
X-IronPort-AV: E=Sophos;i="5.84,335,1620705600"; d="scan'208";a="207340578"
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=dFuFcsatX3Oa6bPmELeXBZfo4lJ3FhRLCdxFHikxITfCRobFgSEfd3DaPb+VVKJjzEnnO9T32NJ8WAz3Bn0j3YziB1kTip16qZqNWG50P3XPDHzL01Ld0wEOyH2K/+y1eJQEq/hXEOgF2PB7JwjTNwBJZZ+z9IjVvCLzop6uzIdgUe79VLJ1EH8e6MmiX/7TfNs9OFsFpaO2SsIMFkEecStWgQODLjXyvf2bLKUh9z+Ml2CPVifMy15xYwyl77nI5Kw5/fCisQLoZ/dmMomrfImxFSxKdvOkBZAZsTibgYth9lOEHoOfA0m3M8zrxRZy8e2bSzAEaKha17idzQrpSA==
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=ADM4brrAbzOs7ngR6S/0i3ANJyBUiQCv2zUu9dOr6eI=;
b=Nm6tl+SEUS8MX3e3hdR+85876/qzZJG7xo/YxNkqyRpzbhEsGRokf9gXRQJe9AHWxVI438Hn0DI4Fboy4MnKr1B/kYwOvBKONnliN7w99gZPferp4UQuLQlf0kr/aXoscVQO28GZsY6xEuRCNg9DOfRjj4iIHXLFpvD9NjEpFZXLCC+vlLAkAwi65u/WHaZIMDdzeJDchQ2U/bQ1NL1fkS2LTY4L37g85EQzy/A2AfesisMjt6SmzjnvktVQlhWl3oniouAO4lZIdEdumcWbaxXcRSYi7q1ZDOYNCYfauRHygV3fmP8rcYiYv8VXxTlN+j8QaEAOKixZYkMxLVHnlw==
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+OgIABL1kAgAAP1wCAAZkwsIAADKyAgAA0qxCAAAQtkIAAAaDggAEEcACAABckgIAAOJIAgAAFqJA=
Date: Thu, 19 Aug 2021 15:15:26 +0000
Message-ID: <DM8PR09MB70950620A1B35CE661FA090FA5C09@DM8PR09MB7095.namprd09.prod.outlook.com>
References: <YRqzOZAiDEfkHBM+@calimero.vinschen.de>
<DM8PR09MB70958FD69B70B19E187BD682A5FE9 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
<YRu++uklGOPynvdf AT calimero DOT vinschen DOT de>
<DM8PR09MB709560E2652D35DBE54217C9A5FF9 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
<YR0g29R5sQpEio9A AT calimero DOT vinschen DOT de>
<DM8PR09MB7095852064F71BCCBBFB998AA5FF9 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
<DM8PR09MB7095EE5F6B0192EC6F42823BA5FF9 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
<DM8PR09MB7095D416926BFC028E6BBC21A5FF9 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
<YR4sYNqO+bVYuCHd AT calimero DOT vinschen DOT de>
<YR4/yRCTTTz/nXXl AT calimero DOT vinschen DOT de>
<YR5vPnkH6RN6eapZ AT calimero DOT vinschen DOT de>
In-Reply-To: <YR5vPnkH6RN6eapZ@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: 01cfbfe3-fca4-4a65-f6df-08d963242c7f
x-ms-traffictypediagnostic: DM6PR09MB5800:
x-microsoft-antispam-prvs: <DM6PR09MB58007E81D50883B38C1A10E4A5C09 AT DM6PR09MB5800 DOT namprd09 DOT prod DOT outlook DOT com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: t+V32bt2DWfezo8/9UiLdPXtk+PZolmWshl5vZb1un5VnZ8s59KQVUNvFUXMXk/KBPGeBDMoyrgGOqm8fbW/vqWV1AwYKZgsQkej0kPuLzi2k+9HzrdjBaStCFtZUVl/UxN5yKDwna/Vg9AKs2GwDATeXayLxu7tDwisXO2pJwn9sLbpczcUj1V5afIB/CCjL44X6bzaVxy9ZgHzXWJrlTkWhp6PmMNtK+ATH65I/m3SVd/pkDctUTSt7aOtXeeAWVVoYqwzZMYJaXRLtQJCyDWxraTXppPGX0ogr/l34i7RQs5KTD3Kr/VdDpV32hiSnHHJdUj80C4FbYGMS3slPKLWJgap69oWAkGHE4cYfYiYvMmtE7IDyeB4OWR30TGOxIvCzC6WfQgChnJJSiP3IdAU0NMztqW6TpMxhq3eRiXEf/ifh3fiT8/jrO0QQkdA9upb/xuo6PLM1h41ohQ1yJi0JeVTl4FCQiPxmlrepEvwq7AY73X/z1WklQaPAjtW6HjvLa03U1ynAmVuTRhVHPC1FWafWURVvYZrcZbfY9Gu0QoJRInOi9QK+mIshZz8UsAtvrilVce/5CqDP5MQdPjs4PD9lwC4DECZaqFZwJCVWDc64LI5l8SLM3wz0du739hkuYSFJUOHANFsciO0hFL2Ki4nGRbiiFXX0WJNeXrONeRfeG27au0Z6UOKCpMQap9YiNZwCM7of2S2yrA5u6+s/LHDrJjMUSdjj6j+NijXKEMiiHA2/aCjvs2EKzSBtNeGuosAm1qbSqO6kajHtaNtF3VBKdwZ7ub1n8NJwbA=
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)(39860400002)(376002)(366004)(396003)(346002)(55016002)(26005)(38100700002)(83380400001)(71200400001)(966005)(6506007)(478600001)(9686003)(76116006)(186003)(66446008)(66946007)(66556008)(64756008)(66476007)(450100002)(38070700005)(33656002)(86362001)(52536014)(316002)(6916009)(5660300002)(4326008)(122000001)(2906002)(8936002)(8676002)(7696005);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?utf-8?B?bHp3TUd4dUkxL0ltZG4xV0swOU5rNFhhUldzQUZBc2ZjWGtQb1ZhR2JRc2po?=
=?utf-8?B?UnFzNEI0N3JFVG14S1ZDSmlUMXF3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d09.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 01cfbfe3-fca4-4a65-f6df-08d963242c7f
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2021 15:15:26.5395 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR09MB5800
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>

> > loop is not working atomically.  If a new object is inserted into the
> > dir preceeding the currently handled entry (which, on a reliable system
> > should *never* occur), the entry is moved by one, and the next
> > NtQueryDirectoryObject call returns the same object again.

Very interesting...  What would be inserted in the directory on my machine,
in between the calls in that original test program?  It was the only one
running there, explicitly, I mean...  And exclusion of the loop of partition
enumeration seemed to cancel the insertion?  I think the insertion is only
one exhibition of the problem, and the other one on my machine here is
different, and not well understood, but with the same side effect,
unfortunately.

> Anyway, would you mind to test the below new proc_partition.c as well

Looks promising indeed!  No duplicates:

$ ./proc_partition
bytes_read = 34346, context = 461, status = 0x00000000
major minor  #blocks  name   win-mounts

    8     0 500107608 sda (461, Harddisk0)
    8     1    102400 sda1
    8     2 488280064 sda2    C:\
    8    16 1000204632 sdb (461, Harddisk1)
    8    17 1000202240 sdb1    D:\
    8    32 1000204632 sdc (461, Harddisk2)
    8    33 1000202240 sdc1    G:\
    8    48 1000204632 sdd (461, Harddisk3)
    8    49 1000202240 sdd1    I:\
    8    64 234431064 sde (461, Harddisk4)
    8    65 234428416 sde1    F:\
DeviceIoControl (Harddisk5\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) 5    8    80         0 sdf (461, Harddisk5)

> as the latest snapshot I just uploaded to https://cygwin.com/snapshots/?

I'll have to do that later, not now.  But I'll report once I have a change to try it out.

Thanks!

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