All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Steigerwald <Martin@lichtvoll.de>
To: xfs@oss.sgi.com
Subject: Re: LWN article: 4K disk sectors
Date: Thu, 12 Mar 2009 15:17:47 +0100	[thread overview]
Message-ID: <200903121517.48426.Martin@lichtvoll.de> (raw)
In-Reply-To: <200903121452.16419@zmi.at>

Am Donnerstag 12 März 2009 schrieb Michael Monnerie:
> On Donnerstag 12 März 2009 Eric Sandeen wrote:
> > Take a look at the mkfs.xfs man page:
> >
> >        -s sector_size
> >               This option specifies the fundamental  sector  size  of
> >               the filesystem.  The sector_size is specified either as
> >               a value in bytes with size=value or as a base two loga-
> >               rithm value with log=value.  The default sector_size is
> >               512 bytes. The minimum value for sector  size  is  512;
> >               the  maximum is 32768 (32 KiB). The sector_size must be
> >               a power of 2 size and cannot be made  larger  than  the
> >               filesystem block size.
>
> Ugh, I felt so good this morning, until you responded ... ;-)
>
> I thought that it's a limitation of the Linux kernel in more parts than
> just the filesystem (like block cache), that sector sizes must be 512B.
> If I had a 4K drive, would that be usable with XFS already?

I have an USB stick with 2KB hardware sector size. It worked nicely when 
using fdisk instead of cfdisk which only supports 512 byte sectors. Dunno 
remember exactly which filesystems I tried back then.

And first I wondered why it had a partition in the first quarter of it and 
then empty space. I thought it might have been a fake 1 GB stick, but 
still just deleted the partition and made it size the whole disk in 
cfdisk - well at least I thought I did. The Linux kernel complained about 
writing beyond end of device while mkfsing, I think it was an ext3.

-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2009-03-12 14:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-12 11:58 LWN article: 4K disk sectors Michael Monnerie
2009-03-12 13:10 ` Eric Sandeen
2009-03-12 13:52   ` Michael Monnerie
2009-03-12 14:17     ` Martin Steigerwald [this message]
2009-03-12 15:03       ` Eric Sandeen
2009-03-14 19:10         ` Martin Steigerwald
2009-03-12 14:23     ` Martin K. Petersen
2009-03-12 14:58     ` Eric Sandeen
2009-03-14 15:26 ` Christoph Hellwig

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=200903121517.48426.Martin@lichtvoll.de \
    --to=martin@lichtvoll.de \
    --cc=xfs@oss.sgi.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.