20a21,23 > /* > * --only-full and --no-header options added by address@hidden */ > 70a74,79 > /* If nonzero, the percentage filled a filesystem must be to show up */ > static int show_percentage_filled; > > /* if nonzero, don't show the header line */ > static int no_header; > 140a150 > {"only-full", optional_argument, NULL, 'f'}, 143a154 > {"no-header", no_argument, NULL, 'N'}, 151a163,165 > if( no_header ) > return; > 292,312d305 < /* df.c reserved 5 positions for fstype, < but that does not suffice for type iso9660 */ < if (print_type) < { < int disk_name_len = (int) strlen (disk); < int fstype_len = (int) strlen (fstype); < if (disk_name_len + fstype_len + 2 < 20) < printf ("%s%*s ", disk, 18 - disk_name_len, fstype); < else if (!posix_format) < printf ("%s\n%18s ", disk, fstype); < else < printf ("%s %s", disk, fstype); < } < else < { < if ((int) strlen (disk) > 20 && !posix_format) < printf ("%s\n%20s", disk, ""); < else < printf ("%-20s", disk); < } < 348,360d340 < printf (" %*s %*s %*s ", < width, df_readable (0, total, < buf[0], input_units, output_units, < (posix_format < ? human_ceiling < : human_round_to_even)), < width, df_readable (negate_used, used, < buf[1], input_units, output_units, < human_ceiling), < width, df_readable (negate_available, available, < buf[2], input_units, output_units, < posix_format ? human_ceiling : human_floor)); < 394a375,411 > if( (int)pct < show_percentage_filled ) > return; > > /* df.c reserved 5 positions for fstype, > but that does not suffice for type iso9660 */ > if (print_type) > { > int disk_name_len = (int) strlen (disk); > int fstype_len = (int) strlen (fstype); > if (disk_name_len + fstype_len + 2 < 20) > printf ("%s%*s ", disk, 18 - disk_name_len, fstype); > else if (!posix_format) > printf ("%s\n%18s ", disk, fstype); > else > printf ("%s %s", disk, fstype); > } > else > { > if ((int) strlen (disk) > 20 && !posix_format) > printf ("%s\n%20s", disk, ""); > else > printf ("%-20s", disk); > } > > printf (" %*s %*s %*s ", > width, df_readable (0, total, > buf[0], input_units, output_units, > (posix_format > ? human_ceiling > : human_round_to_even)), > width, df_readable (negate_used, used, > buf[1], input_units, output_units, > human_ceiling), > width, df_readable (negate_available, available, > buf[2], input_units, output_units, > posix_format ? human_ceiling : human_floor)); > 764a782,784 > --only-full=PCT Show only filesystems that are greater than PCT\n\ > percentage filled\n\ > -N, --no-header Don't show the header line\n\ 792a813,814 > show_percentage_filled = -1; > no_header = 0; 800c822 < while ((c = getopt_long (argc, argv, "aiF:hHklmPTt:vx:", long_options, NULL)) --- > while ((c = getopt_long (argc, argv, "aiF:hHklmPTt:vx:f:N", long_options, NULL)) 860a883,891 > case 'f': > if( ! optarg ) > show_percentage_filled = 100; > else > show_percentage_filled = atoi(optarg); > break; > case 'N': > no_header = 1; > break;