summaryrefslogtreecommitdiff
path: root/tests/misc/test-diag.pl
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2015-09-18 13:29:17 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2015-09-18 13:29:17 +0200
commitd4a22dff9b4cd8b05cb01e654fa84b189d3b5721 (patch)
treef9af93dd8a618a70c85b4baf2f7e3e52145de076 /tests/misc/test-diag.pl
parente4d8c99436587b5186b145b6654edaa00eb5a8b8 (diff)
downloadcoreutils-d4a22dff9b4cd8b05cb01e654fa84b189d3b5721.tar.xz
du: avoid to stat all mount points if possible
du calls stat for each mount point at startup. This would block or even make du fail if stat for an unrelated mount point hangs. The result is not needed in the normal case anyway and therefore should be avoided. Issue introduced in commit v8.19-2-gcf7e1b5. * src/du.c (fill_mount_table): Move function up as it's not used ... (mount_point_in_fts_cycle): ... here, i.e., the DI_MNT set is initialized and filled only iff FTS has detected a directory cycle. (main): Remove the initialization and filling of the DI_MNT set here, and free the DI_MNT set only if it was used.
Diffstat (limited to 'tests/misc/test-diag.pl')
0 files changed, 0 insertions, 0 deletions