xfs
[Top] [All Lists]

Re: more xfs on ppc

To: Thomas Graichen <graichen@xxxxxxxxxxxxx>, thomas.graichen@xxxxxxxxxxxxx
Subject: Re: more xfs on ppc
From: Steve Lord <lord@xxxxxxx>
Date: Sun, 27 Aug 2000 09:08:03 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "27 Aug 2000 09:49:03 GMT
Sender: owner-linux-xfs@xxxxxxxxxxx
I will try and take a look at this tomorrow - I am currently on
the other side of a very slow network link. However, I would suspect this
problem is not an on disk issue in particular, but a getdents output
problem. Since for the cat of test to work the directory entry
must be there for it to work.


You could use strace to look at the system call output from ls. try
something like 

        strace -o /tmp/strace.out -v ls

You should see one or more getdents calls in the output, entries in
the getdents output should look like this:

        {d_ino=43042, d_off=64, d_reclen=24, d_name=".bash_logout"}

You should see . .. XFS and test as d_name values.

Let us know what you see as before and after output for the getdents
calls in ls.

Steve


> ok - just did the following on the linux/ppc machine:
> 
> - dumped the diskimage from
> 
>     http://innominate.org/~graichen/projects/xfs/xfs.dd.gz
> 
>   which is a gzip'ed 32mb fresh xfs filesystem on an before zeroed
>   blockdevice with one file on it: XFS containing "i am here"
> 
> - did the following (all behind the % is comment):
> 
>   [root@aqua linux]# modprobe xfs
>   [root@aqua linux]# mount -t xfs /dev/hda8 /mnt/floppy 
>   [root@aqua linux]# cd /mnt/floppy 
>   [root@aqua floppy]# ls
>   XFS                                    % looks fine so far
>   [root@aqua floppy]# cat XFS
>   i am here                              % dito
>   [root@aqua floppy]# cp XFS test
>   [root@aqua floppy]# ls
>   XFS                                    % does not show the new file
>   [root@aqua floppy]# cat test
>   i am here                              % but it is somehow there
>   [root@aqua floppy]# cd 
>   [root@aqua /root]# umount /mnt/floppy 
>   [root@aqua /root]#
> 
> - dumped that filesystem back into a file - which you may now
>   get from
> 
>     http://innominate.org/~graichen/projects/xfs/xfs-ppc-bug.dd.gz
> 
> maybe someone might have a short look at it - it should be simple
> enough so that someone who knows the xfs on disk structures might
> get an idea of what exactly goes wrong here (so that i know in
> which direction to look further) ... maybe a good warmup for
> a day :-)
> 
> a lot of thanks in advance
> 
> t
> 
> -- 
> thomas.graichen@xxxxxxxxxxxxx
> technical director                                       innominate AG
> clustering & security                                networking people
> tel: +49.30.308806-13  fax: -77                   http://innominate.de

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