* Wrong d_type presented by xfs_io
@ 2014-11-14 12:48 Carlos Maiolino
2014-11-14 13:24 ` Brian Foster
0 siblings, 1 reply; 3+ messages in thread
From: Carlos Maiolino @ 2014-11-14 12:48 UTC (permalink / raw)
To: xfs
Hi guys,
I've been looking through an issue raised by Brian, regarding my RENAME_EXCHANGE
patchset, where, apparently, the d_type of some files are reseted during the
exchange. Brian presented an example here:
http://oss.sgi.com/archives/xfs/2014-11/msg00170.html
When trying to debug it, I've been trying to create and rename some FS objects
to try to reproduce the issue, but, all the files I've been creating are shown
as DT_UNKNOWN type:
ex:
/dev/vdb2 on /xfs/scratch type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
[root@localhost scratch]# mkdir /xfs/scratch/dir1
[root@localhost scratch]# xfs_io -c "readdir -v" /xfs/scratch/
00000006: d_ino: 0x00000083 d_off: 0x00000200 d_reclen: 0x18 d_type: DT_UNKNOWN
d_name: dir1
[root@localhost scratch]# mknod /xfs/scratch/mybdev b 253 19
00000008: d_ino: 0x00000084 d_off: 0x00000200 d_reclen: 0x20 d_type: DT_UNKNOWN
d_name: mybdev
So, anyone knows if is there any problem with xfs_io, or, if I'm doing something
wrong here?
[root@localhost scratch]# xfs_io -V
xfs_io version 3.2.1
or maybe, we have a bug somewhere else.
Cheers
--
Carlos
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Wrong d_type presented by xfs_io
2014-11-14 12:48 Wrong d_type presented by xfs_io Carlos Maiolino
@ 2014-11-14 13:24 ` Brian Foster
2014-11-14 13:42 ` Carlos Maiolino
0 siblings, 1 reply; 3+ messages in thread
From: Brian Foster @ 2014-11-14 13:24 UTC (permalink / raw)
To: xfs
On Fri, Nov 14, 2014 at 10:48:10AM -0200, Carlos Maiolino wrote:
> Hi guys,
>
> I've been looking through an issue raised by Brian, regarding my RENAME_EXCHANGE
> patchset, where, apparently, the d_type of some files are reseted during the
> exchange. Brian presented an example here:
>
> http://oss.sgi.com/archives/xfs/2014-11/msg00170.html
>
> When trying to debug it, I've been trying to create and rename some FS objects
> to try to reproduce the issue, but, all the files I've been creating are shown
> as DT_UNKNOWN type:
>
Hi Carlos,
I suspect you aren't using a v5 superblock. You can do that by passing
'-m crc=1' to mkfs. Does d_type work once you're on v5?
Brian
> ex:
>
> /dev/vdb2 on /xfs/scratch type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
>
> [root@localhost scratch]# mkdir /xfs/scratch/dir1
>
> [root@localhost scratch]# xfs_io -c "readdir -v" /xfs/scratch/
>
> 00000006: d_ino: 0x00000083 d_off: 0x00000200 d_reclen: 0x18 d_type: DT_UNKNOWN
> d_name: dir1
>
>
> [root@localhost scratch]# mknod /xfs/scratch/mybdev b 253 19
>
> 00000008: d_ino: 0x00000084 d_off: 0x00000200 d_reclen: 0x20 d_type: DT_UNKNOWN
> d_name: mybdev
>
>
>
>
> So, anyone knows if is there any problem with xfs_io, or, if I'm doing something
> wrong here?
>
> [root@localhost scratch]# xfs_io -V
> xfs_io version 3.2.1
>
>
> or maybe, we have a bug somewhere else.
>
>
> Cheers
>
> --
> Carlos
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Wrong d_type presented by xfs_io
2014-11-14 13:24 ` Brian Foster
@ 2014-11-14 13:42 ` Carlos Maiolino
0 siblings, 0 replies; 3+ messages in thread
From: Carlos Maiolino @ 2014-11-14 13:42 UTC (permalink / raw)
To: xfs
On Fri, Nov 14, 2014 at 08:24:00AM -0500, Brian Foster wrote:
> On Fri, Nov 14, 2014 at 10:48:10AM -0200, Carlos Maiolino wrote:
> > Hi guys,
> >
> > I've been looking through an issue raised by Brian, regarding my RENAME_EXCHANGE
> > patchset, where, apparently, the d_type of some files are reseted during the
> > exchange. Brian presented an example here:
> >
> > http://oss.sgi.com/archives/xfs/2014-11/msg00170.html
> >
> > When trying to debug it, I've been trying to create and rename some FS objects
> > to try to reproduce the issue, but, all the files I've been creating are shown
> > as DT_UNKNOWN type:
> >
>
> Hi Carlos,
>
> I suspect you aren't using a v5 superblock. You can do that by passing
> '-m crc=1' to mkfs. Does d_type work once you're on v5?
>
Yes, it works, thanks man :)
> Brian
>
> > ex:
> >
> > /dev/vdb2 on /xfs/scratch type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
> >
> > [root@localhost scratch]# mkdir /xfs/scratch/dir1
> >
> > [root@localhost scratch]# xfs_io -c "readdir -v" /xfs/scratch/
> >
> > 00000006: d_ino: 0x00000083 d_off: 0x00000200 d_reclen: 0x18 d_type: DT_UNKNOWN
> > d_name: dir1
> >
> >
> > [root@localhost scratch]# mknod /xfs/scratch/mybdev b 253 19
> >
> > 00000008: d_ino: 0x00000084 d_off: 0x00000200 d_reclen: 0x20 d_type: DT_UNKNOWN
> > d_name: mybdev
> >
> >
> >
> >
> > So, anyone knows if is there any problem with xfs_io, or, if I'm doing something
> > wrong here?
> >
> > [root@localhost scratch]# xfs_io -V
> > xfs_io version 3.2.1
> >
> >
> > or maybe, we have a bug somewhere else.
> >
> >
> > Cheers
> >
> > --
> > Carlos
> >
> > _______________________________________________
> > xfs mailing list
> > xfs@oss.sgi.com
> > http://oss.sgi.com/mailman/listinfo/xfs
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
--
Carlos
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-14 13:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 12:48 Wrong d_type presented by xfs_io Carlos Maiolino
2014-11-14 13:24 ` Brian Foster
2014-11-14 13:42 ` Carlos Maiolino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox