opt_segsize = 1000,
opt_width,
opt_stride,
+ opt_noatime,
};
char short_options[] = "-b:Vvh";
{"version", 0, 0, 'V'},
{"verbose", 0, 0, 'v'},
{"help", 0, 0, 'h'},
+ {"no-atime-file",0, 0, opt_noatime},
{0, 0, 0, 0}
};
long stride_bytes = 0;
long long device_bytes;
char *devname = NULL;
+ int create_atime = 1;
int opt;
int dev_fd;
struct lafs *lafs;
struct lafs_device *dev;
struct lafs_ino *ifile, *imfile, *rootdir, *orphans, *segmap;
+ struct lafs_ino *atimefile = NULL;
while ((opt = getopt_long(argc, argv,
short_options, long_options,
case opt_width:
get_num(&width, optarg, "device width");
break;
+ case opt_noatime:
+ create_atime = 0;
+ break;
case 1:
if (devname == NULL) {
ifile = lafs_get_itable(lafs);
imfile = lafs_add_inode(ifile, 1, TypeInodeMap);
rootdir = lafs_add_inode(ifile, 2, TypeDir);
+ if (create_atime)
+ atimefile = lafs_add_inode(ifile, 3, TypeAccessTime);
rootdir->md.file.linkcount = 2;
rootdir->md.file.mode = 0755;
rootdir->md.file.parent = 2;