Re: set blksize of block device
From: Lei Yang
Date: Thu Oct 28 2004 - 16:38:12 EST
Denis Vlasenko wrote:
On Thursday 28 October 2004 05:25, Lei Yang wrote:
Or in other words, is there generic routines for block devices such that
we could:
get (set) block size of a block device;
read an existing block (e.g. block 4);
write an existing block (e.g. block 5);
Can you stick to "reply below quote" style please?
OK
If nobody could answer this question, what about another one? Is there
a system call or a kernel interface that would allow me to write a
Can you use read, write and seek system calls?
--
vda
Not really, as I've explained, I want to do all these stuff in kernel
space. More specifically, I want to write a newbie kernel module. In
this module, I'll do something with a raw block device (with no
filesystem). For example, I want to do block I/O operations on ramdisk,
and I want to set the block size of ramdisk to whatever value I want
(power of 2 of course).
Any comments?
Thanks,
Lei
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/