summaryrefslogtreecommitdiff
path: root/libthreads/cthreads.h
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2012-09-07 18:24:20 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-09-30 19:42:26 +0200
commitb8b7940234ed7b06cb81f49210b165c47d44a1f1 (patch)
tree62b0ad0ed9fe5cde949f232f98ffcb091dbeea08 /libthreads/cthreads.h
parent0cf1f48d64813fa46d83442ade4c94958ad4300b (diff)
tmpfs: add --size
Add the possibility to specify the size with the --size parameter; this makes tmpfs more usable in fstab or Linuxish mount invocations, since the size in such cases is a mount -o option, which gets translated to a --foo translator argument. The old way (specifying the size as the first argument) is left there; although, if --size is passed then the first argument must be "tmpfs", as it is what is passed by fstab/mount. * tmpfs/tmpfs.c (OPT_SIZE): New macro. (options): Add the "size" option. (parse_opt): Use -1 to indicate when SIZE is not yet set. <OPT_SIZE>: Handle case. <ARGP_KEY_NO_ARGS>: Error out only when SIZE is not set. <ARGP_KEY_ARGS>: Error out when SIZE is set and the argument is not "tmpfs".
Diffstat (limited to 'libthreads/cthreads.h')
0 files changed, 0 insertions, 0 deletions