SQLite Archiver
Artifact Content
Not logged in

Artifact e1f31a787b340c3f3004e3ec72f9c3d311cee908:

Ticket change [e1f31a787b] - New ticket [f110f1f8a1] sqlarfs "ignores" files in directories not also in archive. by anonymous 2018-05-17 18:28:39.
D 2018-05-17T18:28:39.073
J foundin 4824e73896
J icomment Quick\sglance\sat\sfossil\scode\ssuggests\sthey\sensure\sentries\sare\screated\sfor\sparent\sdirectories\sof\sall\sfiles,\sbut\sthat's\snot\sthe\scase\swith\seither\sthe\ssqlar\sor\s"sqlite3\s-A"\stools.\r\n\r\nI'm\ssuggesting\sthis\sis\sa\ssqlarfs\sbug,\ssince\sboth\sthe\ssqlar\sand\s"sqlite3\s-A"\stools\sseem\sto\shave\scode\sfor\shandling\sthis\sduring\sextraction.\r\n\r\nBasically:\r\n\r\n*\sCreate\san\sSQlite\sArchive\swith\sa\ssingle\sfile\sin\sit\sfrom\ssome\sdirectory:\r\n$\smkdir\s-p\sdummy\smntpt\r\n$\secho\s"foo"\s>\sdummy/bar\r\n$\ssqlar\ssample.sar\sdummy/bar\r\n$\ssqlar\s-l\ssample.sar\r\ndummy/bar\r\n$\ssqlarfs\s./sample.sar./mntpt\r\n(this\sruns\sin\sthe\sforeground,\sso\sexecute\sthe\sfollowing\sfrom\sa\sdifferent\sshell)\r\n$\sls\s./mntpt\r\n$\s#\sshould\shave\sshown\s'dummy',\swith\s'bar'\sin\sit!\r\n-------\r\nIf\sinstead\sthe\sarchive\sis\screated\sas\sso:\r\n$\ssqlar\sworks.sar\sdummy\r\n\r\nAn\sentry\sfor\s'dummy'\sis\screated,\sand\sthe\sfile\scan\sbe\saccessed\swhen\sthe\sarchive\sis\smounted\swith\ssqlarfs.\r\n\r\n---------------------------\r\n\r\nAs\san\saside,\sis\sthere\sa\sreason\sto\snot\srequire\sentries\sfor\sall\s"intermediate"\sdirectories\sin\sthe\ssqlite\sarchive\sfile\s"tree"?\sJust\scurious\s:).\s\sDoing\sso\swould\sresolve\sthis\s(of\scourse)\sbut\salso\sprovides\san\sanswer\sfor\swhat\spermissions\ssuch\sdirectories\sshould\shave\s(consider\sdummy/a\sand\sdummy/b\swith\sdifferent\spermissions,\setc.).\s\sBut\ssince\somitting\sthese\sseems\sto\sbe\ssupported\s(or\sby\sdesign?),\sand\ssince\sexisting\stooling\smakes\sit\seasy\sto\scraft\sarchives\swithout\sthem,\shopefully\sthis\scan\sbe\sresolved\sin\ssqlarfs.\r\n\r\nThanks,\sLMK\sif\sthere's\sanything\selse\sI\scan\sdo\sto\sclarify\sor\shelp\swith\sthis!
J login anonymous
J mimetype text/x-fossil-plain
J private_contact 78013bbae6d989a6a55bfc09498b936a0bdb53a7
J severity Severe
J status Open
J title sqlarfs\s"ignores"\sfiles\sin\sdirectories\snot\salso\sin\sarchive
J type Code_Defect
K f110f1f8a1f3fc2865f35d6b4621cf05a1630051
U anonymous
Z 8a09cf21eb2477eb7aa6c9abccd1ad1a