18 const char *mount_opts
[] =
22 [READ_SIZE_OPTION
] = "rsize",
23 [WRITE_SIZE_OPTION
] = "wsize"
27 main (int argc
, char *argv
[])
29 char *subopts
, *value
;
32 while ((opt
= getopt (argc
, argv
, "at:o:")) != EOF
)
43 while (*subopts
!= '\0')
44 switch (getsubopt (&subopts
, mount_opts
, &value
))
52 case READ_SIZE_OPTION
:
55 read_size
= atoi (value
);
57 case WRITE_SIZE_OPTION
:
60 write_size
= atoi (value
);
63 /* Unknown suboption. */
64 printf ("Unknown suboption `%s'\n", value
);
72 /* Do the real work. */