Lines Matching defs:file

6  *	This program examines the Windows log file of an ntfs partition
10 * It can also display the contents of the log file in human-readable
11 * text, either from a full partition or from the log file itself.
41 * distribution in the file COPYING); if not, write to the Free Software
112 FILE *file;
156 int opts; /* sync the file system */
373 got = !fseek(ctx->file, loclogblk(ctx, rnum), 0)
375 1, ctx->file) == 1);
1363 printf(" (file in use)\n");
1406 printf(" create file name, attr 0x%x\n",attr);
1409 showname(" file ",
1530 showname(" file ",&buf[base + 82],
1595 /* consistency of file name length */
1603 showname(" file (dir) ",
1607 showname(" file ",
1611 printf(" file inode %lld\n",
1614 printf(" file size %lld\n",
2936 /* rph is left unchanged for a wiped out log file */
2943 printf("** The log file has been wiped out\n");
2963 printf("** The log file has been obsoleted by chkdsk\n");
2967 printf("** The log file has been wiped out\n");
3164 fseek(ctx->file,0L,2);
3165 size = ftell(ctx->file);
3170 * or either is not a power of 2 we cannot handle this log file.
3187 /* estimate cluster size from log file size (unreliable) */
3202 printf("Log file size %lld bytes, cluster size %ld\n",
3233 fprintf(stderr,"** Could not read the log file\n");
3236 if (ctx->file
3238 printf("* Assuming a log file copy\n");
3243 fprintf(stderr,"** Not an NTFS image or log file\n");
3260 * Open the volume (or the log file) and gets its parameters
3278 * when trying to mount a log file.
3280 * unlikely to be a file.
3283 ctx->file = fopen(device_name, "rb");
3284 if (ctx->file) {
3285 got = fread(boot.buf,1,1024,ctx->file);
3289 /* This appears to be a log file */
3293 fclose(ctx->file);
3297 fclose(ctx->file);
3301 /* Not a log file, assume an ntfs device, mount it */
3302 ctx->file = (FILE*)NULL;
4416 fclose(ctx.file);