question/thoughts on inplace import options
Posted: Tue Aug 22, 2017 8:04 pm
Hi team,
I've successfully used inplace import for a few years, pretty much only using hardlink transfers. On one of the servers I run, it is not possible to keep both the users directories (where people drop their images, SPW's, etc. and where they want to keep access to those data) and OMERO's ManagedRepo on the same file system so I'm looking at symlinks instead. However, managing the permissions etc. so as to avoid data loss looks non-trivial. So I was wondering about another inplace transfer option but before trying to write a new transfer subclass for this, I wanted to get your opinion:
The transfer option I'm considering is: copy the data to the ManagedRepo, delete the file from the original location, then create a symlink in the original location to the new file in the ManagedRepo, and (if needed) do the appropriate chmod to allow the user read-only access. I was thinking that this gives the same safeness as hardlinks but provides more file system flexibility.
Finally, a thought for consideration for a future desktop/web importer: support for optional inplace imports for endusers who have already uploaded the files to a mounted filesystem on the OMERO server.
Cheers,
- Damir
I've successfully used inplace import for a few years, pretty much only using hardlink transfers. On one of the servers I run, it is not possible to keep both the users directories (where people drop their images, SPW's, etc. and where they want to keep access to those data) and OMERO's ManagedRepo on the same file system so I'm looking at symlinks instead. However, managing the permissions etc. so as to avoid data loss looks non-trivial. So I was wondering about another inplace transfer option but before trying to write a new transfer subclass for this, I wanted to get your opinion:
The transfer option I'm considering is: copy the data to the ManagedRepo, delete the file from the original location, then create a symlink in the original location to the new file in the ManagedRepo, and (if needed) do the appropriate chmod to allow the user read-only access. I was thinking that this gives the same safeness as hardlinks but provides more file system flexibility.
Finally, a thought for consideration for a future desktop/web importer: support for optional inplace imports for endusers who have already uploaded the files to a mounted filesystem on the OMERO server.
Cheers,
- Damir