Lines Matching +full:default +full:- +full:trim
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
51 static int trim(const char *path, off_t offset, off_t length, bool dryrun, bool verbose);
68 while ((ch = getopt(argc, argv, "Nfl:o:qr:v")) != -1) in main()
79 if (expand_number(optarg, &usz) == -1 || in main()
102 default: in main()
110 * trim -f /dev/da0 -r rfile in main()
112 * This would trim whole device then error on non-existing file -r. in main()
115 * trim -f -- /dev/da0 -r rfile in main()
118 if (strcmp(argv[optind-1], "--") != 0) { in main()
120 if (argv[ch][0] == '-') in main()
125 argc -= optind; in main()
131 if (trim(fname, offset, length, dryrun, verbose) < 0) in main()
204 trim(const char *path, off_t offset, off_t length, bool dryrun, bool verbose) in trim() function
213 printf("trim %s offset %ju length %ju\n", in trim()
217 printf("dry run: add -f to actually perform the operation\n"); in trim()
228 warnx("%s: TRIM/UNMAP not supported by driver", path); in trim()
240 "usage: %s [-[lo] offset[K|k|M|m|G|g|T|t]] [-r rfile] [-Nfqv] device ...\n", in usage()