coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] Please document the fact that df ignores reserved space


From: Jean-Michel Vourgère
Subject: Re: [patch] Please document the fact that df ignores reserved space
Date: Tue, 15 Dec 2020 16:55:12 +0100

My apologies for the negative twist. Here's another try:

df honors the reserved space: In some circumstances, like the use of tune2fs -m 
in a extfs partition, a privileged user may be able to write in a seemingly 
100% full volume.

As a user, I would have appreciated the mention. I believed it's worth 
mentioning. Whatever the wording.

On Tue, 15 Dec 2020 15:12:14 +0000, Pádraig Brady wrote:
> On 15/12/2020 11:56, Jean-Michel Vourgère wrote:
>     Hello
>     
>     I was surprised to discover that df ignores the reserved space set by
>     tune2fs -m It's nice, but it would be nicer still to document it.
> 
> I think you're saying that df honors the reserved space,
> and reports the space available to the current user.
> This would be file system specific though.
> Also there are many other considerations that
> may impact the amount of free space available
> (quotas, compression, ...).
> I'm not sure it's appropriate to mention a single consideration,
> that may not be true for all file systems.
> 
> cheers,
> Pádraig.
--- coreutils-8.32.orig/man/df.x
+++ coreutils-8.32/man/df.x
@@ -26,4 +26,9 @@ file system containing the device node.
 cannot show the space available on unmounted file systems, because on
 most kinds of systems doing so requires very nonportable intimate
 knowledge of file system structures.
+.PP
+.B df
+honors the reserved space: In some circumstances, like the use of tune2fs -m
+in a extfs partition, a privileged user may be able to write in a seemingly
+100% full volume.
 .SH OPTIONS

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]