Re: [PATCH] tmpfs.5: document size/blocks=0 and nr_inodes=0 <=> unlimited

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

 



Hi наб,

On 2023-08-11 15:41, наб wrote:
> Bitten by this again. Behaviour blames back to at least 2005
> (so probably original to shmem.c), documented upstream in tmpfs.txt.

This is a bit unclear to me.  I guess you refer to the Linux kernel as
"upstream", but the Linux kernel repository doesn't have a tmpfs.txt
file.  I recall that they moved their .txt docs to .rst, so would you
please share the full link to the .txt file that you refer?  That way
you can ask git(1) to show the history of that file even if it doesn't
exist now.  It would also be useful to mention the new location of the
file, and that it has moved.

Also important: please share a small shell session that shows this
behavior, so that it's easier to review.  Since you were bitten, I
guess you'll have some shell session that would reproduce this, no?

Thanks,
Alex

> 
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx>
> ---
>  man5/tmpfs.5 | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/man5/tmpfs.5 b/man5/tmpfs.5
> index cdd5f2fd8..0e5bc853f 100644
> --- a/man5/tmpfs.5
> +++ b/man5/tmpfs.5
> @@ -51,6 +51,8 @@ .SS Mount options
>  .BR size "=\fIbytes\fP"
>  Specify an upper limit on the size of the filesystem.
>  The size is given in bytes, and rounded up to entire pages.
> +The limit is removed if the size is
> +.BR 0 .
>  .IP
>  The size may have a
>  .BR k ,
> @@ -89,6 +91,8 @@ .SS Mount options
>  The maximum number of inodes for this instance.
>  The default is half of the number of your physical RAM pages, or (on a
>  machine with highmem) the number of lowmem RAM pages, whichever is smaller.
> +The limit is removed if the number is
> +.BR 0 .
>  .IP
>  Inodes may be specified with
>  .BR k ,

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux