summaryrefslogtreecommitdiff
path: root/src/df.c
AgeCommit message (Collapse)Author
1998-03-19(show_dev): If fsu_bavail_top_bit_set is nonzero,Jim Meyering
assume the original value corresponding to fsu_bavail was negative.
1998-01-28(print_header): Change format to align heading overJim Meyering
last column of `df -i' output. From Andreas Schwab.
1998-01-14(print_header): Fix inode format header to line it upJim Meyering
with the rest of the output.
1998-01-05(df_readable): New function.Jim Meyering
(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.
1998-01-04(main, usage): Check for write error to stdout before exiting.Jim Meyering
Include "closeout.h".
1998-01-03(show_dev): Treat `fsu.fsu_bavail == (unsigned long) -1'Jim Meyering
just like `fsu.fsu_blocks == 0' as an indicator that usage information is invalid. This happens with Solaris-5.5.1 CD-ROM partitions.
1998-01-01(show_dev): Move check for 0-block device (and return ifJim Meyering
not e.g., -a) back up to precede first print stmt.
1997-12-31(show_dev): Print inode counts human readably.Jim Meyering
1997-12-31(show_dev): Move computation ofJim Meyering
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.
1997-11-30(<inttypes.h>): Include if HAVE_INTTYPES_H.Jim Meyering
("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.
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-02-09update copyrights for 1997Jim Meyering
1997-02-02(main): Rename local I to C to avoid shadowing and toJim Meyering
be more consistent. Declare I in inner scopes.
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-12-10(find_mount_point): Convert from K&R style header to ANSI.Jim Meyering
Patch from Kaveh Ghazi.
1996-11-30(main): Accept -F as a synonym for -t for compatibilityJim Meyering
with Solaris. From Peter Eriksson.
1996-11-28(find_mount_point): Use strip_trailing_slashes and dirnameJim Meyering
instead of open-coding them. When given FILE containing no slashes, chdir to the directory containing it (the current directory) rather than to `..'.
1996-11-28(find_mount_point): Use save_cwd/restore_cwd.Jim Meyering
"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.
1996-11-24(usage): Remove trailing pair of blanks.Jim Meyering
1996-11-23(usage): Alphabetize option descriptions the way sort -f would.Jim Meyering
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-08-31(usage): remove spurious trailing \n in puts.Jim Meyering
1996-08-29(usage): Tell where to report bugs.Jim Meyering
1996-06-19(selected_fstype, excluded_fstype, show_disk, main):Jim Meyering
Use STREQ here instead of strcmp(...) == 0.
1996-05-16Rearrange function definitions to precede respective uses to obviateJim Meyering
all forward dcls. Remove forward dcls. Declare parameters const as appropriate.
1996-05-16.Jim Meyering
1996-05-16(selected_fstype): Move definition to precede use.Jim Meyering
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.
1996-04-24Be consistent. Accept --human-readable, not --human.Jim Meyering
(usage): Reflect the change.
1996-04-24update Copyright years for 1996Jim Meyering
1996-04-22(usage): Reflect that now --no-sync is the default.Jim Meyering
1996-04-20No longer call sync by default.Jim Meyering
1996-03-24Update FSF's address.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1996-03-08(main): Tell read_filesystem_list that it should determine file system typeJim Meyering
when the user specifies --print-type or -T. From Michael Rendell <michael@cs.mun.ca>
1996-02-01(main): Decalare local, BS.Jim Meyering
1996-02-01(main): New options --human-readable (-h) and --megabytes (-m).Jim Meyering
(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.
1995-11-29Mark all translatable strings using po-mode.el.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-09Protect prototypes with __P.Jim Meyering
1995-11-09Protoize.Jim Meyering
1995-10-18(main): Fail if the same file system type was both selected and excluded.Jim Meyering
1995-10-05(show_point): Cast -2 to dev_t before assignment.Jim Meyering
1995-09-26(show_point): Ignore mtab entries with eitherJim Meyering
nonexistent mount points or with inconsistent device number. From Eirik Fuller <eirik@synopsys.com>.