X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 960243889C1A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1629311877; bh=N8CW4wdBsG5t9QB2Pvg95f/C85UeLarvF0aNW29DZwM=; 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=rAW/JTbNwIEZ9GLlMdJgNuw01A439MU26wz1V2UTc3n/rzcBHhu1AkjJmklziTwF2 cmA7jAJ3VC65XYmdNbDqIgnWnFJ1XmUc/WyJ7gIPPBsxZdYjJbAcJPZxZMnO78t4b7 YbjhEP6BdARbXEK1mav1Z9XvSIZLOqzFQkFiUSXo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 406533854812 IronPort-SDR: XoSGBsXep1KESIgyYbOWc8Q99vkNduc8pZIEj8bDM6z631UkjOUGcDdzhSYBnFK6kzU6647gnI KFdrBikep2ig== X-SBRS-Extended: Low X-IronPortListener: ces-out X-IronPort-AV: E=Sophos;i="5.84,332,1620705600"; d="scan'208";a="306975034" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iYTNVNJ3aeLjiSwQGImH2KNdxKknP3YqH4hRTDnJJPMfBFY8Ddx5oYaZTpbfnjt/SA7YZI+kO6fYGbwDlGgmB8GIeiGe5BRXbnups47+4F0fHOu1mxA5mHuzOF9PQr/occMulepll9xnMKZQ8i3B5y2ud5IL2amCom5y1TpzjDVy1/xqILCjh8KfIGI1IhBNijOKTW8wj03n7Gxbm76aOXbxNfU2jDqBdMNSQCNbvqSHf5TsdZF8JbKEBaShqhSv9C1SfkaeYJ4OLiF/BpTSN6D+xhhRGNO/cDqQjZRGQ/Z6s/Fp9BVR1vcA0o896d4Yd60fy/j++uhzoFvzm0Gb3A== 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=fgO/q9AEtp0N4J0jXz8Aow0xutOBFNCeyAy1seYkTs4=; b=BpzKzylEf506lNO+apceYAAnbmY2r2xLKBWKviiOQsoBMOhzMG2en566VbTbBWw1XekH/BcqKk6Vpx57smI0FLHbCEGfm188TmUBGaWxC4YjFKjPylj9qSkLGloYJBqRMlG+yXr++NBPDMNn2/vBUCbvZgHPRRRm2iI3rqeYD38Thoi2e8J4GdeHtwV3WYoh8c8T/cw0xlNjRdO/Fc9cByKnwVkGfrB6qKQKsUCzsAui3G01WysG6u4h15Kvkq4xePauJKmGE83SMpUUiwAsgpWhe691J0N2a88INbbEURYslEiVl3voaVUnFdlrx7O8HwongF7/tdbhBH0MblNuMw== 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" Subject: RE: Duplicates in /proc/partitions Thread-Topic: Duplicates in /proc/partitions Thread-Index: AQHXkDH4cTCV58/8mUC5AX7lCy3dnKt2O/aAgAAi+gCAAB+OgIABL1kAgAAP1wCAAZkwsIAADKyAgAA0qxCAAAQtkIAAAaDg Date: Wed, 18 Aug 2021 18:36:32 +0000 Message-ID: References: <9a770c83-62ef-6849-16e7-e6956f4d2fab AT SystematicSw DOT ab DOT ca> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d2c5a6fe-742d-40ae-9d6f-08d9627719d4 x-ms-traffictypediagnostic: DM6PR09MB4840: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mHLdpZICGco73MFprI/AiMyg7NFBqXj2Wq/jP4pNYFG9QMOUNKXVuQcapcisDC4N+WvxtULX5lFyWQKCL9E97uJHVMpyysJVbEr3w2qwjCCgdLJ/wJAFF9Sc0tdc6Ku+MCBX4PosWhi0zSsxteIli9wl94/vCDngOoFfU2gTSm97yoG7B2YTA+/kevEB5i0JTYi5RZcj9VuowgA4OT/OJlaGS6qqtCqj7zTCBJo8FbYTANgLz9L7lw2XQZtroIRyzU6rogXnpg1avkO+yfiD5dGMZxScOxu2kJiTkz4u0Oj+wid5xa9OrBQ8CywdeYX9GqZiN6K5jXoh4AeqcWLuVX3nAtB3iW/wrCxQv/Uv8I06AEaC6amCgOgTb5fjKaek25yWybSuIN5cyIHsuPWIb/EEdwNiTmimvLNjLBpf87FUUsM+woe9aWGjury+otpLRoa+RrbUk1ut+zl/jboMoGt/ZBVtNSs5kQ9pH0/GmeZ7q92o4YlpEgd8sIytVbIkxMbQ4WsA6q41r9+rC2c2Q3M49xQoOglz03nSI/Exu9gGgg88Q4yukxGdrn3tovdudeL6xJfR+GKeRHfVNeHe8TcQT0fYUi+QubJ9KXb6f7KNVEaIiuRC3YGg7QG+uF3Xl16IIfNTWbicoueh4jQ4yxJWI2QxVQDUA96AI4N9/43CEaJN938W9+nWW9kZpDOpGTTPhj1Zjg8WMzRT7/J1Sg== 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)(376002)(39860400002)(346002)(396003)(366004)(38070700005)(4326008)(450100002)(66946007)(186003)(9686003)(6916009)(66476007)(7696005)(64756008)(66446008)(66556008)(2940100002)(55016002)(76116006)(71200400001)(26005)(86362001)(6506007)(8676002)(122000001)(8936002)(5660300002)(478600001)(2906002)(316002)(38100700002)(83380400001)(33656002)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?oPCJMqbHPzK3vrvOtke0MEJuAQBbTJhEghuhjnyO0MTTIpUEIMWwkAdawlW8?= =?us-ascii?Q?KK7mRxlN4aM71s9GNGbhMmpKudSnFElMQc9b0o/HAeHnlRRbYY3Kheys6Sds?= =?us-ascii?Q?+RPrclox2+gGiZ2PKwuJ7ZhA10izY+C3mRgHs45I5yqf2dpB5BNOISXAA8bL?= =?us-ascii?Q?SzGywyPWuwFr70PkG8m2MBWXzPox19u9Fis10yZfNh0a0g1NwzkzXqYuUXxM?= =?us-ascii?Q?owRUtsYtkkJAZ4011gXDXITN4f050GYG/93WLPNfEtlhaapD5rdNobXjQ9CU?= =?us-ascii?Q?Lt2c84sCnG8YOsyBIlNfLIQFyoDYwmHt5XunYkdZkU2967b2MDjR8NjmNRbp?= =?us-ascii?Q?lpELxSuQcEYYOxcFRxJExfZY1wV31eQjL+SO5P3bFdjb3dwj0pMLqjLWh7u+?= =?us-ascii?Q?pzudU0Hn8YlRH9dw3fThx8VuxmuE/Es1mQdHkyq0Mb+OW05lSdpOweNZtIOA?= =?us-ascii?Q?ZnFeg2piQGXu1K1LgvaECH9NNoOc7X7BEaYnMbGXs1VjSp+be0Xmss81BfTb?= =?us-ascii?Q?2Isb2mao3VbWrYdvK5t9Jy9mLjnXALXvJvO+AwusD/1H1YAeNR7srF5xMghq?= =?us-ascii?Q?yIrEOHJ67t9K/Wpy3JBG8l0bJ5sRszKkKxKHCay+RPPTYe+Z/Urrc/vYsh80?= =?us-ascii?Q?p2cldTk4Yh3A++UNH46/NaYHqXXntyMnQJ4eGz+FHdpTJWsZC0dTTBfDNhgc?= =?us-ascii?Q?XvWSrt4KpujhHrW6wf0Q5IRc9Da3zQbqY5ZfH/X/uj53GjCVZEL1ZpW8eF01?= =?us-ascii?Q?A0pFjZ6rbXkvBdhjMSDAmuen0mL7/y1+NNi5gx4aoiYT+ti5L3hWkWWbgYPD?= =?us-ascii?Q?6/4YKvlAojXdCcaER4a7E8BmUPM8AlEujh34ntOQ8tjvCexzjyabwtMVFf6g?= =?us-ascii?Q?pLCvHoF3ugGEbJsbG9NzDfGxS1HlBqfiE3Ur9s63cSzwjFocTULzHe1VYbx5?= =?us-ascii?Q?T0m+uzIuKLQQzQ3HA1jYB/qtGMSM18IdhEqgc44ZkCqyW5ZmIZlgHh2Goz3Z?= =?us-ascii?Q?SnBE8i4ddV0Fy7t8BG9pwbgLDzQTIxYQm+XjP0Tt15HyL93VwzrjyBa2Ph0a?= =?us-ascii?Q?dG1WMP9RYZA8AEhbHIbT7QvQLaDADbrs13rU24Bg3AIxOkuoLjQwUHYUyeKu?= =?us-ascii?Q?kW/VOHqQegc5RnAd3nP16jwd+QOA6HKLEExY70l6KnJMFGMnr9SkPC2HF3xp?= =?us-ascii?Q?JboqnvZxHaGFea1KffhuQDjxfluu4zwShXeutDdkcicuSXSxNnb+5yNucvvo?= =?us-ascii?Q?d8w8ek57ETVpQ6XRAHodRYEPxaErO4lr9vhzGvGrXQX3zVCHxogoOrOdHw74?= =?us-ascii?Q?1pU=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: d2c5a6fe-742d-40ae-9d6f-08d9627719d4 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Aug 2021 18:36:32.2127 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR09MB4840 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\] via Cygwin" Reply-To: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\]" Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" > And I just confirmed that if I print the context right before NtOpenFile(), and just do > the "continue", But then I also tried this: I removed the "continue" before "NtOpenFile()" and allowed it to proceed, but I moved NtClose(devhdl) right after the "printf" statement (that we were tweaking), and inserted the "continue" there, so it does not proceed with enumerating of the partitions. And so again, I got the output that matches my disks without the duplication. So this actually exonerates NtOpenFile() :-) $ ./proc_partition context = 282 major minor #blocks name win-mounts 8 0 500107608 sda (282, Harddisk0, 144) context = 299 8 16 1000204632 sdb (299, Harddisk1, 144) context = 314 8 32 1000204632 sdc (314, Harddisk2, 144) context = 329 8 48 1000204632 sdd (329, Harddisk3, 144) context = 339 8 64 234431064 sde (339, Harddisk4, 144) context = 352 DeviceIoControl (Harddisk5\Partition0, IOCTL_DISK_GET_PARTITION_INFO{_EX}) 5 8 80 0 sdf (352, Harddisk5, 144) 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