Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2006 21:18:45 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Eric Anderson <anderson@centtech.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: retasting devices on demand 
Message-ID:  <61019.1156281525@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 22 Aug 2006 15:59:38 EST." <44EB703A.6000704@centtech.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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 <disk-device>" 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61019.1156281525>