FreeCalypso > hg > freecalypso-tools
comparison ffstools/tiffs-mkfs/output.c @ 707:805885936f62
tiffs-mkfs: fixed bug in location inode field
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Wed, 20 May 2020 17:32:35 +0000 |
| parents | 12ae93940467 |
| children | e2e4aed24522 |
comparison
equal
deleted
inserted
replaced
| 706:850bf712c1fc | 707:805885936f62 |
|---|---|
| 113 *dp++ = 0; | 113 *dp++ = 0; |
| 114 } | 114 } |
| 115 /* fill the inode */ | 115 /* fill the inode */ |
| 116 inp->size = htole16(size); | 116 inp->size = htole16(size); |
| 117 inp->type = type; | 117 inp->type = type; |
| 118 inp->location = htole32(location); | 118 inp->location = htole32(location >> 4); |
| 119 inp->sequence = htole16(ino - 1); | 119 inp->sequence = htole16(ino - 1); |
| 120 inp->updates = 0; | 120 inp->updates = 0; |
| 121 /* accounting */ | 121 /* accounting */ |
| 122 data_fill_level += size; | 122 data_fill_level += size; |
| 123 objects_in_block++; | 123 objects_in_block++; |
