From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 17 04:17:17 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C2201065672 for ; Wed, 17 Aug 2011 04:17:17 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward11.mail.yandex.net (forward11.mail.yandex.net [IPv6:2a02:6b8:0:801::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB388FC0A for ; Wed, 17 Aug 2011 04:17:16 +0000 (UTC) Received: from smtp12.mail.yandex.net (smtp12.mail.yandex.net [95.108.131.191]) by forward11.mail.yandex.net (Yandex) with ESMTP id 02F54E80AC1; Wed, 17 Aug 2011 08:17:13 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1313554634; bh=/QuO3Uz/0TmnD4/cR8vw3SSrfayYBdJdx3qh8uBHPhA=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=Mbm/p0ddEyV1uNw5WlmRm9/0BIPsK1nZDTY7ay3iBd7C9Fdzni3A4/sG0LGIa6uGD Adh9vuhwKKmveMskoFaEAHE/8rPUTFYEicTjdUOX7KpmvSXxpbiCytcijOv0XkXuWn S2ZUi7xb+bK7JwHt17aCNHq8lnzunZNs1+O3qc4c= Received: from smtp12.mail.yandex.net (localhost [127.0.0.1]) by smtp12.mail.yandex.net (Yandex) with ESMTP id DF06616A03AD; Wed, 17 Aug 2011 08:17:13 +0400 (MSD) Received: from mail.kirov.so-ups.ru (mail.kirov.so-ups.ru [178.74.170.1]) by smtp12.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HDwmiCDX; Wed, 17 Aug 2011 08:17:13 +0400 X-Yandex-Spam: 1 Message-ID: <4E4B40C4.6080608@yandex.ru> Date: Wed, 17 Aug 2011 08:17:08 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Mark Saad References: In-Reply-To: X-Enigmail-Version: 1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig53ED216EFC659D8746029286" Cc: freebsd-hackers@freebsd.org Subject: Re: glabel on 9-BETA1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 04:17:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig53ED216EFC659D8746029286 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 17.08.2011 0:10, Mark Saad wrote: > root@blindness:~# glabel label rootfs ada0p4 > glabel: Can't store metadata on ada0p4: Operation not permitted. >=20 > In 7.2 and prior there was a sysctl that could be tweaked to allow for > this to work , kern.geom.debugflag set to 16 would allow this to work. >=20 > So my question is this. Should there be any reason why "glabel label > name device" on the root slice cause an issue > when the slice is mounted rw ? >=20 > Is this a bug ? No. It isn't. When you are doing `glabel label` you overwriting last sector of given device with glabel's metadata. So you potentially can destroy some data in it. Using kern.geom.debugflags=3D16 is a bad practice. The right way i= s creating label before creation of file system and installing OS. Also you can use UFS labels (see tunefs(8)). --=20 WBR, Andrey V. Elsukov --------------enig53ED216EFC659D8746029286 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJOS0DKAAoJEAHF6gQQyKF6EHQH/jVhZ3GncKOl4111ct1o8NCh RSWezNT+7yjLK82U5NmXjq3hrhS3fLPDtBnwANngIGriXpiheBncE/6fj/HGvMsJ IZBIlAyJIgAQXQ8DS0Z19YSLKwq5fFNYh1wYMLXyhTt+5Q62cbX/ceRkppFbsxVt kjUM9aDnTGQZdlfFvhOsU6YOIP/53iv0d8eNGhUyOh2Dc7PIZnq8wyrr7j7+cSGX YjAd9S22UrX4tWt4svsnAP5eThTk4QP4Aj93SrDS/jj2pCfEt3z4s5SujzyPSPvx BJKNqmihy72UhTJ2hppgx3qVnvDtIaM9Jza2VHks4o+SXlFbUvdwMi7/4T2PifI= =0U0U -----END PGP SIGNATURE----- --------------enig53ED216EFC659D8746029286--