From nobody Wed May 31 22:46:30 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QWks75ND7z4XlNk for ; Wed, 31 May 2023 22:46:35 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QWks64YGYz413y for ; Wed, 31 May 2023 22:46:34 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=zPJDrXon; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com; dmarc=pass (policy=none) header.from=holgerdanske.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1685573191; bh=yp7zn7El2osx2zFqWxPGGJRQdHEHJwNIwKdfuFvvsUk=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=zPJDrXoncSyvWX0yBbzoVC1GiIQOg2F7NSY0X0PGwPcY30uLlh2/eCVqbT7MZENLj bLixcam2HlWYhQ9dtpAzMBzErbB47lJMcYaZuHB4wcQaiczjKDWLbftPZ3Iej+SagA k6zhy3fXsxRRQ9NJE4gGh3Tf9SgIdYGn0zNIQMFwQzObmPqj5hopaGAuM2tqsH7lqi oX5Gr7IdnHqHwN++Lj04MurEZw2VpRaAti94g+Q1BezwofNhwbH0QZRgBUL2Qt6b/j +nA5zDBjihfaL1ofPhYyXH/z/rH2jYSP0CckRI+19FD2hDcnGurcJbrs6BSgIOsbXO vP0HFXnwZt6Cq2XXTIufMGKVV13r1/LZ6D02dD5OVGndLmHOndaeGew+YqnXZNA663 TBIPLRI4OwY2dJAZC24qDnOA97hoCx0t4xKcO1QeodTtXdicezHPozmKgelMcfo/Am FdA71A9kuQrYFHMAzPOzY7txyFRQkse2ijCTTqPlWRLcn1WY1//9xDo+I+hDf7Y98F LHcWkS7wVKeJ4ckLZuexyyPyDLoz7H3hkldNmDv5JFje4LlCPxxL1eyktfp/EsXck7 RKAOoQlkF1EFHCF6F3Gxh5QpSaGrNmySf5smzZothphteA/Wwtw7tpuYnYd/3Kv1wu pQv5nxIAuV8nS4t5Rrxjb4vc= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Wed, 31 May 2023 15:46:31 -0700 Message-ID: Date: Wed, 31 May 2023 15:46:30 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: read and write back full disk to trigger relocation Content-Language: en-US To: questions@freebsd.org References: <1957739901.520492.1685310340560@ichabod.co-bxl> <0d0186c5-9542-1af3-2ce3-e28480b4b6d7@holgerdanske.com> <1961596841.3509648.1685359514813@fidget.co-bxl> <00671d49-83b1-26a0-4e28-47eb0d7cb95c@holgerdanske.com> <2025846914.656453.1685438293844@ichabod.co-bxl> <343655931.86727.1685490563032@ichabod.co-bxl> <82a367dd-a32e-17c7-acf7-1f6992ff20af@holgerdanske.com> <504607037.200282.1685569498612@ichabod.co-bxl> From: David Christensen In-Reply-To: <504607037.200282.1685569498612@ichabod.co-bxl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[holgerdanske.com:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4QWks64YGYz413y X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 5/31/23 14:44, Sysadmin Lists wrote: > David Christensen May 31, 2023, 12:30:43 AM >> On 5/30/23 16:49, Sysadmin Lists wrote: >>> David Christensen May 30, 2023, 4:16:09 PM >>>> I would say the experiment should be repeated on real HDD's, but how do >>>> I detect if identical data has being written to the platters? The HDD >>>> controller also has a cache and could optimize away such writes. >>> >>> Isn't that what dd is claiming authoritatively to be doing? Otherwise, putting >>> that example in the manpage is dangerous and can lead to unexpected data loss. >>> >>> I don't speak C++ very good, but here's the source: >>> https://github.com/coreutils/coreutils/blob/master/src/dd.c >> >> >> >> Looking at FreeBSD code will not provide information about the HDD >> controller hardware and firmware. > > You're still not getting it: *they* are the ones claiming to be effectively > writing out those blocks. It's up to them to validate that claim by accounting > for whatever HDD controller hardware and firmware are doing. > > There's no magic at play; either the source code proves their claims and > assumptions or it doesn't. > > Perhaps you can submit a bug report asking them to remove that example from the > manpage, with something like "you can't make that claim without knowing what > every HDD controller hardware and firmware are doing." Will be interested in their > response. If you feel the need to file a bug report, go for it. David