xfs
[Top] [All Lists]

RE: open from kernel

To: santhosh kumar <santhosh.kumar@xxxxxxxxx>
Subject: RE: open from kernel
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Tue, 12 Nov 2002 08:15:33 -0600 (CST)
Cc: Seth Mos <knuffie@xxxxxxxxx>, <linux-xfs@xxxxxxxxxxx>
In-reply-to: <72D09F11CC09B645ADE2890F6B442FD81E6BDF@blr-m3-msg.wipro.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Hi Santhosh - 

How does the read fail?  (what error value?)

Do you have the correct buffer alignment and read size for O_DIRECT?  (I assume
so, since this worked in user-space for you?)

-Eric

On Tue, 12 Nov 2002, santhosh kumar wrote:

> Yes, i have XFS fileystem support. I am able to open the file, but my read 
> fails. The operations in user-space works.
>  
> I think i am missing something before calling read. (Note: i am doing 
> set_fs(KERNEL_DS), before calling read.
>  
> Thanks
> Santhosh
> 
>       -----Original Message----- 
>       From: Seth Mos [mailto:knuffie@xxxxxxxxx] 
>       Sent: Tue 11/12/2002 3:36 PM 
>       To: santhosh kumar; linux-xfs@xxxxxxxxxxx 
>       Cc: 
>       Subject: Re: open from kernel
>       
>       
> 
>       At 15:18 12-11-2002 +0530, santhosh kumar wrote:
>       >Hi,
>       >
>       >     I am not able to open files present in XFS filesystem from kernel
>       > space. Is this a limitation or should i need to something in order to
>       > achieve the same. I am using the O_DIRECT flag
>       
>       You need a kernel with XFS filesystem support to be able read files from
>       XFS filesystems.
>       
>       if you "cat /proc/filesystems" does it contain the xfs string?
>       
>       Cheers
>       
>       --
>       Seth
>       It might just be your lucky day, if you only knew.
>       
>       
> 
> 
> 


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