jan damborsky wrote:
> Hi Ethan,
>
> the fix is fine taking into account the fact that TI supports for now 
> only subset
> of features planned for Spring and that the installer is the only ZFS 
> TI consumer
> as time of being.
>
> I have some more generic questions in order to clarify how these 
> changes would
> fit into next version of TI, which will support also other consumers
> (Snap Upgrade, Distribution Constructor).
>
> Please see below.
>
> Thank you,
> Jan
>
>
>
> [1] I can see that you have introduced some new attributes describing
> ZFS target:
>
> TI_ATTR_ZFS_INIT_BE_NAME
> - I suppose this is name of BE to be created ? Since there is _INIT_
>   part in attribute name, is there some intent to have also other BE
>   types ? If so, how they would differ ?

I think you're right.  With respect to TI, its just the BE name of the
target being creating, so this could be more generic and be
TI_ATTR_ZFS_BE_NAME.  I'll change this.

>
> TI_ATTR_ZFS_SHARED_FS_[NUM|NAMES]
> - Originally, TI ZFS module didn't distinguish between shared and
>   non-shared filesystems. Looking the the code, it seems to me that
>   from TI point of view, there are two differences:
>
> * non-shared filesystem is created on 
> <root_pool>/ROOT/<be_name>/<fs_name>,
>  shared filesystem omits ROOT/<be_name> part.
>
> * since shared as well as non-shared filesystems needs to be mounted
>  on <alt_root>/<fs_name> mount point, different "zfs mount" command
>  needs to be used.
>
> Could you please let me know, if it this observation is correct ?

That's correct.

>
> [2] Modification to TI ZFS module.
> zfm_create_fs() function taking care of creating ZFS target now 
> requires that
>
> * TI_ATTR_ZFS_INIT_BE_NAME is provided and based on this attribute, 
> special
>   kind of actions is applied to ZFS target during "create" and "mount" 
> operations.
>
>
> * both TI_ATTR_ZFS_SHARED_* and TI_ATTR_ZFS_FS_* has to be provided.
>
>   Due to above restrictions, zfm_create_fs() is now specific to how
>   BE is designed and can't take care of creating other type of ZFS 
> dataset.
>
>   Would you like to have this BE logic to be implemented in TI for 
> Snap Upgrade
>   project ?

No.  With libbe, all of this *specificness* to what a ZFS BE is defined 
to be
should get removed from TI.  Namely, the BE container dataset creation 
won't be
in TI.  Also, the understanding that a BE's children file systems live 
underneath
its root dataset will also be encapsulated in libbe.

However, the notion of separateness in a target's 'file systems' and 
'shared file
systems' may still be required in TI when creating a BE.

>
>   I am fine with this approach - just I would need to be aware of this,
>   since Distribution Constructor will also use TI for creating ZFS data
>   sets, so I would then need to encapsulate BE part and refactor the code
>   a bit, so that it doesn't collide with what TI is assumed to support
>   from ZFS part of view.

Okay.

>
>
> [3]One thing which might be helpful for next design was not 
> implemented in
>   October release, but will be supported in Spring one - as far as ZFS 
> data
>   sets are concerned TI will be able to set ZFS dataset properties 
> according
>   to attributes provided. There will be following TI attributes 
> introduced:
>
>   TI_ATTR_ZFS_FS_PROPERTIES - nvlist array
>      - will contain nvlist for every dataset to be created
>
>   Every nvlist then will provide:
>
>   TI_ATTR_ZFS_FS_PROP_NAMES, TI_ATTR_ZFS_FS_VALUES - both are string 
> arrays
>   array of name-value pair ZFS dataset properties
>
>   Thanks to this, it will be possible to set any ZFS dataset property to
>   any value (compression, quota, mountpoint, ...).

This sounds reasonable.


Thanks for the comments.
-ethan


>
>
>
> Ethan Quach wrote:
>> Can someone do a review of this bugfix.  Its targeted for the 
>> preview2 release, so a review in the next couple working days would 
>> be appreciated.
>>
>> 354 better hierarchy for initial datasets
>>
>> Bug:
>> -----
>> http://defect.opensolaris.org/bz/show_bug.cgi?id=354
>>
>> webrev:
>> ----------
>> http://cr.opensolaris.org/~equach/webrev.354/
>>
>>
>> Thanks,
>> -ethan
>> -- 
>> This message posted from opensolaris.org
>> _______________________________________________
>> caiman-discuss mailing list
>> caiman-discuss at opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
>

Reply via email to