From: Nathan Scott <[email protected]>
Subject: UNS: Re: Bug#513702: xfsprogs: mkfs.xfs fails mysteriously when 
proveded a regular file
Date: Sun, 01 Feb 2009 07:25:34 +1100

> On Sat, 2009-01-31 at 17:45 +0300, Samium Gromoff wrote:
> > Package: xfsprogs
> > Version: 2.10.2-1
> > Severity: normal
> > 
> > 
> > r...@auriga:~# dd if=/dev/zero of=betelheise.io.new bs=1048576 count=16384
> 
> What filesystem does ~root reside on?

Local XFS.

> > r...@auriga:~# mkfs.xfs betelheise.io.new 
> ...
> > r...@auriga:~# mkfs.xfs -d file,name=betelheise.io.new,size=17179869184
> 
> 
> The difference between these two invocations is the first one
> uses direct I/O, the latter does not.  It seems like the FS
> you are mkfs'ing on is failing to do direct I/O correctly.
> You can see this by running the commands via:
>   strace -e trace=open mkfs.xfs ...
> and look for the open on your betelheise.io.new file each time.

Here goes:

r...@auriga:~# strace -e trace=open  mkfs.xfs betelheise.io.new
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libuuid.so.1", O_RDONLY)     = 3
open("/lib/librt.so.1", O_RDONLY)       = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("/proc/devices", O_RDONLY)         = 3
open("betelheise.io.new", O_RDONLY)     = 3
open("betelheise.io.new", O_RDWR|O_EXCL|O_DIRECT) = 4
open("betelheise.io.new", O_RDONLY)     = 3
open("betelheise.io.new", O_RDONLY)     = 3
meta-data=betelheise.io.new      isize=256    agcount=4, agsize=16768 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=67072, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=1200, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
open("/dev/urandom", O_RDONLY)          = 3
open("/usr/share/locale/locale.alias", O_RDONLY) = 5
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such 
file or directory)
mkfs.xfs: pwrite64 failed: Invalid argument
mkfs.xfs: read failed: Invalid argument


regards, Samium Gromoff



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to