Jean McCormack wrote:
> Jean McCormack wrote:
>> jan damborsky wrote:
>>   
>>> Hi Jean,
>>>
>>> the changes look good to me.
>>>
>>> Uut of curiosity, since DIST_PROTO is created on zfs dataset,
>>> might be 'used' property utilized for obtaining size information ?
>>> Something like
>>> # zfs get -Hp used <proto_zfs_dataset>
>>>
>>> I am not asking to change the code, just curious :-)
>>>     
>> I think I could use that.  I'm curious though. If I do
>> df -k /rpool/dc-builds
>>
>> Filesystem            kbytes    used   avail capacity  Mounted on
>> rpool/dc-builds      63479808 2102448 54479705     4%    /rpool/dc-builds
>>
>>
>> yet zfs get -Hp used rpool/dc-builds yields:
>> rpool/dc-builds    used    2814928384    -
>>
>>
>> Why are they different? Even compensating for the df -k being kbytes 
>> it's not the same number.
>> (2102448 x 1024 = 2152906752)
>>
>> My guess is that there are subtle differences between what they are 
>> giving the size of. I'm
>> just not sure what that subtlety is.
>>   
> The difference is the size of the underlying filesystem for 
> bootcd_microroot. It's small at
> this point in the build, about 26.5 K, but it's there. Just to be clear, 
> I have my build area
> set up so that $DIST_PROTO = rpool/dc-builds is one filesystem and 
> $MICROROOT=
> rpool/dc-builds/bootcd_microroot is a different one. Possibly that's 
> unconventional?
> 
> So I'm not sure we do want to go with zfs get. Depends on whether my 
> setup is reasonable
> or not. What do you think?

If df gives us the correct value under any configuration, then I would 
use it.

Dave

> 
> Jean
>> Jean
>>
>>   
>>> Thank you,
>>> Jan
>>>
>>>
>>> Jean McCormack wrote:
>>>     
>>>> Moinak, Jan and Sanjay should look at this:
>>>>
>>>> The changes are here:
>>>>
>>>> http://cr.opensolaris.org/~jeanm/distro_constructor/
>>>>
>>>>
>>>> The changes address:
>>>>
>>>> http://defect.opensolaris.org/bz/show_bug.cgi?id=844
>>>> http://defect.opensolaris.org/bz/show_bug.cgi?id=845
>>>> http://defect.opensolaris.org/bz/show_bug.cgi?id=852
>>>>
>>>>
>>>> Jean
>>>>
>>>> _______________________________________________
>>>> caiman-discuss mailing list
>>>> caiman-discuss at opensolaris.org
>>>> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
>>>>       
>> _______________________________________________
>> caiman-discuss mailing list
>> caiman-discuss at opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
>>   
> 
> _______________________________________________
> caiman-discuss mailing list
> caiman-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss


Reply via email to