Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423223AbWKPKQA (ORCPT ); Thu, 16 Nov 2006 05:16:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423303AbWKPKP7 (ORCPT ); Thu, 16 Nov 2006 05:15:59 -0500 Received: from wx-out-0506.google.com ([66.249.82.227]:64532 "EHLO wx-out-0506.google.com") by vger.kernel.org with ESMTP id S1423223AbWKPKP7 (ORCPT ); Thu, 16 Nov 2006 05:15:59 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Jh9/LpmKLGr7UeLffob4Vz1sikWgyuNAKPVzhbS9IVnp2pSfb8M5/fTEYG48+S9eUEcM/mUbJrouT3+NQBsghARWSrnZ9LrsNNeq6DiaPbaLxVYsUj7FMr4odM37vz/QsokJY/E7xpflTIMn+CQl+D5YilYj2d4rQ0vWQ4d5Y0o= Message-ID: Date: Thu, 16 Nov 2006 12:15:58 +0200 From: "Yakov Lerner" To: "Phillip Susi" Subject: Re: locking sectors of raw disk (raw read-write test of mounted disk) Cc: Kernel In-Reply-To: <455B8979.6090101@cfl.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <455B8979.6090101@cfl.rr.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 27 On 11/15/06, Phillip Susi 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 > > - 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/