[ARVADOS] updated: 2.1.0-1892-gca0b6ff3d
Git user
git at public.arvados.org
Thu Feb 17 16:14:15 UTC 2022
Summary of changes:
sdk/go/arvados/fs_base.go | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
via ca0b6ff3d75f68b7a2f1821d605fadd49481038e (commit)
from 668e4f412e70817059fa093b4739c06c50705e79 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit ca0b6ff3d75f68b7a2f1821d605fadd49481038e
Author: Tom Clegg <tom at curii.com>
Date: Thu Feb 17 11:13:49 2022 -0500
18600: Update comment.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>
diff --git a/sdk/go/arvados/fs_base.go b/sdk/go/arvados/fs_base.go
index 5bccdc51d..80b803729 100644
--- a/sdk/go/arvados/fs_base.go
+++ b/sdk/go/arvados/fs_base.go
@@ -81,10 +81,13 @@ type File interface {
// then be spliced onto a different path or a different
// collection.
Snapshot() (*Subtree, error)
- // Replace this file or directory with the given snapshot. It
- // is an error to replace a directory with a file. If snapshot
- // is (or might be) a directory, remove the directory, create
- // a file with the same name, and splice the file.
+ // Replace this file or directory with the given snapshot.
+ // The target must be inside a collection: Splice returns an
+ // error if the File is a virtual file or directory like
+ // by_id, a project directory, .arvados#collection,
+ // etc. Splice can replace directories with regular files and
+ // vice versa, except it cannot replace the root directory of
+ // a collection with a regular file.
Splice(snapshot *Subtree) error
}
@@ -171,7 +174,7 @@ type inode interface {
Snapshot() (inode, error)
// Replace this node with a copy of the provided snapshot.
// Caller may provide the same snapshot to multiple Splice
- // calls, but must not modify the the snapshot concurrently.
+ // calls, but must not modify the snapshot concurrently.
Splice(inode) error
// Child() performs lookups and updates of named child nodes.
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list