summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--lib/MDK/Common/System.pm2
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index fc48e12..39329a9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Version 1.2.23 - 14 December 2009, by Pascal Terjan
+
+- get available size of requested partition not / in df
+
Version 1.2.22 - 1 December 2009, by Thierry Vignaud
- use a more portable df()
diff --git a/lib/MDK/Common/System.pm b/lib/MDK/Common/System.pm
index bd13629..776c888 100644
--- a/lib/MDK/Common/System.pm
+++ b/lib/MDK/Common/System.pm
@@ -308,7 +308,7 @@ sub syscall_ {
sub df {
my ($mntpoint) = @_;
require Filesys::Df;
- my $df = Filesys::Df::df("/", 1024); # ask 1kb values
+ my $df = Filesys::Df::df($mntpoint, 1024); # ask 1kb values
@$df{qw(blocks bfree)};
}