Re: Change of Ownership of the filesystem content when cloning a volume

2018-03-10 Thread Saravanan Shanmugham (sarvi)
I am 100% sure Netapp Flexclone can change the ownership of the clone content.
We are using that functionality right now.

https://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-cmpr-900%2Fvolume__clone__create.html

When you create clone in Flrxclone, you can specify a uid/gid. 
When the clone is created, all the files/directories/content in that clone is 
instantly owned by the uid/gid.

What I have been looking for is a similar functionality in Btrfs or ZFS?

I would like to put a diskimage on NFS, and mount it as a disk on my machine. 
And I want such snapshot and cloning(change ownership) capabilities in that 
disk image.

So I was considering BTRFS or ZFS, and was wondering if they miht have that 
feature.

Thanks
Sarvi
-
Occam's Razor Rules

On 3/9/18, 9:48 PM, "Andrei Borzenkov"  wrote:

10.03.2018 02:13, Saravanan Shanmugham (sarvi) пишет:
> 
> Netapp’s storage system, has the concept of snapshot/clones.
> And when I create a clone from a snapshot, I can give/change ownership of 
entire tree in the volume to a different userid.

You are probably mistaken. NetApp FlexClone (which you probably mean)
does not have any ways to change volume content. Of course you can now
mount this clone and do whatever you like from host, but that is
completely unrelated to NetApp itself and can just as well be done using
btrfs subvolume.

> 
> Is something like that possible in BTRFS?
> 
> We are looking to use CopyOnWrite to snapshot nightly build workspace and 
clone as developer workspaces to avoid building from scratch for developers,
> And move directly for incremental builds.
> For this we would like the clone workspace/volume to be instantly owned 
by the developer cloning the workspace.
> 
> Thanks,
> Sarvi
> -
> Occam's Razor Rules
> 
> 
> 
N�r��y���b�X��ǧv�^�)޺{.n�+{�n�߲)���w*?jg���?�ݢj/���z�ޖ��2�ޙ���&�)ߡ�a����?�G���h�?�j:+v���w�٥
> 





Re: Change of Ownership of the filesystem content when cloning a volume

2018-03-09 Thread Andrei Borzenkov
10.03.2018 02:13, Saravanan Shanmugham (sarvi) пишет:
> 
> Netapp’s storage system, has the concept of snapshot/clones.
> And when I create a clone from a snapshot, I can give/change ownership of 
> entire tree in the volume to a different userid.

You are probably mistaken. NetApp FlexClone (which you probably mean)
does not have any ways to change volume content. Of course you can now
mount this clone and do whatever you like from host, but that is
completely unrelated to NetApp itself and can just as well be done using
btrfs subvolume.

> 
> Is something like that possible in BTRFS?
> 
> We are looking to use CopyOnWrite to snapshot nightly build workspace and 
> clone as developer workspaces to avoid building from scratch for developers,
> And move directly for incremental builds.
> For this we would like the clone workspace/volume to be instantly owned by 
> the developer cloning the workspace.
> 
> Thanks,
> Sarvi
> -
> Occam's Razor Rules
> 
> 
> N�r��y���b�X��ǧv�^�)޺{.n�+{�n�߲)���w*jg����ݢj/���z�ޖ��2�ޙ���&�)ߡ�a�����G���h��j:+v���w�٥
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Change of Ownership of the filesystem content when cloning a volume

2018-03-09 Thread Saravanan Shanmugham (sarvi)

Netapp’s storage system, has the concept of snapshot/clones.
And when I create a clone from a snapshot, I can give/change ownership of 
entire tree in the volume to a different userid.

Is something like that possible in BTRFS?

We are looking to use CopyOnWrite to snapshot nightly build workspace and clone 
as developer workspaces to avoid building from scratch for developers,
And move directly for incremental builds.
For this we would like the clone workspace/volume to be instantly owned by the 
developer cloning the workspace.

Thanks,
Sarvi
-
Occam's Razor Rules