From: "Yakov Lerner" <iler.ml@gmail.com>
To: "Phillip Susi" <psusi@cfl.rr.com>
Cc: Kernel <linux-kernel@vger.kernel.org>
Subject: Re: locking sectors of raw disk (raw read-write test of mounted disk)
Date: Thu, 16 Nov 2006 12:15:58 +0200 [thread overview]
Message-ID: <f36b08ee0611160215i7dcbd27p76963cb12d0bc12f@mail.gmail.com> (raw)
In-Reply-To: <455B8979.6090101@cfl.rr.com>
On 11/15/06, Phillip Susi <psusi@cfl.rr.com> wrote:
> No, you can not tamper with the underlying data while the kernel has it
> mounted.
I don't want to tamper wuith data. I want to raw write back exacty
same raw data that I read in. I only want to make sure that kernel
doesn't write modified data between in between my read-write pair.
Yakov
> Yakov Lerner wrote:
> > 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
>
>
next prev parent reply other threads:[~2006-11-16 10:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-15 20:06 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 [this message]
2006-11-16 15:28 ` Phillip Susi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f36b08ee0611160215i7dcbd27p76963cb12d0bc12f@mail.gmail.com \
--to=iler.ml@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=psusi@cfl.rr.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®