[Bug 307366] New: cannot create xfs on flash disk with 2K block size
https://bugzilla.novell.com/show_bug.cgi?id=307366 Summary: cannot create xfs on flash disk with 2K block size Product: openSUSE 10.3 Version: Beta 2 Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Minor Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: oneukum@novell.com QAContact: qa@suse.de Found By: --- I have a USB flash drive with 2K block size. mkfs -t xfs fails on that drive. stat("/dev/sdd1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 49), ...}) = 0 stat("/dev/sdd1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 49), ...}) = 0 ustat(0x831, 0x7fff16066490) = -1 EINVAL (Invalid argument) open("/dev/sdd1", O_RDONLY) = 3 stat("/dev/sdd1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 49), ...}) = 0 stat("/dev/sdd1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 49), ...}) = 0 ustat(0x831, 0x7fff16066490) = -1 EINVAL (Invalid argument) open("/dev/sdd1", O_RDWR|O_EXCL|O_DIRECT) = 4 fstat(4, {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 49), ...}) = 0 ioctl(4, BLKBSZSET, 0x7fff1606651c) = -1 EINVAL (Invalid argument) his seems to trigger this check from fs/block/block_dev.c:: int set_blocksize(struct block_device *bdev, int size) { /* Size must be a power of two, and between 512 and PAGE_SIZE */ if (size > PAGE_SIZE || size < 512 || !is_power_of_2(size)) return -EINVAL; /* Size cannot be smaller than the size supported by the device */ if (size < bdev_hardsect_size(bdev)) return -EINVAL; -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307366#c1
--- Comment #1 from Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=307366
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=307366#c2
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=307366#c3
Oliver Neukum
https://bugzilla.novell.com/show_bug.cgi?id=307366#c4
Michal Marek
oenone:/home/oliver # mkfs.xfs -f -d sectsize=2048 /dev/sdd1 data and log sector sizes must be equal for internal logs
Ah, sorry, missed that. But anyway, it's not a bug. Sure, mkfs.xfs could figure the minimum size itself, but it doesn't do that. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=307366#c5
--- Comment #5 from Oliver Neukum
participants (1)
-
bugzilla_noreply@novell.com