xfs
[Top] [All Lists]

Re: fatal error -- couldn't initialize XFS library

To: "D. Stimits" <stimits@xxxxxxxxxx>
Subject: Re: fatal error -- couldn't initialize XFS library
From: Seth Mos <knuffie@xxxxxxxxx>
Date: Tue, 26 Jun 2001 21:41:47 +0200 (CEST)
Cc: "XFS: linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
In-reply-to: <3B38DE54.37037A97@idcomm.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Tue, 26 Jun 2001, D. Stimits wrote:

> Now I rebooted back to the original drive partition, which works fine
> after telling kudzu to shut up and not reconfigure all the devices and
> to not prompt me again. Btw, the disconnected inode was empty, size 0.
> 
> But it appears that xfs_repair is broken on it, because running
> xfs_repair -n claims it could not initialize the xfs library. The end of

xfs_repair -n should always work. What version do you use of xfs_repair?
If you really want to repair it unmount it.

> an strace makes me believe xfs_repair with "-n" will still refuse to
> look at a partition that is mounted:
> open("/etc/mtab", O_RDONLY)             = 3
> brk(0x80d2000)                          = 0x80d2000
> fstat64(3, {st_mode=S_IFREG|0644, st_size=150, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x40018000
> read(3, "/dev/sda6 / xfs rw 0 0\nnone /pro"..., 4096) = 150
> read(3, "", 4096)                       = 0
> write(2, "xfs_repair: /dev/sda6 contains a"..., 61xfs_repair: /dev/sda6
> contains a writable mounted filesystem
> ) = 61
> close(3)                                = 0
> munmap(0x40018000, 4096)                = 0
> write(2, "\nfatal error -- ", 16
> fatal error -- )       = 16
> write(2, "couldn\'t initialize XFS library\n", 32couldn't initialize XFS
> library
> ) = 32
> _exit(1)                                = ?
> 
> 
> Shouldn't xfs_repair allow me to at least attempt to see what it would
> do with "-n"?

It would, I believe there are older versions of xfs_repair that barf when
it is mounted.

Cheers
Seth


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