lkml.org 
[lkml]   [2004]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: O_DIRECT
Hi all,
how i can write data on a partition without a filesystem??

Saluti Carlo!

Il Tue, 20 Jul 2004 20:48:24 +0200
bert hubert <ahu@ds9a.nl> scrisse:

> On Tue, Jul 20, 2004 at 10:27:57AM -0700, Shesha Sreenivasamurthy wrote:
> > I am having trouble with O_DIRECT. Trying to read or write from a block
> > device partition.
> >
> > 1. Can O_DIRECT be used on a plain block device partition say
> > "/dev/sda11" without having a filesystem on it.
>
> As fas as I know, yes, but be aware that O_DIRECT requires page aligned
> addresses! (an integral of 4096 on most systems).
>
> > 2. If no file system is created then what should be the softblock size.
> > I am using the IOCTL "BLKBSZGET". Is this correct?
>
> No idea what you mean - but see above about the aligned addresses.
>
> > 3. Can we use SEEK_END with O_DIRECT on a partition without filesystem.
>
> I see no reason why not. Good luck!
>
> --
> http://www.PowerDNS.com Open source, database driven DNS Software
> http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.060 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site