From owner-freebsd-current@FreeBSD.ORG Thu Feb 19 02:56:57 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B48FA16A4CE for ; Thu, 19 Feb 2004 02:56:57 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 219AE43D1D for ; Thu, 19 Feb 2004 02:56:57 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i1JAulwn026056; Thu, 19 Feb 2004 11:56:48 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Andre Guibert de Bruet From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 19 Feb 2004 03:09:31 EST." <20040219025604.D76134@alpha.siliconlandmark.com> Date: Thu, 19 Feb 2004 11:56:47 +0100 Message-ID: <26055.1077188207@critter.freebsd.dk> cc: current@freebsd.org Subject: Re: Review/Test: Pseudo-device unit number management patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 10:56:57 -0000 In message <20040219025604.D76134@alpha.siliconlandmark.com>, Andre Guibert de Bruet writes: >The likes of ATA disks include serial numbers in words 10-19. These could >be used to positively identify a drive when its availability has come >into question. But how can you tell if the disk has been mounted and modified in another computer before it came back ? There are N ways you can add bandaids and heuristics, but you can not truly solve the problem, unless you constantly keep a very strong hash of the entire disk contents in RAM, and check it again if it comes back which is if not practically impossible, then at least prohibitively expensive for the added benefit. Our current operating model is both cheap performance wise, and simple to understand for users: Do not remove a storage device you are still using. I do not think you should expect this to change significantly in the future. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.