rust-tuf icon indicating copy to clipboard operation
rust-tuf copied to clipboard

Create map file that points a TargetPath to a location on the filesystem

Open heartsucker opened this issue 8 years ago • 1 comments

A base64 encoded sha512 sum is 89 characters long which uses up a lot of the characters of the max file name length in ext4 (and other FS's). There will need to be a map file that is kept up to date with a mapping of TargetPath => UUID, and the FileSystemRepository will have to do look ups often.

This would actually be a huge win in that we can remove most of the restrictions on TargetPath and MetadataPath since those paths won't be used when writing files to the FS.

heartsucker avatar Jul 04 '17 12:07 heartsucker

Removing this from 0.3.0 because the Python TUF implementation doesn't do this, and it's going to be a bit of a pain. This maybe need to be added in the future, especially because I've seen path name overflow problems on Ubuntu with encrypted home directories.

heartsucker avatar Jul 15 '17 09:07 heartsucker