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.
>
>
>
>
>
|