On 11 February 2022 18:33:29 CET, Robert Riebisch via Svardos-users <svardos-users@lists.osdn.me> wrote: >If you care about clusters and FAT entries now, why do you still follow >the one-cluster-per-link approach in SvarCOM? :-D
I always cared - but I also care about keeping things simple (when it's possible and reasonable), and sometimes this results in a compromise. A package is usually composed of multiple files, hence adding one for the feature of having a link likely won't significantly change the overall cluster footprint of the package. It is also about choice: a user has the choice to use links or not (or use other link-related tools if he wishes). Adding a version file at install time is not a choice, it is imposed on him. Hence why I was thinking of some way to record the build version of the installation medium that does not cost anything to the user. Config.sys came naturally to mind, but now I thought about another way: setting the svardos directory with the timestamp of the install medium. That costs nothing and is unlikely to be fiddled with by the user. Back to links: Last but not least - using a single file that stores all links is a more complex exercise than relying on the filesystem, requiring to cope with various forms of formatting, strange end of lines or other corruptions... That applies also (more importantly even) to write operations. Even a stupid strcmp() becomes a problem (for matching link names), because it needs to be case-insensitive AND codepage-aware at the same time. All that being said, you are obviously welcome to submit patches with a superior solution. I'd be happy to review them if they provide a better way that is stable, generic, resilient to errors and does not increase memory footprint too much. It is just something I will not write myself, since I am content with the simplicity/functionality ratio of the currently implemented solution and I find it's cluster cost very reasonable in practice (but YMMV of course). Mateusz _______________________________________________ Svardos-users mailing list Svardos-users@lists.osdn.me https://lists.osdn.me/mailman/listinfo/svardos-users