xfs
[Top] [All Lists]

Re: xfs compat_ioctl?

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: xfs compat_ioctl?
From: Torsten Kaiser <just.for.lkml@xxxxxxxxxxxxxx>
Date: Tue, 1 Sep 2009 19:00:05 +0200
Cc: Michael Tokarev <mjt@xxxxxxxxxx>, Linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=X4iTiJ/9yf/RnmXcsxWuABJK+RG2qQ6uUDeCOt8n98A=; b=VtBQWLYkOQOIauG80pyb/Qs1mARjFnjKPn0W44vXG/oOOOHTMFd4W3Tdf/B0CKwmVG N3mAn6beSQ19wwFPeUd8qXigSDPblxDNu+//Fzl+PcU2oYBFEs0pqp8Yaw0LxnWtv/q9 S2hZACgEu7NvJoZMqGS9eHu6oZaPa8sWBUhYk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=KCes2ylM0V6xTWczlkfnnu43yuNhaZPolJE1iazHBZcqqNTDRYA/ByCbag4QfdK7i/ Xn6qADoWjbQYGb28ogkOxPaKuk+GxMfEhPqBmriNMbiYQCnwbLNFjyNPuoAuHxNBtMo/ 8r2BY7jsfs/q3We9FGVn/0vSMWfHJtvDZ9aDc=
In-reply-to: <20090831182754.GA3620@xxxxxxxxxxxxx>
References: <4A9B759B.7020401@xxxxxxxxxxxxxxxx> <20090831123010.GA2368@xxxxxxxxxxxxx> <64bb37e0908311114t4a3cefc3v8ea5092e1558c578@xxxxxxxxxxxxxx> <20090831182754.GA3620@xxxxxxxxxxxxx>
On Mon, Aug 31, 2009 at 8:27 PM, Christoph Hellwig<hch@xxxxxxxxxxxxx> wrote:
> I think you are right, the constant used is incorrect.  Does the small
> patch below fix it for you?

Yes, after adding this patch, xfs_fsr works.

> Index: linux-2.6/fs/xfs/linux-2.6/xfs_ioctl32.c
> ===================================================================
> --- linux-2.6.orig/fs/xfs/linux-2.6/xfs_ioctl32.c       2009-08-31 
> 15:25:06.093044591 -0300
> +++ linux-2.6/fs/xfs/linux-2.6/xfs_ioctl32.c    2009-08-31 15:25:10.856544216 
> -0300
> @@ -619,7 +619,7 @@ xfs_file_compat_ioctl(
>        case XFS_IOC_GETVERSION_32:
>                cmd = _NATIVE_IOC(cmd, long);
>                return xfs_file_ioctl(filp, cmd, p);
> -       case XFS_IOC_SWAPEXT: {
> +       case XFS_IOC_SWAPEXT_32: {
>                struct xfs_swapext        sxp;
>                struct compat_xfs_swapext __user *sxu = arg;
>
>

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