From owner-freebsd-geom@FreeBSD.ORG Tue Aug 22 21:18:49 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97F0016A4DA for ; Tue, 22 Aug 2006 21:18:49 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DA3143D55 for ; Tue, 22 Aug 2006 21:18:49 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id B9EC6170C5; Tue, 22 Aug 2006 21:18:46 +0000 (UTC) To: Eric Anderson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 22 Aug 2006 15:59:38 EST." <44EB703A.6000704@centtech.com> Date: Tue, 22 Aug 2006 21:18:45 +0000 Message-ID: <61019.1156281525@critter.freebsd.dk> Cc: freebsd-geom@freebsd.org Subject: Re: retasting devices on demand X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 21:18:49 -0000 In message <44EB703A.6000704@centtech.com>, Eric Anderson writes: >On 08/22/06 15:49, Poul-Henning Kamp wrote: >> In message <44EB6D1F.90104@centtech.com>, Eric Anderson writes: >> >>> Even so, a retaste function that worked on existing disks (like I had) >>> would be useful and an obvious command for admin-types. Would you be >>> opposed to such a command? >> >> As I said: the problem is that if part of the disk is open it will >> not work. >> > > >Ok, I'll restate more clearly: > >Admins really will want a way to retaste a device - if it's used, give >the usual 'operation not permitted', and if it isn't, then just retaste. #!/bin/sh if test -c $1 ; then true > $1 else echo "Usage: $0 " 1>&2 fi happy ? -- 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.