linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* locking sectors of raw disk (raw read-write test of mounted disk)
@ 2006-11-15 20:06 Yakov Lerner
  2006-11-15 21:41 ` Phillip Susi
  0 siblings, 1 reply; 5+ messages in thread
From: Yakov Lerner @ 2006-11-15 20:06 UTC (permalink / raw)
  To: Kernel

I'd like to make read-write test of the raw disk, and disk has
mounted partitions. Is it possible to lock  range of sectors
of the raw device so that any kernel code that wants to write
to this range will sleep ? (so that test
    { lock range; read /dev/hda->buf; write buf->/dev/hda; unlock }
won't corrupt the filesysyem ?)

Thanks
Yakov

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-16 15:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-15 20:06 locking sectors of raw disk (raw read-write test of mounted disk) Yakov Lerner
2006-11-15 21:41 ` Phillip Susi
2006-11-15 22:03   ` linux-os (Dick Johnson)
2006-11-16 10:15   ` Yakov Lerner
2006-11-16 15:28     ` Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).