Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2013 14:47:52 -0800
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Alfred Perlstein <bright@mu.org>
Cc:        "freebsd-stable@freebsd.org Stable" <freebsd-stable@freebsd.org>
Subject:   Re: BIND segway -> python -> first-class ports
Message-ID:  <20131210224752.GZ55638@funkthat.com>
In-Reply-To: <52A68141.6010003@mu.org>
References:  <52A12843.3010204@freebsd.org> <0BFC927B-D72E-4926-BB3D-2C000F310BDD@fisglobal.com> <7271C4C4-7BAB-4DA7-9E10-49D5B2DB8964@mu.org> <52A51438.4090200@bluerosetech.com> <8D54491D-5A1C-4D30-AD48-12336D0726DC@gsoft.com.au> <DA16EC64-67F6-45D2-A698-FB362061B66E@mu.org> <EE73DE87-088B-4C08-B141-288EA6090529@gsoft.com.au> <52A67BE8.9050509@mu.org> <20131210023615.GR55638@funkthat.com> <52A68141.6010003@mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein wrote this message on Mon, Dec 09, 2013 at 18:49 -0800:
> 
> On 12/9/13, 6:36 PM, John-Mark Gurney wrote:
> >Alfred Perlstein wrote this message on Mon, Dec 09, 2013 at 18:26 -0800:
> >>On 12/9/13, 2:11 PM, Daniel O'Connor wrote:
> >>>On 9 Dec 2013, at 22:21, Alfred Perlstein <bright@mu.org> wrote:
> >>>>>On Dec 8, 2013, at 9:13 PM, "Daniel O'Connor" <doconnor@gsoft.com.au>
> >>>>>wrote:
> >>>>>
> >>>>>(I don't care if it's JSON, XML or smoke signals just so long as it
> >>>>>isn't hideously slow).
> >>>>>
> >>>>You have described exactly what we are trying to accomplish. Thank you!
> >>>OK, great, can you have an implementation by COB Friday? :)
> >>>
> >>>Although seriously, I do wonder what the best way to implement it would 
> >>>be.
> >>>
> >>>I can imagine modifying /bin/sh to have such a feature would be somewhat
> >>>controversial..
> >>>
> >>A few interesting targets would be sysctl, ifconfig, gpart, disklabel,
> >>... any others?
> >gpart info is already in XML from sysctl kern.geom.confxml...
> >
> >And disklabel has been retired and replaced by gpart...
> >
> XML doesn't work for everyone, and as far as disklabel, wasn't aware it 

hence the thread, but my point is some of this already exists...

> was toast in HEAD, it's still around in 9.2 and we've been doing most of 
> our development there so oops!

well, disklabel aka bsdlabel (to be platform neutral) is still around,
but I do not believe it works on disks where one of the partitions are
open, while gpart will:
bsdlabel: cannot open provider /dev/ada0s2 for writing label: Permission denied
bsdlabel: Try to use gpart(8).

So, you should be using gpart to be future compatible, and not limit
yourself to one type of partitioning scheme..

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



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