xfs
[Top] [All Lists]

RE: open from kernel

To: "Eric Sandeen" <sandeen@xxxxxxx>
Subject: RE: open from kernel
From: "santhosh kumar" <santhosh.kumar@xxxxxxxxx>
Date: Tue, 12 Nov 2002 20:13:28 +0530
Cc: "Seth Mos" <knuffie@xxxxxxxxx>, <linux-xfs@xxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Thread-index: AcKKVkUl6g11Hu3rQJeKOOgOA+V5hQAA0GD0
Thread-topic: open from kernel
Hi Eric,
 
I am getting EFAULT (14). I feel, this is because i am allocating the memory 
using alloc_bootmem_pages (during boot time) and hence it not associated with 
any pages and get_user_pages returns this error.
 
Is there any way i can over come this. Any pointers are welcome.
 
Thanks
 
Regards
Santhosh

        -----Original Message----- 
        From: Eric Sandeen [mailto:sandeen@xxxxxxx] 
        Sent: Tue 11/12/2002 7:45 PM 
        To: santhosh kumar 
        Cc: Seth Mos; linux-xfs@xxxxxxxxxxx 
        Subject: RE: open from kernel
        
        

        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>