xfs
[Top] [All Lists]

Re: xfs_fsr for linux

To: "William L. Jones" <jones@xxxxxxxxxxxxxxxxxx>, jtk@xxxxxxx
Subject: Re: xfs_fsr for linux
From: "Nathan Scott" <nathans@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Jul 2000 07:56:17 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: "William L. Jones" <jones@tacc.cc.utexas.edu> "xfs_fsr for linux" (Jul 20, 2:24am)
References: <4.2.0.58.20000719105658.00da4960@127.0.0.1>
Sender: owner-linux-xfs@xxxxxxxxxxx
hi Bill,

On Jul 20,  2:24am, William L. Jones wrote:
> Subject: xfs_fsr for linux
> 
> Nathan,
> 
> I made some progress on xfs until I hit a problem with XFS_IOC_OPEN_BY_HANDLE
> ioctl.  I am getting kern fault when I try to open a file by its handle.
> 
> In xfs_open_by_handle. linux/fs/xfs/linux/xfs_ioctl.c, I found the
> following bit of code:
> 
> 
>           /*
>           * Make a unique name for dcache.
>           */
>          cpi = (char *)hanp;
>          cpo = sname;
> 
> 
> hanp is an address to the handle in user space.  It may not point to a
> valid kernal address.    I think that intent was to use the file handle id
> as a file name.
> 
> 
> Could you look at the code a see what you think.
> 

hmmm - yes, from the quick look I had, I'd say you're right.
I think Ted wrote/ported this code originally - let me pass
this off to him to delve into.

thanks.

-- 
Nathan

<Prev in Thread] Current Thread [Next in Thread>
  • Re: xfs_fsr for linux, Nathan Scott <=