Skip Menu |
 

This queue is for tickets about the Filesys-Df CPAN distribution.

Report information
The Basics
Id: 118220
Status: new
Priority: 0/
Queue: Filesys-Df

People
Owner: Nobody in particular
Requestors: debian.axhn [...] manchmal.in-ulm.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-2.45 tagged_above=-99.9 required=10 tests=[AWL=-0.548, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001] autolearn=ham
Content-Disposition: inline
X-Spam-Flag: NO
Content-Type: multipart/signed; boundary="lCAWRPmW1mITcIfM"; micalg="pgp-sha512"; protocol="application/pgp-signature"
Message-ID: <1475349233 [...] msgid.manchmal.in-ulm.de>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.45
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id C8C232402F4 for <cpan-bug+filesys-df [...] hipster.bestpractical.com>; Sat, 1 Oct 2016 15:18:43 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5nNkEr65iUZM for <cpan-bug+filesys-df [...] hipster.bestpractical.com>; Sat, 1 Oct 2016 15:18:42 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3C95924026B for <bug-filesys-df [...] rt.cpan.org>; Sat, 1 Oct 2016 15:18:41 -0400 (EDT)
Received: (qmail 12862 invoked by alias); 1 Oct 2016 19:18:41 -0000
Received: from manchmal.in-ulm.de (HELO manchmal.in-ulm.de) (217.10.9.201) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sat, 01 Oct 2016 12:18:37 -0700
Delivered-To: cpan-bug+filesys-df [...] hipster.bestpractical.com
User-Agent: Mutt/1.5.23 (2014-03-12)
Subject: [Patch] "user_blocks" calculation fails for empty file systems
Return-Path: <debian.axhn [...] manchmal.in-ulm.de>
X-RT-Mail-Extension: filesys-df
X-Original-To: cpan-bug+filesys-df [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Sat, 1 Oct 2016 21:18:23 +0200
X-Spam-Level:
To: bug-filesys-df [...] rt.cpan.org
From: Christoph Biedl <debian.axhn [...] manchmal.in-ulm.de>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 659
Download (untitled) / with headers
text/plain 659b
Hello, Filesys::Df 0.92 does not provide a user_blocks record if the file system is completely empty (and there are no reserved blocks either), or in other words: If bfree == bavail. Fix is trivial, see below. Christoph --- /usr/lib/x86_64-linux-gnu/perl5/5.20/Filesys/Df.pm +++ /usr/lib/x86_64-linux-gnu/perl5/5.20/Filesys/Df.pm @@ -73,7 +73,7 @@ #### There is a reserved amount for the su #### or there are disk quotas - if($bfree > $bavail) { + if($bfree >= $bavail) { $user_blocks = $blocks - ($bfree - $bavail); $user_used = $user_blocks - $bavail; if($bavail < 0) {
Content-Description: Digital signature
Content-Type: application/pgp-signature; name="signature.asc"
Content-Length: 819
Download signature.asc
application/pgp-signature 819b

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.