<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/df.c, branch v8.22</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.22</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.22'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2013-12-04T13:17:17Z</updated>
<entry>
<title>df: handle bind mounts when processing device nodes</title>
<updated>2013-12-04T13:17:17Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-12-04T00:50:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2091f44993c4d0ad16cbe272c247bb452ae74216'/>
<id>urn:sha1:2091f44993c4d0ad16cbe272c247bb452ae74216</id>
<content type='text'>
* src/df.c (get_disk): Use the same heuristic used in
get_point() to select the shortest file system mount point,
in an attempt to show the base mounted file system.
* NEWS: Mention the bug fix.
</content>
</entry>
<entry>
<title>df: dereference symlinks to disk device nodes</title>
<updated>2013-12-04T13:16:27Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-12-03T23:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=33660b4973baf66423207615bef0d277ca7a5938'/>
<id>urn:sha1:33660b4973baf66423207615bef0d277ca7a5938</id>
<content type='text'>
This is so the matching for the device is done on the canonical name
of the disk node, rather than on the path of the symlink.
In any case the user will generally want to use the symlink target.

* src/df.c (get_disk): Canonicalize the passed file,
before matching against the list of mounted file system devices.
Note we pass the original symlink name to the "file" output field,
as the symlink target is usually available through the "source" field.
* tests/df/df-symlink.sh: Test the dereferencing operation.
* tests/local.mk: Mention the new test.
* NEWS: Mention the fix.
Reported by Ondrej Oprala
</content>
</entry>
<entry>
<title>maint: avoid '%s' quoting notation in diagnostic messages</title>
<updated>2013-12-03T09:03:51Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2013-12-03T07:02:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f65a3841606fcbc256c5dfcb7bd3ef90a7adec10'/>
<id>urn:sha1:f65a3841606fcbc256c5dfcb7bd3ef90a7adec10</id>
<content type='text'>
Add a new rule to ensure the use of quote() instead of '%s' or `%s'
in format strings of diagnostics messages.

* cfg.mk (sc_prohibit_quotes_notation): Add rule.
* TODO: Remove the entry regarding the '%s' notation.
* src/mkfifo.c (main): Remove the offending and in this case even
duplicate quoting in the format string of the error diagnostic.
* src/mknod.c (main): Likewise.
* src/df.c (decode_output_arg): Change two invocations of error()
according to the above new rule.
* src/numfmt.c: Fix numerous wrong quote notations to fit the above
new rule, mostly in internal debugging diagnostic messages.
</content>
</entry>
<entry>
<title>df: remove long-obsolescent --megabytes option</title>
<updated>2013-11-29T12:07:47Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2013-11-29T12:07:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=64520354bbd36614d8091dcf654c2e69e686bc64'/>
<id>urn:sha1:64520354bbd36614d8091dcf654c2e69e686bc64</id>
<content type='text'>
This option has been undocumented for 12 years [1], and warned
about for a year [2].

[1] commit FILEUTILS-4_1_4-23-gd177203
[2] commit v8.17-43-g453ce92

* src/df.c (MEGABYTES_OPTION): Remove.
(long_options): Remove "megabytes" element.
(main): In the option parsing loop, remove the MEGABYTES_OPTION case.
* NEWS: Mention the change.
</content>
</entry>
<entry>
<title>df: add --output=file to directly output specified arguments</title>
<updated>2013-11-27T01:39:11Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-11-22T02:12:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=799e10f3619ea7949a4f606b2f29b662daf31e3c'/>
<id>urn:sha1:799e10f3619ea7949a4f606b2f29b662daf31e3c</id>
<content type='text'>
* src/df.c (usage): Document the new 'file' --output field.
(get_dev): Add a new parameter to pass the specified
argument from the command line through.  Use '-' if a
command line parameter is not being used.
* doc/coreutils.texi (df invocation): Describe the new 'file' field.
* tests/df/df-output.sh: Adjust all fields test, and
add a specific test for --output=file.
* NEWS: Mention the new feature.
</content>
</entry>
<entry>
<title>df: fix "blocks" translation in header</title>
<updated>2013-08-28T23:23:32Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-08-09T04:25:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=167422f32a2bc2ad286173d6eec936568d2f2f32'/>
<id>urn:sha1:167422f32a2bc2ad286173d6eec936568d2f2f32</id>
<content type='text'>
* src/df.c (get_header): Get the translation of "blocks" here,
rather than just marking the string for translation.
Fixes http://bugs.gnu.org/15054
</content>
</entry>
<entry>
<title>doc: more semicolons instead of periods in option descriptions</title>
<updated>2013-08-05T00:01:10Z</updated>
<author>
<name>Benno Schulenberg</name>
<email>bensberg@justemail.net</email>
</author>
<published>2013-08-03T08:38:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=da398ae5dfa43efda48310899c24242da4764f44'/>
<id>urn:sha1:da398ae5dfa43efda48310899c24242da4764f44</id>
<content type='text'>
Also slightly rephrase some descriptions for extra clarity, and
add more consistent indentation.

* src/df.c (usage): Semicolon, no final period.
* src/du.c (usage): Likewise, plus indentation and clarifying words.
* src/ls.c (usage): Semicolon, rephrasings, added parentheses for
clarity, indentation.
* src/rm.c (usage): Semicolons.
* src/tail.c (usage): Adjust -f description to prefer explanatory
language instead of option syntax.
</content>
</entry>
<entry>
<title>df: reduce memory usage when filtering mount entries</title>
<updated>2013-07-11T12:44:24Z</updated>
<author>
<name>Anton Ovchinnikov</name>
<email>revolver112@gmail.com</email>
</author>
<published>2013-07-11T12:44:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3ebc58cc4370567be7301e02b661a2fe5478d86c'/>
<id>urn:sha1:3ebc58cc4370567be7301e02b661a2fe5478d86c</id>
<content type='text'>
Avoid Valgrind reports of "definitely lost" items
and while at it, free all discarded mount entries
to minimize the amount of memory used.

* src/df.c (filter_mount_list): Use the newly exported
free_mount_entry() from gnulib to free all mount entries
as they're discarded.
</content>
</entry>
<entry>
<title>maint: adjust indentation in df.c</title>
<updated>2013-07-10T23:23:19Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-07-09T01:47:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=75c090931c164d31c57ff4bccf923f4b765c2bb2'/>
<id>urn:sha1:75c090931c164d31c57ff4bccf923f4b765c2bb2</id>
<content type='text'>
* src/df.c: Adjust indentation and spacing with has
gotten quite out of line in a couple of places.
</content>
</entry>
<entry>
<title>df: fix mount list processing with unstatable mount dirs</title>
<updated>2013-07-09T01:36:27Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-07-08T23:46:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=616fa9c7b335117243c0c157a6c45445e20fdfa0'/>
<id>urn:sha1:616fa9c7b335117243c0c157a6c45445e20fdfa0</id>
<content type='text'>
* src/df.c (filter_mount_list): Initialize devlist-&gt;dev_num correctly
when unable to stat() a mount point.  This will avoid possible invalid
deduplication done on the list due to use of uninitialized memory.
* tests/df/skip-duplicates.sh: Ensure this code path is exercised.
Also refactor the test to be table driven.
* NEWS: Mention the bug fix.
</content>
</entry>
</feed>
