Commit 653f572
feat: implement writer TODOs for file type support
Implemented remaining TODOs in writer:
1. Extract uid/gid from info.Sys() if available
- Check for Uid()/Gid() methods on Sys() interface
- Capture uid/gid for proper ownership in archive
2. Read symlink targets using fs.ReadLink
- Add symTarget field to writerInode
- Read and store symlink target path during Add()
- Serialize symlink data in serializeInode()
3. Handle all file types (char, block, fifo, socket)
- Add proper type detection for CharDevType, BlockDevType, FifoType, SocketType
- Implement serialization for device nodes (with rdev=0 for now)
- Implement serialization for named pipes and sockets
4. Document fragment and export table status
- Set fragTableStart to 0xFFFFFFFFFFFFFFFF (no fragments)
- Set exportTableStart to 0xFFFFFFFFFFFFFFFF (no export table)
All 21 tests continue to pass.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent da86e91 commit 653f572
1 file changed
Lines changed: 70 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
224 | 234 | | |
225 | 235 | | |
226 | 236 | | |
| |||
232 | 242 | | |
233 | 243 | | |
234 | 244 | | |
235 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
236 | 262 | | |
237 | | - | |
238 | | - | |
| 263 | + | |
| 264 | + | |
239 | 265 | | |
240 | 266 | | |
241 | 267 | | |
| |||
507 | 533 | | |
508 | 534 | | |
509 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
510 | 564 | | |
511 | 565 | | |
512 | 566 | | |
| |||
1181 | 1235 | | |
1182 | 1236 | | |
1183 | 1237 | | |
1184 | | - | |
1185 | | - | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
1186 | 1243 | | |
1187 | 1244 | | |
1188 | 1245 | | |
| |||
0 commit comments