20 const char *mount_opts
[] =
24 [READ_SIZE_OPTION
] = "rsize",
25 [WRITE_SIZE_OPTION
] = "wsize",
30 main (int argc
, char *argv
[])
32 char *subopts
, *value
;
35 while ((opt
= getopt (argc
, argv
, "at:o:")) != -1)
46 while (*subopts
!= '\0')
47 switch (getsubopt (&subopts
, mount_opts
, &value
))
55 case READ_SIZE_OPTION
:
58 read_size
= atoi (value
);
60 case WRITE_SIZE_OPTION
:
63 write_size
= atoi (value
);
66 /* Unknown suboption. */
67 printf ("Unknown suboption `%s'\n", value
);
75 /* Do the real work. */