]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Bump the max number of inodes for /dev to 128k
authorFranck Bui <fbui@suse.com>
Fri, 3 Dec 2021 10:23:36 +0000 (11:23 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 3 Dec 2021 14:23:25 +0000 (14:23 +0000)
Follow-up for 7d85383edbab73274dc81cc888d884bb01070bc2.

Apparently the previous limit set on the max number of inodes for /dev was too
small as a system with 4096 LUNs attached can consume up to 95k inodes for
symlinks:

  # /bin/df -i
  Filesystem                 Inodes  IUsed    IFree IUse% Mounted on
  devtmpfs                 49274377  95075 49179302    1% /dev

Hence this patch bumps the limit from 64k to 128k although the new limit is
still pretty arbitrary (that said, not sure if it really makes sense to put
such absolute limit number).

src/shared/mount-util.h

index d9fb801e6109582f8efd5bf831ad8c09436fb461..36221702976218a221e4cae4d06deb246e2a588b 100644 (file)
@@ -11,9 +11,9 @@
 #include "errno-util.h"
 #include "macro.h"
 
-/* 4MB for contents of regular files, 64k inodes for directories, symbolic links and device specials, using
+/* 4MB for contents of regular files, 128k inodes for directories, symbolic links and device specials, using
  * large storage array systems as a baseline */
-#define TMPFS_LIMITS_DEV             ",size=4m,nr_inodes=64k"
+#define TMPFS_LIMITS_DEV             ",size=4m,nr_inodes=128k"
 
 /* Very little, if any use expected */
 #define TMPFS_LIMITS_EMPTY_OR_ALMOST ",size=4m,nr_inodes=1k"