xfs
[Top] [All Lists]

Re: Can I change XFS_NAME?

To: Sakata <sakata@xxxxxxxxxxxxxxx>
Subject: Re: Can I change XFS_NAME?
From: Stephen Lord <lord@xxxxxxx>
Date: 06 Dec 2002 04:37:15 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <001501c29d0d$a5877990$2401a8c0@pcm03>
References: <001501c29d0d$a5877990$2401a8c0@pcm03>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Fri, 2002-12-06 at 03:55, Sakata wrote:
> Hello.
> 
> I made a change to XFS_NAME in xfs_fs.h like this:
> #define XFS_NAME "xfs" -> #define XFS_NAME "xxxxx_xfs"
> 
> Kernel compiled ok and boots normally. But can't mount xfs partition.
> 
> Is it possible to make a change to XFS_NAME in xfs_fs.h?
> If Possible, to mount xfs partition what should I do?

Hmm, not sure I want people renaming the filesystem to something
else, why do you want to do this?

However, the reason it did not work is that the part of the kernel
which cares about the name of the filesystem is not using that
constant. In fs/xfs/linux/xfs_super.c look for this:

STATIC struct file_system_type xfs_fs_type = {
        .owner                  = THIS_MODULE,
        .name                   = "xfs",
        .read_super             = linvfs_read_super,
        .fs_flags               = FS_REQUIRES_DEV,
};

That string in there is the fstype used by mount. You would
have to use mount -t to make this work I think. I am not sure
where the string is coming from when mount works out the fs
type by itself - probably it is hard coded into the mount
source code.

Steve



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