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