| 19 | } |
| 20 | |
| 21 | inline static long GetBlockCount(char* size){ // Get size of file in blocks |
| 22 | long sz = OctToDec(size, 12); |
| 23 | long round = (sz % 512) ? (512 - (sz % 512)) : 0; // Round up to 512 byte multiple |
| 24 | return (sz + round) / 512; |
| 25 | } |
| 26 | |
| 27 | inline static uint32_t TarTypeToFilesystemFlags(char type){ |
| 28 | switch(type){ |
no test coverage detected