Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Oct 2000 19:31:20 -0700
From:      Greg Lehey <grog@lemis.com>
To:        "Karsten W. Rohrbach" <karsten@rohrbach.de>
Cc:        Bruce Evans <bde@zeta.org.au>, Andre Albsmeier <andre@akademie3000.de>, Marc Tardif <intmktg@CAM.ORG>, freebsd-fs@FreeBSD.org, freebsd-scsi@FreeBSD.org
Subject:   Re: ccd with other filesystems
Message-ID:  <20001014193120.D1489@sydney.worldwide.lemis.com>
In-Reply-To: <20001001190350.B304@rohrbach.de>; from karsten@rohrbach.de on Sun, Oct 01, 2000 at 07:03:50PM %2B0200
References:  <20001001114540.G43885@wantadilla.lemis.com> <Pine.BSF.4.21.0010012311270.5871-100000@besplex.bde.org> <20001001190350.B304@rohrbach.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday,  1 October 2000 at 19:03:50 +0200, Karsten W. Rohrbach wrote:
> Bruce Evans(bde@zeta.org.au)@Sun, Oct 01, 2000 at 11:32:29PM +1100:
>> On Sun, 1 Oct 2000, Greg Lehey wrote:
>>
>>> On Sunday,  1 October 2000 at  4:09:37 +0200, Karsten W. Rohrbach wrote:
>>>> i dont quite know why it is still possible doing a newfs on a 'c'
>>>> partition, since the partition type is 'unused' and not
>>>> '4.2BSD'. newfs should check this and throw an error while providing
>>>> an expert-only-feature command line option to explicitly override
>>>> it.
>>>
>>> I think this is a bug in newfs.
>>
>> This is a feature of newfs.  It is almost device-independent.  E.g., to
>> create a filesystem in a regular file with no label in sight:
>>
>>     dd if=/dev/zero of=foo oseek=2779 count=1
>>     # -v and ./foo work around device dependence.
>>     # -T floppy is so that I don't have to type a lot of args for this example.
>>     newfs -v -T floppy ./foo
>
> and thats exactly the point... if you use -v it should work, if you dont
> the partition type must be 4.2BSD and it must not be mounted.
> no more no less? not reasonable?

No, that's not really the issue.  -v just says "don't make assumptions
about the partition from the device name".  What we really need here
is a "force" flag ("yes, I know it's not a 4.2BSD partition, but do it
anyway").  Unfortunately, -f is already taken.

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




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