Lines Matching defs:opts

73 static struct options opts;
302 opts.count = 1;
307 if (!opts.device) {
308 opts.device = argv[optind-1];
310 opts.device = NULL;
316 opts.info++; /* and fall through */
319 opts.directory++;
320 opts.logfile++;
321 opts.mft++;
322 opts.pagefile++;
323 opts.tails++;
324 opts.unused++;
325 opts.undel++;
328 if (!opts.bytes) {
329 if (!parse_list(optarg, &opts.bytes))
336 if (opts.count == 1) {
338 opts.count = strtol(optarg, &end, 0);
346 opts.directory++;
349 opts.force++;
355 opts.logfile++;
358 opts.mft++;
361 opts.noaction++;
364 opts.pagefile++;
367 opts.quiet++;
371 opts.undel++;
374 opts.tails++;
377 opts.unused++;
380 opts.unused_fast++;
383 opts.verbose++;
407 if (opts.bytes && opts.undel) {
414 opts.verbose++;
416 opts.quiet++;
419 opts.quiet = 0;
421 if (opts.device == NULL) {
427 if (opts.quiet && opts.verbose) {
433 if (opts.info && (opts.unused || opts.tails || opts.mft || opts.directory)) {
439 if ((opts.count < 1) || (opts.count > 100)) {
445 if (!opts.bytes) {
446 opts.bytes = malloc(2 * sizeof(int));
447 if (opts.bytes) {
448 opts.bytes[0] = 0;
449 opts.bytes[1] = -1;
456 if (!opts.directory && !opts.logfile && !opts.mft &&
457 !opts.pagefile && !opts.tails && !opts.unused &&
458 !opts.unused_fast && !opts.undel) {
459 opts.info = 1;
895 if (opts.verbose)
1169 if (opts.verbose > 1)
1174 if (opts.verbose > 1)
1194 if ((opts.verbose > 1) && (wiped != -1))
1267 if (opts.verbose > 2)
1275 if (opts.verbose > 2)
1284 if (opts.verbose > 2)
1789 if ( !opts.noaction ) {
1814 if (!opts.noaction) {
1828 if (!opts.noaction) {
1861 if (!opts.noaction) {
1882 if (!opts.noaction) {
1896 if ( !opts.noaction ) {
1934 if (!opts.noaction) {
1972 if ( !opts.noaction ) {
1991 if (!opts.noaction) {
2103 if (opts.noaction)
2108 if (opts.unused)
2110 if (opts.unused_fast)
2112 if (opts.tails)
2114 if (opts.mft)
2116 if (opts.directory)
2118 if (opts.logfile)
2120 if (opts.pagefile)
2122 if (opts.undel)
2126 if (opts.bytes) {
2127 for (i = 0; opts.bytes[i] >= 0; i++)
2128 ntfs_log_quiet("0x%02x ", opts.bytes[i]);
2131 if (opts.undel)
2135 if (opts.count > 1)
2136 ntfs_log_quiet("%s will repeat these operations %d times.\n", EXEC_NAME, opts.count);
2165 if (!opts.info)
2168 if (opts.info || opts.noaction)
2170 if (opts.force)
2173 vol = utils_mount_volume(opts.device, flags);
2177 if ((vol->flags & VOLUME_IS_DIRTY) && !opts.force)
2180 if (opts.info) {
2182 opts.count = 1;
2183 } else if (opts.noaction) {
2190 if ((act == act_wipe) && !opts.force) {
2195 for (i = 0; opts.bytes[i] >= 0; i++) {
2199 npasses = opts.count;
2208 for (i = 0; i < opts.count; i++) {
2213 for (j = 0; byte = opts.bytes[j], byte >= 0; j++) {
2215 if (opts.directory) {
2223 if (opts.tails) {
2231 if (opts.logfile) {
2239 if (opts.mft) {
2247 if (opts.pagefile) {
2255 if (opts.unused || opts.unused_fast) {
2256 if (opts.unused_fast)
2267 if (opts.undel) {
2281 if (opts.noaction || opts.info)
2294 if (opts.bytes)
2295 free(opts.bytes);