|
Lines 14-19
Link Here
|
| 14 |
* $Id: unionimap.c,v 1.15 2005/08/09 17:57:56 cwright Exp $ |
14 |
* $Id: unionimap.c,v 1.15 2005/08/09 17:57:56 cwright Exp $ |
| 15 |
*/ |
15 |
*/ |
| 16 |
|
16 |
|
|
|
17 |
#include <inttypes.h> /* for PRIu64 */ |
| 18 |
|
| 17 |
#include "unionimap.h" |
19 |
#include "unionimap.h" |
| 18 |
|
20 |
|
| 19 |
/** |
21 |
/** |
|
Lines 243-249
Link Here
|
| 243 |
fprintf(stdout, "%-11s %-8s %-22s\n", "Unionfs", "FS Num", |
245 |
fprintf(stdout, "%-11s %-8s %-22s\n", "Unionfs", "FS Num", |
| 244 |
"Lower-Level"); |
246 |
"Lower-Level"); |
| 245 |
while (read(file, (void *)&entry, sizeof(struct fmapent))) { |
247 |
while (read(file, (void *)&entry, sizeof(struct fmapent))) { |
| 246 |
fprintf(stdout, "%-11lu %-8d %-22llu\n", inode++, |
248 |
fprintf(stdout, "%-11lu %-8d %-22" PRIu64 "\n", inode++, |
| 247 |
entry.fsnum, entry.inode); |
249 |
entry.fsnum, entry.inode); |
| 248 |
} |
250 |
} |
| 249 |
} |
251 |
} |
|
Lines 292-298
Link Here
|
| 292 |
while (read(file, (void *)&inode, sizeof(uint64_t))) { |
294 |
while (read(file, (void *)&inode, sizeof(uint64_t))) { |
| 293 |
unsigned long lowerlevel = 0; |
295 |
unsigned long lowerlevel = 0; |
| 294 |
if (inode) { |
296 |
if (inode) { |
| 295 |
fprintf(stdout, "%-11lu %-22llu\n", |
297 |
fprintf(stdout, "%-11lu %-22" PRIu64 "\n", |
| 296 |
lowerlevel++, inode); |
298 |
lowerlevel++, inode); |
| 297 |
} |
299 |
} |
| 298 |
} |
300 |
} |