Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: daf_butler
-
Story Points:2
-
Team:Architecture
-
Urgent?:No
Description
When converting gen2 repositories to gen3 we currently default to using symlink mode. This means that in-place conversions can't work and also means that a user can't convert to an S3 bucket.
I think we need a couple of changes that would help a lot with the right decision being made:
- Add a new "link" option that tries a hardlink and falls back to symlink
- Add an auto mode to posix datastore that will check to see if the file is within the repository and use None if it is, else it will use "link".
- Make "auto" an alias for "copy" in S3 datastore.
With these changes the 2to3 conversion can use "auto" mode and that should do the right thing most of the time.
Attachments
Issue Links
- relates to
-
DM-24365 Add relative symbolic link transfer mode to Gen 3 ingest
- Done
Jim Bosch the auto modes were a little more involved than I wanted because of the way ingest works but everything seems to work okay. I have converted a gen2 to 3 in obs_lsst using the auto mode default and it works now for in place conversion and also correctly uses hardlinks without having to be told.