From owner-freebsd-ports@FreeBSD.ORG Wed Feb 19 16:19:39 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D74AB7E; Wed, 19 Feb 2014 16:19:39 +0000 (UTC) Received: from dub0-omc3-s22.dub0.hotmail.com (dub0-omc3-s22.dub0.hotmail.com [157.55.2.31]) by mx1.freebsd.org (Postfix) with ESMTP id 2A9BB17B1; Wed, 19 Feb 2014 16:19:38 +0000 (UTC) Received: from DUB118-W42 ([157.55.2.7]) by dub0-omc3-s22.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 19 Feb 2014 08:18:31 -0800 X-TMN: [xuLzpNv5x+/uXRPHBUO0lzyQcShRYEZd] X-Originating-Email: [andrew.hotlab@hotmail.com] Message-ID: Content-Type: multipart/mixed; boundary="_53684ccf-24d0-4f7c-88ea-9103285a9287_" From: Andrew Hotlab To: Bryan Drewery Subject: RE: [patch] sysutils/beadm Date: Wed, 19 Feb 2014 17:18:31 +0100 Importance: Normal In-Reply-To: <5304B151.1040907@FreeBSD.org> References: , <5304B151.1040907@FreeBSD.org> MIME-Version: 1.0 X-OriginalArrivalTime: 19 Feb 2014 16:18:31.0239 (UTC) FILETIME=[3AD09D70:01CF2D8E] Cc: "ports@freebsd.org" , vermaden X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 16:19:39 -0000 --_53684ccf-24d0-4f7c-88ea-9103285a9287_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ----------------------------------------=0A= > Date: Wed=2C 19 Feb 2014 07:27:45 -0600=0A= > From: bdrewery@FreeBSD.org=0A= > To: andrew.hotlab@hotmail.com=0A= > CC: ports@freebsd.org=3B vermaden@interia.pl=0A= > Subject: Re: [patch] sysutils/beadm=0A= >=0A= > On 2/13/2014 4:19 PM=2C Andrew Hotlab wrote:=0A= >> First of all=2C thank you very much for the good work with this port. I'= m sure it's changing the life of a lot FreeBSD system administrators!=0A= >>=0A= >> In my setup I have the following layout (several datasets for /usr=2C /v= ar=2C etc.):=0A= >>=0A= >> NAME USED AVAIL REFER MOUNTPOINT=0A= >> sys 1.55G 18.0G 31K none=0A= >> sys/ROOT 532M 18.0G 31K none=0A= >> sys/ROOT/default 114K 18.0G 250M /=0A= >> sys/ROOT/default/tmp 22K 18.0G 38K /tmp=0A= >> sys/ROOT/default/usr 1K 18.0G 245M /usr=0A= >> sys/ROOT/default/var 48.5K 18.0G 36.4M /var=0A= >> sys/swap 1.03G 19.0G 16K -=0A= >>=0A= >> At this moment the utility does not seems to be able to manage this sche= me=2C since it sets the mountpoint property as "legacy" for all datasets un= der the root=2C thus preventing to automatically mount any subdirectory at = boot.=0A= >> I've tested this simple solution (to let do the job to the canmount prop= erty)=2C and it seems to solve the problem without affecting the behavior w= hen all system folders are located under a single root dataset (please see = the patch below). I'd be glad if you'll include it in the next port revisio= n.=0A= >>=0A= >=0A= > ACK on this. CC'ing upstream maintainer too.=0A= >=0A= > I run the same setup but I specifically set /usr /var and /tmp mntpoints= =0A= > to /usr=2C/var/=2C/tmp to avoid this issue. I am not sure if mntpoint=3D/= is=0A= > proper. I recall there being an issue with it. I would much prefer your= =0A= > patch though if it is safe.=0A= >=0A= > Does beadm mount still work with this to mount a new BE into /tmp?=0A= >=0A= > Ie=2C=0A= >=0A= > beadm create newbe=0A= > beadm mount newbe=0A= >=0A= > Does it go and remount / or only touch /tmp?=0A= >=0A= =0A= It seems to behave correctly=2C as you can see in the attached transcript.= =0A= =0A= > How about activating? Does it blow away / right away or wait until reboot= ?=0A= =0A= Since beadm changes only the "canmount" ZFS property to set the active envi= ronment for the next reboot=2C there is no implications for the running env= ironment.=0A= =0A= Regards=0A= =0A= Andrew = --_53684ccf-24d0-4f7c-88ea-9103285a9287_ Content-Type: text/plain Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="beadm_transcript.txt" cm9vdEBCRVRFU1Q6fiAjCXpmcyBsaXN0IC10IGFsbApOQU1FICAgICAgICAgICAgICAgICAgICAg ICAgICAgIFVTRUQgIEFWQUlMICBSRUZFUiAgTU9VTlRQT0lOVApzeXMgICAgICAgICAgICAgICAg ICAgICAgICAgICAgMS41NUcgIDE4LjBHICAgIDMxSyAgbm9uZQpzeXMvUk9PVCAgICAgICAgICAg ICAgICAgICAgICAgIDUzNU0gIDE4LjBHICAgIDMxSyAgbm9uZQpzeXMvUk9PVC9SRUxFTkdfOV8y ICAgICAgICAgICAgIDUzNU0gIDE4LjBHICAgMjUxTSAgLwpzeXMvUk9PVC9SRUxFTkdfOV8yL3Rt cCAgICAgICAgICAzNksgIDE4LjBHICAgIDM2SyAgL3RtcApzeXMvUk9PVC9SRUxFTkdfOV8yL3Vz ciAgICAgICAgIDI0N00gIDE4LjBHICAgMjQ3TSAgL3VzcgpzeXMvUk9PVC9SRUxFTkdfOV8yL3Vz ci9vYmogICAgICAzMUsgIDE4LjBHICAgIDMxSyAgL3Vzci9vYmoKc3lzL1JPT1QvUkVMRU5HXzlf Mi91c3IvcG9ydHMgICAgMzFLICAxOC4wRyAgICAzMUsgIC91c3IvcG9ydHMKc3lzL1JPT1QvUkVM RU5HXzlfMi91c3Ivc3JjICAgICAgMzFLICAxOC4wRyAgICAzMUsgIC91c3Ivc3JjCnN5cy9ST09U L1JFTEVOR185XzIvdmFyICAgICAgICAzNS44TSAgMTguMEcgIDM1LjhNICAvdmFyCnN5cy9zd2Fw ICAgICAgICAgICAgICAgICAgICAgICAxLjAzRyAgMTkuMEcgICAgMTZLICAtCnJvb3RAQkVURVNU On4gIwliZWFkbSBsaXN0CkJFICAgICAgICAgQWN0aXZlIE1vdW50cG9pbnQgIFNwYWNlIENyZWF0 ZWQKUkVMRU5HXzlfMiBOUiAgICAgLyAgICAgICAgICA1MzMuOU0gMjAxNC0wMS0xMyAxMjozOApy b290QEJFVEVTVDp+ICMJYmVhZG0gY3JlYXRlIHRlc3QKQ3JlYXRlZCBzdWNjZXNzZnVsbHkKcm9v dEBCRVRFU1Q6fiAjCXpmcyBsaXN0IC10IGFsbApOQU1FICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgVVNFRCAgQVZBSUwgIFJFRkVSICBNT1VOVFBPSU5UCnN5 cyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDEuNTVHICAx OC4wRyAgICAzMUsgIG5vbmUKc3lzL1JPT1QgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIDUzNU0gIDE4LjBHICAgIDMxSyAgbm9uZQpzeXMvUk9PVC9SRUxFTkdfOV8y ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgNTM1TSAgMTguMEcgICAyNTFNICAvCnN5 cy9ST09UL1JFTEVOR185XzJAMjAxNC0wMi0xOS0xNzowMzo0OSAgICAgICAgICAgICAgICAwICAg ICAgLSAgIDI1MU0gIC0Kc3lzL1JPT1QvUkVMRU5HXzlfMi90bXAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAzNksgIDE4LjBHICAgIDM2SyAgL3RtcApzeXMvUk9PVC9SRUxFTkdfOV8yL3Rt cEAyMDE0LTAyLTE5LTE3OjAzOjQ5ICAgICAgICAgICAgMCAgICAgIC0gICAgMzZLICAtCnN5cy9S T09UL1JFTEVOR185XzIvdXNyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAyNDdNICAxOC4w RyAgIDI0N00gIC91c3IKc3lzL1JPT1QvUkVMRU5HXzlfMi91c3JAMjAxNC0wMi0xOS0xNzowMzo0 OSAgICAgICAgICAgIDAgICAgICAtICAgMjQ3TSAgLQpzeXMvUk9PVC9SRUxFTkdfOV8yL3Vzci9v YmogICAgICAgICAgICAgICAgICAgICAgICAgIDMxSyAgMTguMEcgICAgMzFLICAvdXNyL29iagpz eXMvUk9PVC9SRUxFTkdfOV8yL3Vzci9vYmpAMjAxNC0wMi0xOS0xNzowMzo0OSAgICAgICAgMCAg ICAgIC0gICAgMzFLICAtCnN5cy9ST09UL1JFTEVOR185XzIvdXNyL3BvcnRzICAgICAgICAgICAg ICAgICAgICAgICAgMzFLICAxOC4wRyAgICAzMUsgIC91c3IvcG9ydHMKc3lzL1JPT1QvUkVMRU5H XzlfMi91c3IvcG9ydHNAMjAxNC0wMi0xOS0xNzowMzo0OSAgICAgIDAgICAgICAtICAgIDMxSyAg LQpzeXMvUk9PVC9SRUxFTkdfOV8yL3Vzci9zcmMgICAgICAgICAgICAgICAgICAgICAgICAgIDMx SyAgMTguMEcgICAgMzFLICAvdXNyL3NyYwpzeXMvUk9PVC9SRUxFTkdfOV8yL3Vzci9zcmNAMjAx NC0wMi0xOS0xNzowMzo0OSAgICAgICAgMCAgICAgIC0gICAgMzFLICAtCnN5cy9ST09UL1JFTEVO R185XzIvdmFyICAgICAgICAgICAgICAgICAgICAgICAgICAgIDM1LjhNICAxOC4wRyAgMzUuOE0g IC92YXIKc3lzL1JPT1QvUkVMRU5HXzlfMi92YXJAMjAxNC0wMi0xOS0xNzowMzo0OSAgICAgICAg ICAgIDAgICAgICAtICAzNS44TSAgLQpzeXMvUk9PVC90ZXN0ICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICA3SyAgMTguMEcgICAyNTFNICAvCnN5cy9ST09UL3Rlc3QvdG1w ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDFLICAxOC4wRyAgICAzNksgIC90 bXAKc3lzL1JPT1QvdGVzdC91c3IgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg NEsgIDE4LjBHICAgMjQ3TSAgL3VzcgpzeXMvUk9PVC90ZXN0L3Vzci9vYmogICAgICAgICAgICAg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290QEJFVEVTVDp+ICMJYmVhZG0gYWN0aXZhdGUgdGVz dApBY3RpdmF0ZWQgc3VjY2Vzc2Z1bGx5CnJvb3RAQkVURVNUOn4gIwliZWFkbSBsaXN0CkJFICAg ICAgICAgQWN0aXZlIE1vdW50cG9pbnQgIFNwYWNlIENyZWF0ZWQKUkVMRU5HXzlfMiBOICAgICAg LyAgICAgICAgICAxMDQuNUsgMjAxNC0wMS0xMyAxMjozOAp0ZXN0ICAgICAgIFIgICAgICAtICAg ICAgICAgIDUzNC4wTSAyMDE0LTAyLTE5IDE3OjAzCnJvb3RAQkVURVNUOn4gIwl6ZnMgbGlzdCAt byBuYW1lLHVzZWQsYXZhaWwsbW91bnRwb2ludCxjYW5tb3VudApOQU1FICAgICAgICAgICAgICAg ICAgICAgICAgICAgIFVTRUQgIEFWQUlMICBNT1VOVFBPSU5UICBDQU5NT1VOVApzeXMgICAgICAg ICAgICAgICAgICAgICAgICAgICAgMS41NUcgIDE4LjBHICBub25lICAgICAgICAgICAgICBvbgpz eXMvUk9PVCAgICAgICAgICAgICAgICAgICAgICAgIDUzNU0gIDE4LjBHICBub25lICAgICAgICAg ICAgICBvbgpzeXMvUk9PVC9SRUxFTkdfOV8yICAgICAgICAgICAgIDEzNksgIDE4LjBHICAvICAg ICAgICAgICAgIG5vYXV0bwpzeXMvUk9PVC9SRUxFTkdfOV8yL3RtcCAgICAgICAgICAyM0sgIDE4 LjBHICAvdG1wICAgICAgICAgIG5vYXV0bwpzeXMvUk9PVC9SRUxFTkdfOV8yL3VzciAgICAgICAg ICAgMUsgIDE4LjBHICAvdXNyICAgICAgICAgIG5vYXV0bwpzeXMvUk9PVC9SRUxFTkdfOV8yL3Vz ci9vYmogICAgICAgIDAgIDE4LjBHICAvdXNyL29iaiAgICAgIG5vYXV0bwpzeXMvUk9PVC9SRUxF TkdfOV8yL3Vzci9wb3J0cyAgICAgIDAgIDE4LjBHICAvdXNyL3BvcnRzICAgIG5vYXV0bwpzeXMv Uk9PVC9SRUxFTkdfOV8yL3Vzci9zcmMgICAgICAgIDAgIDE4LjBHICAvdXNyL3NyYyAgICAgIG5v YXV0bwpzeXMvUk9PVC9SRUxFTkdfOV8yL3ZhciAgICAgICAgNzMuNUsgIDE4LjBHICAvdmFyICAg ICAgICAgIG5vYXV0bwpzeXMvUk9PVC90ZXN0ICAgICAgICAgICAgICAgICAgIDUzNU0gIDE4LjBH ICAvICAgICAgICAgICAgICAgICBvbgpzeXMvUk9PVC90ZXN0L3RtcCAgICAgICAgICAgICAgICA2 MEsgIDE4LjBHICAvdG1wICAgICAgICAgICAgICBvbgpzeXMvUk9PVC90ZXN0L3VzciAgICAgICAg ICAgICAgIDI0N00gIDE4LjBHICAvdXNyICAgICAgICAgICAgICBvbgpzeXMvUk9PVC90ZXN0L3Vz ci9vYmogICAgICAgICAgICAzMksgIDE4LjBHICAvdXNyL29iaiAgICAgICAgICBvbgpzeXMvUk9P VC90ZXN0L3Vzci9wb3J0cyAgICAgICAgICAzMksgIDE4LjBHICAvdXNyL3BvcnRzICAgICAgICBv bgpzeXMvUk9PVC90ZXN0L3Vzci9zcmMgICAgICAgICAgICAzMksgIDE4LjBHICAvdXNyL3NyYyAg ICAgICAgICBvbgpzeXMvUk9PVC90ZXN0L3ZhciAgICAgICAgICAgICAgMzUuOU0gIDE4LjBHICAv dmFyICAgICAgICAgICAgICBvbgpzeXMvc3dhcCAgICAgICAgICAgICAgICAgICAgICAgMS4wM0cg IDE5LjBHICAtICAgICAgICAgICAgICAgICAgLQpyb290QEJFVEVTVDp+ICMJ --_53684ccf-24d0-4f7c-88ea-9103285a9287_--