[Top] [All Lists]

Unsupported sector size

To: linux-xfs@xxxxxxxxxxx
Subject: Unsupported sector size
From: Johann Lombardi <johann.lombardi@xxxxxxx>
Date: Thu, 29 Apr 2004 21:34:23 +0200
Reply-to: johann.lombardi@xxxxxxx
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.5.4

When I want to mount a XFS filesystem stored on a 4K sector size device, I get 
the following error message:
XFS: device supports only 4096 byte sectors (not 512)

Here is a patch fixing this small mistake:

diff -Nru a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
--- a/fs/xfs/xfs_mount.c    2004-04-04 11:42:41.000000000 +0200
+++ b/fs/xfs/xfs_mount.c    2004-04-29 20:42:07.000000000 +0200
@@ -508,7 +508,7 @@
    if (sector_size > mp->m_sb.sb_sectsize) {
            "XFS: device supports only %u byte sectors (not %u)",
-           sector_size, mp->m_sb.sb_sectsize);
+           mp->m_sb.sb_sectsize, sector_size);
        error = ENOSYS;
        goto fail;


<Prev in Thread] Current Thread [Next in Thread>