Re: set blksize of block device

From: Lei Yang
Date: Wed Oct 27 2004 - 21:26:06 EST


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);

Please help!!!!

TIA
Lei


Lei Yang wrote:

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 block of data to block 1 of a certain block device?

Thanks for your reply in advance!

Lei

Lei Yang wrote:

Please cc me if you have answers to this, I am not on the list. Thanks a lot!

Lei Yang wrote:

Hello,

I am learning block device drivers and have a newbie question. Given a block device, is there anyway that I could set its block size? For example, I want to write a block device driver that will work on an existing block device. In this driver, I want block size smaller. (The idea looks confusing but I could explain if anybody is interested :- ) However, typically the block size is 1KB, now I want to set it to 512 or 256. Can I do it?

TIA
Lei







--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/




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