-
Notifications
You must be signed in to change notification settings - Fork 17
www/*/delta directory needed? #86
Comments
The www/*/delta directories are not needed at the moment. Historically, swupd-client downloaded individual deltas for an update if they were not present in delta packs. It no longer has this capability. |
However... this being said, keeping www/*/delta around on the server where swupd-server runs is an optimization, because swupd_make_pack will use previously created deltas for delta packs in the current build (as necessary). |
If the "delta" dir is only for swupd-server, should it really be under "www"? It makes hosting the "www" directory more expensive on a content delivery network. |
@pohly No, they do not need to be under "www", but I'm not seeing a good home for them at the moment; the "image" directory is primarily for swupd-server input (chroot content), and "www" is for its output. The standalone deltas could be considered intermediate files given the current implementation, since they are created and consumed by swupd_make_pack. Do you have any ideas about where swupd-server should store the files? As a workaround, you could set up an rsync filter rule to exclude www/*/delta when publishing the content. |
@phmccarty perhaps introduce a "cache" directory alongside "image" and "www"? Then use it for anything that is worth preserving across builds, but with the guarantee that its content can be re-created at any time and thus does not need to be backed up with the same level of reliability as "www" (if it gets backed up at all). Yes, special rsync rules could achieve the same goals, but then using swupd becomes harder and requires more knowledge about its internals. |
Under which circumstances does the swupd client need the individual files from the "delta" directory?
I think "swupd update" looks for a pack--from-.tar, which already contains the individual delta files. So that doesn't need the individual files, does it?
Example:
The text was updated successfully, but these errors were encountered: