Lines Matching refs:av
183 process_cache_command(int ac, char **av, struct mfi_ld_props *props)
188 if (strcmp(av[0], "all") == 0 || strcmp(av[0], "enable") == 0) {
195 if (strcmp(av[0], "none") == 0 || strcmp(av[0], "disable") == 0) {
200 if (strcmp(av[0], "reads") == 0) {
206 if (strcmp(av[0], "writes") == 0) {
214 if (strcmp(av[0], "write-back") == 0) {
219 if (strcmp(av[0], "write-through") == 0) {
223 if (strcmp(av[0], "bad-bbu-write-cache") == 0) {
228 if (strcmp(av[1], "enable") == 0)
230 else if (strcmp(av[1], "disable") == 0)
242 if (strcmp(av[0], "read-ahead") == 0) {
247 if (strcmp(av[1], "none") == 0)
249 else if (strcmp(av[1], "always") == 0)
251 else if (strcmp(av[1], "adaptive") == 0)
264 if (strcmp(av[0], "write-cache") == 0) {
269 if (strcmp(av[1], "enable") == 0)
271 else if (strcmp(av[1], "disable") == 0)
273 else if (strcmp(av[1], "default") == 0)
287 volume_cache(int ac, char **av)
305 if (mfi_lookup_volume(fd, av[1], &target_id) < 0) {
307 warn("Invalid volume: %s", av[1]);
371 av += 2;
374 consumed = process_cache_command(ac, av, &new);
379 av += consumed;
391 volume_name(int ac, char **av)
402 if (strlen(av[2]) >= sizeof(props.name)) {
414 if (mfi_lookup_volume(fd, av[1], &target_id) < 0) {
416 warn("Invalid volume: %s", av[1]);
429 mfi_volume_name(fd, target_id), props.name, av[2]);
431 strcpy(props.name, av[2]);
446 volume_progress(int ac, char **av)
465 if (mfi_lookup_volume(fd, av[1], &target_id) < 0) {
467 warn("Invalid volume: %s", av[1]);