Arla and SGI XFS

Willi Langenberger wlang at wu-wien.ac.at
Mon Sep 24 16:52:22 CEST 2001


Hi!

I'm trying to use Arla (0.35.4, 0.35.5) and the SGI Filesystem XFS
(Release 1.0.1) on a RedHat-Linux-7.1 box, but have problems with the
Name "xfs" (which is used by arla and sgi-xfs):

The compile step gives:

  make[2]: Entering directory `/pub/build/arla-0.35.5/xfs/linux'
  gcc -c  -DHAVE_CONFIG_H  -I/usr/src/linux/include -DMODULE -D__KERNEL__ -D__SMP__   -DDEBUG -I. -I. -I. -I./../include -I../../include -I./../../include -I/usr/athena/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer xfs_load.c
  In file included from xfs/xfs_locl.h:141,
                   from xfs_load.c:34:
  ../include/xfs/xfs_message.h:87: redefinition of `struct xfs_handle'

Ok, i have suspected this, because arla-xfs and sgi-xfs both define
"xfs_handle":

SGI-XFS:
  /usr/src/linux/include/linux/fs.h:
  /usr/src/linux/include/linux/xfs_fs.h:
  ...
  typedef struct xfs_handle {
	  union {
		  __s64	    align;	/* force alignment of ha_fid	 */
		  xfs_fsid_t  _ha_fsid;	/* unique file system identifier */
	  } ha_u;
	  xfs_fid_t	ha_fid;		/* file system specific file ID  */
  } xfs_handle_t;

Arla:
  arla-0.35.4/xfs/include/xfs/xfs_message.h:
  ...
  typedef struct xfs_handle {
      u_int32_t a, b, c, d;
  } xfs_handle;

So i tried to rename all occurances of "xfs" in the arla source to
arla_xfs, eg:

  byron# diff xfs/linux/xfs_node.c.ori xfs/linux/xfs_node.c
  300c300
  < xfs_node_find(struct xfs *xfsp, xfs_handle *handlep)
  ---
  > xfs_node_find(struct xfs *xfsp, arla_xfs_handle *handlep)

Then the kernel module compiles without problems, but after loading
i get:

  byron# insmod ./xfs.o 
  ./xfs.o: init_module: Device or resource busy
  Hint: insmod errors can be caused by incorrect module parameters, \
  including invalid IO or IRQ parameters 

And after a few minutes, the server crashes... (it completely freezes)

My questions: has anyone successfully installed arla and sgi-xfs on
a machine? What is the right thing, to get it to work?

Any help would be highly appreciated!


Thanks,


\wlang{}

-- 
Willi.Langenberger at wu-wien.ac.at                 Fax: +43/1/31336/702
Zentrum fuer Informatikdienste, Wirtschaftsuniversitaet Wien, Austria





More information about the Arla-drinkers mailing list