On 24. January 2011 - 13:13, Hugo Mills wrote:
> Date: Mon, 24 Jan 2011 13:13:41 +0000
> From: Hugo Mills <hugo-l...@carfax.org.uk>
> To: Felix Blanke <felixbla...@gmail.com>
> Cc: kreij...@inwind.it, Hugo Mills <hugo-l...@carfax.org.uk>,
>  linux-btrfs@vger.kernel.org
> Subject: Re: Bug in mkfs.btrfs?!
> Mail-Followup-To: Hugo Mills <hugo-l...@carfax.org.uk>, Felix Blanke
>  <felixbla...@gmail.com>, kreij...@inwind.it, linux-btrfs@vger.kernel.org
> 
> On Mon, Jan 24, 2011 at 02:01:04PM +0100, Felix Blanke wrote:
> > Hi,
> > 
> > you were talking about the LOOP_GET_STATUS function. I'm not quite sure 
> > where does it
> > came from. Is it part of the kernel? Or does it come from the util-linux 
> > package?
> 
>    It's an ioctl (number 0x4c03) that works on loop devices, and
> returns information about the loop device. Being an ioctl, it's
> implemented in the kernel. Unfortunately, since it's part of the
> kernel API, the size of the name field is probably fixed for the rest
> of time, and so the bug can't be fixed.
>

That sounds great :/

> > I'm searching for the right location where do report that bug :)
> 
>    linux-kernel mailing list, I think.
> 
> > Btw: I tested it with util-linux-2.19-rc1. The strace still contains
> > the truncated path, and no '*'. Therefore I think that ioctl is from
> > the kernel.
> 
>    Indeed.
> 
>    What I find interesting is that my copy of losetup follows symlinks
> from the /dev/disk/by-id/... path back to the original device node
> (/dev/dm-7 in my test case) before setting up the loop, whereas yours
> seems not to.
> 
>    I think that that's probably the easiest solution to this problem:
> modify losetup to use realpath(3) on the device node it's given.

I dont see where that helps with the problem. If I understand Goffredo correct
mkfs.btrfs is using the ioctl to get the path.

Letting losetup following the link will fix the output of "losetup /dev/loopX", 
but
it will not fix the truncated path from the ioctl and therefore it will not fix 
the
problem with mkfs.btrfs.


Felix


> 
>    Hugo.
> 
> -- 
> === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
>   PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
>                       --- make bzImage, not war ---                      


---end quoted text---
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to