Commit 81938b7a authored by Philip Carns's avatar Philip Carns

operate on pre-existing file unless -s set

parent b5931e55
......@@ -24,8 +24,9 @@ void usage(int argc, char *argv[])
fprintf(stderr, "Usage: bake-mkpool [OPTIONS] <pmem_pool>\n");
fprintf(stderr, " pmem_pool is the path to the pmemobj pool to create\n");
fprintf(stderr, " [-s size] is the desired size of the pool (K, M, G, etc. suffixes allowed) (%lu is default)\n", PMEMOBJ_MIN_POOL);
fprintf(stderr, " [-s size] create pool file named <pmem_pool> with specified size (K, M, G, etc. suffixes allowed)\n");
fprintf(stderr, "Example: ./bake-mkpool -s 16M /dev/shm/foo.dat\n");
fprintf(stderr, "Note: if -s is not specified, then target file must already exist with desired size.\n");
......@@ -65,7 +66,6 @@ void parse_args(int argc, char *argv[], struct options *opts)
/* set default options */
memset(opts, 0, sizeof(*opts));
opts->pool_size = PMEMOBJ_MIN_POOL;
opts->pool_mode = 0664;
/* get options */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment