tmpfs documentation says:
"These parameters accept a suffix k, m or g for kilo, mega and giga and
can be changed on remount. The size parameter also accepts a suffix %
to limit this tmpfs instance to that percentage of your physical RAM:
the default, when neither size nor nr_blocks is specified, is size=50%"
I had started to modify my patch to verify if the size on UDEV_SIZE is
too few, but since tmpfs accepts % as suffix for size parameter it will
be a very ugly verification for a very little (and maybe unnecessary)
enhancement.
I was thinking to use:
df -m /dev | egrep '/dev$' | sed 's/ */ /g' | cut -d ' ' -f 2
instead of:
df -m /dev | tail -n 1 | awk '{print $2}'
because awk and is not on /bin, but egrep and sed is
And use:
--- cut ---
case $1 in
*M)
echo MEGA;
;;
*K)
echo KILO
;;
*%)
echo PERCENT
;;
esac
--- end ---
instead of:
[[ "86M" = *@(M|m) ]] && echo MEGA
because dash doesn't support pattern matching like bash does.
------
In summary, this approach will be very complicated, so I think is the wrong way
to do something simple. If this enhancement is really necessary I could live
with the previous (and bugged) approach that issues a mount error. Anyway,
leave as is it.
Bug status STILLS wontfix
Thanks Scott
--
udev init script should use partition size from /etc/default/tmpfs
https://bugs.launchpad.net/bugs/317161
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs