[Top] [All Lists]

Re: XFS as Root filesystem

To: cattelan@xxxxxxxxxxx
Subject: Re: XFS as Root filesystem
From: Phil Schwan <phil@xxxxxxxxxxxxx>
Date: Thu, 13 Apr 2000 14:54:36 -0400
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <14582.2179.583864.62523H@gibble.americas.sgi.com>; from cattelan@thebarn.com on Thu, Apr 13, 2000 at 12:48:51PM -0500
References: <phil@linuxcare.com> <200004131528.KAA07085@jen.americas.sgi.com> <20000413141657.C1665@linuxcare.com> <14582.2179.583864.62523H@gibble.americas.sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Apr 13, cattelan@xxxxxxxxxxx wrote:
> First it would be best not to include linux/fs.h in any file
> not in the fs/xfs/linux directory. It will cause headaches.
> If fact that linux/xfs_sema.h shouldn't be there either.
> If the file is general enough say types.h it can go
> in xfs_os_defs.h; I doesn't really hurt if some
> *.c files include some header files they don't need.
> As long as it doesn't create conflicts.
> if you really really need to include fs.h put it
> in xfs_os_defs.h  with an
> #ifdef NEED_FS_H wrapper.
> then define it in what ever file that it is needed.

If I were to change this:

#include <xfs_os_defs.h>

#ifdef SIM
#define _KERNEL 1
#define __KERNEL__ 1

#include <linux/xfs_sema.h>

to this:

#include <xfs_os_defs.h>

#ifdef SIM
#define _KERNEL 1
#define __KERNEL__ 1

it wouldn't do the Right Thing in the SIM case, would it?


Phil Schwan, Captain Popetastic, Linuxcare Canada

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