Bug#851492: [systemd] tmpfs size mount option not correct when expressed in %

Pascal Dormeau pdormeau at free.fr
Sun Jan 15 15:14:51 GMT 2017


Package: systemd
Version: 232-10
Severity: normal

Dear maintainer,

Systemd does not mount tmpfs file systems with the correct size when
the size is expressed in % of physical RAM in /etc/fstab.

I guess it does not read at all the % character, and the size is read in
bytes. size=5% or size=10% results into file systems with a 4 k
size (man mount says "The size is given in bytes, and rounded up  to
entire  pages").

When expressed in k, m, g, the size is correct.

'mount -o remount' results in the correct size even if it is expressed
in % in /etc/fstab

Best regards

Pascal Dormeau


--- System information. ---
Architecture: 
Kernel:       Linux 4.8.0-2-amd64

Debian Release: stretch/sid
  990 unstable        httpredir.debian.org 

--- Package information. ---
Depends                           (Version) | Installed
===========================================-+-=========================
libacl1                       (>= 2.2.51-8) | 2.2.52-3
libapparmor1              (>= 2.9.0-3+exp2) | 2.11.0-1
libaudit1                      (>= 1:2.2.1) | 1:2.6.7-1
libblkid1                       (>= 2.19.1) | 2.29-1
libc6                             (>= 2.17) | 2.24-8
libcap2                         (>= 1:2.10) | 1:2.25-1
libcryptsetup4                 (>= 2:1.4.3) | 2:1.7.3-3
libgcrypt20                      (>= 1.7.0) | 1.7.5-3
libgpg-error0                     (>= 1.14) | 1.26-1
libidn11                          (>= 1.13) | 1.33-1
libip4tc0                                   | 1.6.0+snapshot20161117-4
libkmod2                            (>= 5~) | 23-2
liblz4-1                      (>= 0.0~r127) | 0.0~r131-2
liblzma5           (>= 5.1.1alpha+20120614) | 5.2.2-1.2
libmount1                       (>= 2.26.2) | 2.29-1
libpam0g                      (>= 0.99.7.1) | 1.1.8-3.5
libseccomp2                      (>= 2.3.1) | 2.3.1-2.1
libselinux1                      (>= 2.1.9) | 2.6-3
libsystemd0                      (= 232-10) | 232-10
util-linux                      (>= 2.27.1) | 2.29-1
mount                             (>= 2.26) | 2.29-1
adduser                                     | 3.115


Package Status       (Version) | Installed
==============================-+-===========
udev                           | 232-10
dracut                         | 
initramfs-tools                | 0.126


Recommends          (Version) | Installed
=============================-+-===========
libpam-systemd                | 232-10
dbus                          | 1.10.14-1


Suggests               (Version) | Installed
================================-+-===========
systemd-ui                       | 
systemd-container                | 
policykit-1                      | 0.105-17



--- Output from package bug script ---
/usr/bin/xterm: cannot load font
'-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'



More information about the Pkg-systemd-maintainers mailing list