xfs
[Top] [All Lists]

getbmapx 1 ino 955713 mode 0x000081b4 offset 0 failed: Inappropriate io

To: Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>
Subject: getbmapx 1 ino 955713 mode 0x000081b4 offset 0 failed: Inappropriate ioctl for device
From: "Bernhard R. Erdmann" <be@xxxxxxxxxxx>
Date: Sun, 20 May 2001 16:05:08 +0200
Organization: Bernhard Erdmann Communication & Network Solutions
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi,

using linux-2.4-xfs (Kernel 2.4.4) from CVS (checkout yesterday) I get
strange warnings using xfsdump on my /var/spool/news: (all operations
are done on a fs mounted r/o)

# /usr/sbin/xfsdump -f /dumps/news/news.xfsd -J -L news -M m0 /dev/hdc6
/usr/sbin/xfsdump: version 3.0 - Running single-threaded
/usr/sbin/xfsdump: level 0 dump of ente:/var/spool/news
/usr/sbin/xfsdump: dump date: Sun May 20 15:50:53 2001
/usr/sbin/xfsdump: session id: b4d3e86c-96f1-422f-94f7-37e96a4c55ef
/usr/sbin/xfsdump: session label: "news"
/usr/sbin/xfsdump: ino map phase 1: skipping (no subtrees specified)
/usr/sbin/xfsdump: ino map phase 2: constructing initial dump list
/usr/sbin/xfsdump: ino map phase 3: skipping (no pruning necessary)
/usr/sbin/xfsdump: ino map phase 4: skipping (size estimated in phase 2)
/usr/sbin/xfsdump: ino map phase 5: skipping (only one dump stream)
/usr/sbin/xfsdump: ino map construction complete
/usr/sbin/xfsdump: estimated dump size: 4459349760 bytes
/usr/sbin/xfsdump: creating dump session media file 0 (media 0, file 0)
/usr/sbin/xfsdump: dumping ino map
/usr/sbin/xfsdump: dumping directories
/usr/sbin/xfsdump: WARNING: unable to read dirents (1) for directory ino
131: Not a directory
/usr/sbin/xfsdump: WARNING: unable to read dirents (1) for directory ino
789: Not a directory
/usr/sbin/xfsdump: WARNING: unable to read dirents (1) for directory ino
11456: Not a directory
/usr/sbin/xfsdump: WARNING: unable to read dirents (1) for directory ino
42252: Not a directory
/usr/sbin/xfsdump: WARNING: unable to read dirents (1) for directory ino
67213: Not a directory
[...]
/usr/sbin/xfsdump: WARNING: getbmapx 1 ino 955713 mode 0x000081b4 offset
0 failed: Inappropriate ioctl for device
/usr/sbin/xfsdump: WARNING: getbmapx 1 ino 955714 mode 0x000081b4 offset
0 failed: Inappropriate ioctl for device
/usr/sbin/xfsdump: WARNING: getbmapx 1 ino 955715 mode 0x000081b4 offset
0 failed: Inappropriate ioctl for device
/usr/sbin/xfsdump: WARNING: getbmapx 1 ino 963144 mode 0x000081b4 offset
0 failed: Inappropriate ioctl for device
[...]

# /usr/sbin/xfs_ncheck -i 131 /dev/hdc6
        131 leaf.node/.
[root@ente news]# find . -inum 131 -ls
   131    4 drwxrwxr-x   2 news     news         4096 May 20 14:24
./leaf.node

# stat ./leaf.node
  File: "./leaf.node"
  Size: 4096         Filetype: Directory
  Mode: (0775/drwxrwxr-x)         Uid: (    9/    news)  Gid: (   13/   
news)
Device: 22,6   Inode: 131       Links: 2    
Access: Sun May 20 14:34:33 2001(00000.01:29:24)
Modify: Sun May 20 14:24:28 2001(00000.01:39:29)
Change: Sun May 20 14:24:28 2001(00000.01:39:29)

# /usr/sbin/xfs_ncheck -i 963144 /dev/hdc6
     963144 message.id/398/<9bhsc6$1ql4$1@xxxxxxxxxxxxxxxxx>
# find . -inum 963144 -ls
963144    4 -rw-rw-r--   2 news     news         1543 Apr 17 22:47
./message.id/398/<9bhsc6$1ql4$1@xxxxxxxxxxxxxxxxx>
963144    4 -rw-rw-r--   2 news     news         1543 Apr 17 22:47
./comp/os/linux/misc/101753

No output from xfs_check, so it's ok:
# /usr/sbin/xfs_check /dev/hdc6        

In contrast, when using linux-2.4-xfs-r1.0 (Kernel 2.4.2) none of these
warnings are printed.
These kernels have been compiled with egcs-1.1.2-24 (RH 6.1).

The xfs-fs /var/spool/news was populated from the former ext2-fs using
tar:
mkfs -t xfs /dev/hdc6
mount /dev/hdc6 /mnt/news && cd /mnt
(cd /var/spool && tar cf - news) | tar xpf -

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