Age | Commit message (Collapse) | Author |
|
|
|
up out of if-block -- code in the else-block depends on it too.
|
|
|
|
replace with new variable output_block_size. All uses changed.
(long_options, usage, main): Add --block-size.
(main, decode_switches): Use new human_block_size function to
initialize output block size consistently with other programs.
(print_header, show_dev): Shrink some columns and expand
others, to squeeze in support for today's larger filesystems.
(print_header): Print output block size using power-of-1024 SI format.
(df_readable): Coalesce last two args into one, for convenience.
All callers changed.
(main): Remove check for portable output format and larger
or human-readable block sizes.
From Paul Eggert.
|
|
|
|
and available columns from 7 to 8.
|
|
|
|
assume the original value corresponding to fsu_bavail was negative.
|
|
last column of `df -i' output. From Andreas Schwab.
|
|
with the rest of the output.
|
|
(show_dev): If a value consists entirely of 1 bits, or is derived
from some other value that consists entirely of 1 bits, report "-".
Check inode and block counts more carefully for plausibility,
to avoid arithmetic overflow when computing percentages.
|
|
Include "closeout.h".
|
|
just like `fsu.fsu_blocks == 0' as an indicator that usage information
is invalid. This happens with Solaris-5.5.1 CD-ROM partitions.
|
|
not e.g., -a) back up to precede first print stmt.
|
|
|
|
blocks_used etc. and blocks_percent_used,
inodes_used etc. and inodes_percent_used into respective branches
of the `if (inode_format)' statement where they're actually used.
|
|
("human.h"): Include.
(LONGEST_HUMAN_READABLE_1K_BYTE_BLOCKS): Remove.
(human_readable_base): Renamed from human_blocks; value is now
zero or positive integer, not just zero or nonzero.
(output_units): New variable;
replaces booleans kilobyte_blocks and megabyte_blocks.
(long_options): Add --si or -H.
(print_header): Adjust to renamed option variables.
(human_readable_1k_blocks): Remove.
(show_dev): Count blocks using uintmax_t, not long.
Calculate percentages using double, not long; this still isn't
perfect as it suffers double rounding, but it's more likely to
round correctly in practice than using long did.
Adjust to renamed option variables.
Use new human_readable library function to format uintmax_t values.
(usage): Add -H, --si.
(main): Adjust to renamed option variables.
Use -H if BLOCKSIZE is SI. Add -H.
|
|
|
|
|
|
|
|
be more consistent. Declare I in inner scopes.
|
|
|
|
*) 0' as last parameter in getopt_long call.
|
|
Patch from Kaveh Ghazi.
|
|
with Solaris. From Peter Eriksson.
|
|
instead of open-coding them. When given FILE containing no slashes,
chdir to the directory containing it (the current directory) rather
than to `..'.
|
|
"save-cwd.h": New include.
(show_dev): Deal with null values for DISK and FSTYPE,
including interpreting special 0 errno return from get_fs_usage.
(show_point): Don't fail if we can't find a mount entry for POINT,
just call show_dev with 0 values and let it fail if necessary.
(main): Require a non-zero MOUNT_LIST only if showing all filesystems.
(find_mount_point): New function.
(xgetcwd): New declaration.
All from Miles.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Use STREQ here instead of strcmp(...) == 0.
|
|
all forward dcls. Remove forward dcls.
Declare parameters const as appropriate.
|
|
|
|
Remove prototype. Declare parameter FSTYPE to be const.
(excluded_fstype): Likewise.
(main): Fail with a diagnostic if both --human-readable and
--portability are used.
Likewise if --megabytes and --portability are used.
|
|
(usage): Reflect the change.
|
|
|
|
|
|
|
|
|
|
|
|
(main): Use PACKAGE_VERSION instead of version_string.
|
|
bindtextdomain, and textdomain.
|
|
when the user specifies --print-type or -T. From Michael Rendell
<michael@cs.mun.ca>
|
|
|
|
(human_readable_1k_blocks): New function.
(print_header): Honor new options.
(show_dev): Honor new options.
Add ifdef'd-out code to avoid printing lines for mount points that
match ^/auto/.* and ^/tmp_mnt.*. Rather than hard-coding those
two prefixes, the code should allow the user to specify a regular
expression. From Larry McVoy (lm@sgi.com).
(human_readable_1k_blocks): Likewise
(usage): Update usage message to reflect additions.
|