xfs
[Top] [All Lists]

Re: Unsupported sector size

To: johann.lombardi@xxxxxxx
Subject: Re: Unsupported sector size
From: Eric Sandeen <sandeen@xxxxxxx>
Date: 29 Apr 2004 15:15:21 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <200404292134.23178.johann.lombardi@free.fr>
Organization: Eric Conspiracy Secret Labs
References: <200404292134.23178.johann.lombardi@free.fr>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Hm, sector_size is gleaned from the underlying block device, via
xfs_getsize_buftarg, which calls block_size, which gets
bdev->bd_block_size.

so, the message you got is correct I think - the filesystem was made
with 512b sectors, your device supports only 4k sectors.  hence:

XFS: device supports only 4096 byte sectors (not 512)

-Eric


On Thu, 2004-04-29 at 14:34, Johann Lombardi wrote:
> Folks,
> 
> 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) {
>         cmn_err(CE_WARN,
>             "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;
>     }
> 
> Johann
-- 
Eric Sandeen      [C]XFS for Linux   http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx   SGI, Inc.          651-683-3102


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