All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Steigerwald <Martin@lichtvoll.de>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: xfs@oss.sgi.com
Subject: Re: LWN article: 4K disk sectors
Date: Sat, 14 Mar 2009 20:10:44 +0100	[thread overview]
Message-ID: <200903142010.45564.Martin@lichtvoll.de> (raw)
In-Reply-To: <49B92449.90805@sandeen.net>

Am Donnerstag 12 März 2009 schrieb Eric Sandeen:
> Martin Steigerwald wrote:
> > 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.
>
> really?  what kind of usb stick?  I've never seen such a thing.

Its a stick I got from a customer.

shambhala:~> tail -fn0 /var/log/syslog
Mar 14 20:07:53 localhost kernel: usb 2-4: new high speed USB device using 
ehci_hcd and address 18
Mar 14 20:07:53 localhost kernel: usb 2-4: configuration #1 chosen from 1 
choice
Mar 14 20:07:53 localhost kernel: scsi16 : SCSI emulation for USB Mass 
Storage devices
Mar 14 20:07:53 localhost kernel: usb 2-4: New USB device found, 
idVendor=17ef, idProduct=3815
Mar 14 20:07:53 localhost kernel: usb 2-4: New USB device strings: Mfr=1, 
Product=2, SerialNumber=3
Mar 14 20:07:53 localhost kernel: usb 2-4: Product: Flash Disk
Mar 14 20:07:53 localhost kernel: usb 2-4: Manufacturer:
Mar 14 20:07:53 localhost kernel: usb 2-4: SerialNumber: ABCDEF1234000423
Mar 14 20:07:53 localhost kernel: usb-storage: device found at 18
Mar 14 20:07:53 localhost kernel: usb-storage: waiting for device to 
settle before scanning
Mar 14 20:07:58 localhost kernel: usb-storage: device scan complete
Mar 14 20:07:58 localhost kernel: scsi 16:0:0:0: Direct-Access              
Flash Disk       5.00 PQ: 0 ANSI: 2
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] 504832 2048-byte 
hardware sectors: (1.03 GB/986 MiB)
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Write Protect is off
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Mode Sense: 0b 00 00 
08
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Assuming drive cache: 
write through
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] 504832 2048-byte 
hardware sectors: (1.03 GB/986 MiB)
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Write Protect is off
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Mode Sense: 0b 00 00 
08
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Assuming drive cache: 
write through
Mar 14 20:07:58 localhost kernel: sdb: sdb1
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Attached SCSI 
removable disk
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: Attached scsi generic sg2 
type 0
^C

Hmmm, it appears to be from Lenovo.

shambhala:~> lsusb | grep USB
Bus 002 Device 018: ID 17ef:3815 Lenovo ChipsBnk 2GB USB Stick

But its definately not 2 GB... strange. Its branded for the customer, no 
manufacturer logo on it.

-- 
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-14 19:10 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
2009-03-12 15:03       ` Eric Sandeen
2009-03-14 19:10         ` Martin Steigerwald [this message]
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=200903142010.45564.Martin@lichtvoll.de \
    --to=martin@lichtvoll.de \
    --cc=sandeen@sandeen.net \
    --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.