public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Snapshot/Cloned workspace with changed file/directory ownership for all files in clone
@ 2020-05-01 17:40 Saravanan Shanmugham (sarvi)
  2020-05-01 18:25 ` Darrick J. Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Saravanan Shanmugham (sarvi) @ 2020-05-01 17:40 UTC (permalink / raw)
  To: linux-xfs@vger.kernel.org

One use case for "cloned" workspaces or "seeded" workspaces, is "prebuilt workspaces" for very large builds.

What would it take to add this capability to the xfs roadmap? This would be very usefull.

Our use case is as following
   1. Our fully built software build workspaces can be 800GB+
   2. We have a nightly build that builds the whole workspace 800GB, done by a generic user "buildusr"
   3. We then snapshot that workspace with xfs snapshotting capability.
   3. We want the developer, "sarvi", to be able to clone from that snapshot and be able to incremental software build and development in the cloned workspace or the seeded filesystem/workspace.

Problem: 
All the content, files, directories in the cloned workspace are still owned by "buildusr" and not "sarvi", which causes my builds to fail with permission problems.
Is there anything in xfs that can help. 
For that matter any of the open source filesystems support seeding or snapshot/cloning that you might be aware of.

So far the only filesystem that seems have the capability map/change the file ownership as part of the clone operation is Netapp. 
And unfortunately that isn’t open source and wont serve our purpose.

 
Thanks,
Sarvi
Occam’s Razor Rules


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Snapshot/Cloned workspace with changed file/directory ownership for all files in clone
  2020-05-01 17:40 Snapshot/Cloned workspace with changed file/directory ownership for all files in clone Saravanan Shanmugham (sarvi)
@ 2020-05-01 18:25 ` Darrick J. Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Darrick J. Wong @ 2020-05-01 18:25 UTC (permalink / raw)
  To: Saravanan Shanmugham (sarvi); +Cc: linux-xfs@vger.kernel.org

On Fri, May 01, 2020 at 05:40:45PM +0000, Saravanan Shanmugham (sarvi) wrote:
> One use case for "cloned" workspaces or "seeded" workspaces, is "prebuilt workspaces" for very large builds.
> 
> What would it take to add this capability to the xfs roadmap? This would be very usefull.
> 
> Our use case is as following
>    1. Our fully built software build workspaces can be 800GB+
>    2. We have a nightly build that builds the whole workspace 800GB, done by a generic user "buildusr"
>    3. We then snapshot that workspace with xfs snapshotting capability.

What xfs snapshotting 'capability' is that?

Or, since you've already asked this on the btrfs list, chown -R the
directory tree after you receive the fs image from the build system.

(Maybe the answer you want is shiftfs...)

--D

>    3. We want the developer, "sarvi", to be able to clone from that snapshot and be able to incremental software build and development in the cloned workspace or the seeded filesystem/workspace.
> 
> Problem: 
> All the content, files, directories in the cloned workspace are still owned by "buildusr" and not "sarvi", which causes my builds to fail with permission problems.
> Is there anything in xfs that can help. 
> For that matter any of the open source filesystems support seeding or snapshot/cloning that you might be aware of.
> 
> So far the only filesystem that seems have the capability map/change the file ownership as part of the clone operation is Netapp. 
> And unfortunately that isn’t open source and wont serve our purpose.
> 
>  
> Thanks,
> Sarvi
> Occam’s Razor Rules
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-01 18:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-01 17:40 Snapshot/Cloned workspace with changed file/directory ownership for all files in clone Saravanan Shanmugham (sarvi)
2020-05-01 18:25 ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox