extern int set_loop(const char *, const char *, unsigned long long, unsigned long long,
- const char *, int, int *);
+ const char *, int, int *, int, int);
extern int del_loop(const char *);
extern int is_loop_device(const char *);
+ extern int is_loop_autoclear(const char *device);
extern char * find_unused_loop_device(void);
extern int loopfile_used_with(char *devname, const char *filename, unsigned long long offset);
{ "options", 1, 0, 'o' },
{ "test-opts", 1, 0, 'O' },
{ "pass-fd", 1, 0, 'p' },
+ { "keybits", 1, 0, 'k' },
{ "types", 1, 0, 't' },
- { "bind", 0, 0, 128 },
- { "move", 0, 0, 133 },
+ { "bind", 0, 0, 'B' },
+ { "move", 0, 0, 'M' },
{ "guess-fstype", 1, 0, 134 },
- { "rbind", 0, 0, 135 },
+ { "rbind", 0, 0, 'R' },
{ "make-shared", 0, 0, 136 },
{ "make-slave", 0, 0, 137 },
{ "make-private", 0, 0, 138 },
initproctitle(argc, argv);
#endif
- while ((c = getopt_long (argc, argv, "afFhik:lL:no:O:p:rsU:vVwt:",
- while ((c = getopt_long (argc, argv, "aBfFhilL:Mno:O:p:rRsU:vVwt:",
++ while ((c = getopt_long (argc, argv, "aBfFhik:lL:Mno:O:p:rRsU:vVwt:",
longopts, NULL)) != -1) {
switch (c) {
case 'a': /* mount everything in fstab */