c - Embedding a filesystem in an executable? -
i'm sort of curious: if wanted embed filesystem in executable, assume i'd embed image of filesystem using objcopy. however, sort of filesystem should use? there going easy library directly accessing filesystem image?
i don't have use this, responses "don't it, use actual files instead" irrelevant.
there exist so-called virtual file system implementations, designed custom storage in mind. name few: our solid file system, codebase file system, single file system aidaim.
most of them use files container, (eg. our solfs) let have container in custom places , access via callbacks.
depending on practical requirements can use zip or tar format well.
if want expose filesystem contained in executable os other applications read it, 1 of our virtual storage solutions (callbackdisk or callback file system) job on windows. on linux , macos x there exist other ways this, including fuse , macfuse libraries (analogs our cbfs).
Comments
Post a Comment