linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Roman Mamedov <rm@romanrm.net>
Cc: Filipe Maia <filipe.c.maia@gmail.com>,
	linux-raid@vger.kernel.org, linux-xfs@vger.kernel.org
Subject: Re: Sector size changes creating filesystem problems
Date: Wed, 16 Jul 2025 21:30:56 -0700	[thread overview]
Message-ID: <aHh8gJ26ES2MQ77A@infradead.org> (raw)
In-Reply-To: <20250716221003.0cda19e3@nvm>

On Wed, Jul 16, 2025 at 10:10:03PM +0500, Roman Mamedov wrote:
> If you dd the XFS image from an old 512b disk onto a newly bought large
> 4K-sector HDD, would it also stop mounting on the new disk in the same way?
> 
> Perhaps something to be improved on the XFS side?

Nothing to be improved, as the sector size obviously matters.  It is
part of the hardware geometry that is fixed, as XFS can read and write
down to the sector size boundary.  Both for internal metadata, and
through direct I/O also for applications.  The latter is true for other
file systems to, so even when you can change the sector size for some
file systems, you will be subtly breaking applications instead.

      parent reply	other threads:[~2025-07-17  4:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-16 14:30 Sector size changes creating filesystem problems Filipe Maia
2025-07-16 16:21 ` Yu Kuai
2025-07-17  1:07   ` Yu Kuai
2025-07-17 21:07   ` Martin K. Petersen
2025-07-16 17:10 ` Roman Mamedov
2025-07-16 17:46   ` Filipe Maia
2025-07-17  4:30   ` Christoph Hellwig [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aHh8gJ26ES2MQ77A@infradead.org \
    --to=hch@infradead.org \
    --cc=filipe.c.maia@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=rm@romanrm.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).