[patch] build off of memory device

Joe Marcus Clarke marcus at marcuscom.com
Fri Mar 2 14:27:19 EST 2012


On 2/28/12 9:55 PM, Philip M. Gollucci wrote:
> Defining it in anything other then G (GB) is kind of pointless imho.
> 
> You'll want a minimum of 4GB and 12GB to match the pointyhat nodes which
> actually matters if you try to build something like openoffice

I went with a flexible size unit (specified by the user).  If no unit is
specified, 512 byte sectors are assumed.  This is in keeping with
mdconfig(8).  However, if people feel strongly that something like M or
G should be assumed, I could be persuaded.

Joe

> 
> 
> On 02/28/12 17:29, Jason Helfman wrote:
>> On Tue, Feb 28, 2012 at 12:15:52PM +0200, Ion-Mihai Tetcu thus spake:
>>> On Mon, 27 Feb 2012 14:36:24 -0800
>>> Jason Helfman <jgh at freebsd.org> wrote:
>>>
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> On Sat, Feb 25, 2012 at 08:31:32PM -0500, Joe Marcus Clarke thus
>>>> spake:
>>>>> Thanks for your patch!  I committed this to HEAD with a few
>>>>> modifications.  I had to add SQL to create the config parameters
>>>>> plus I changed some of the variable usage.  Can you confirm the
>>>>> modified patch still works?
>>>>>
>>>>> Joe
>>>>>
>>>>> --
>>>>> PGP Key : http://www.marcuscom.com/pgp.asc
>>>>
>>>> Patch worked fine, however needed to add:
>>>>
>>>> my $fd;
>>>>
>>>> to the sub routine of configMD for perl to compile properly.
>>>>
>>>> Additionally, may be a good idea to have a ${MDSIZE}b for the
>>>> specification of the size you want passed into mdconfig, and in the
>>>> help note that it needs byte size specified
>>>>
>>>> usage:    tc configMd
>>>>     [-s <memory size in bytes>] [-t <filesystem type>]
>>>
>>> How much sense does it make to have it in bytes? I suppose we'd use at
>>> least (hundreds of) MB if not GBs ...
>>>
>>>
>>
>> Bytes is probably the most safe assumption, as the mdconfig command will
>> take the number with an extension (ie. b,g,m). You can only specify a
>> number
>> for the value.
>>
>> I felt the safest way for implementation is to choose one, put it into the
>> command that creates the device, and document it.
>>
>> If you have any other ideas for implementation, I would be interested.
>>
>> Thanks!
>> -jgh
> 
> 
> 
> 
> This body part will be downloaded on demand.


-- 
PGP Key : http://www.marcuscom.com/pgp.asc


More information about the tinderbox-list mailing list