diff options
author | Alec Warner <antarus@gentoo.org> | 2018-12-17 23:06:36 -0500 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2018-12-17 23:06:36 -0500 |
commit | d3a1a8d62cebfe0258b94e9562c05c77d3377a7a (patch) | |
tree | 5c424003b2b3e6d487eeb62cb0ed62bcb0be2d2b /src | |
parent | Fully Qualify paths. (diff) | |
download | antarus-d3a1a8d62cebfe0258b94e9562c05c77d3377a7a.tar.gz antarus-d3a1a8d62cebfe0258b94e9562c05c77d3377a7a.tar.bz2 antarus-d3a1a8d62cebfe0258b94e9562c05c77d3377a7a.zip |
Reserve enough inodes in the tmpfs.
Signed-off-by: Alec Warner <antarus@gentoo.org>
Diffstat (limited to 'src')
-rwxr-xr-x | src/infra.gentoo.org/rsync-node/wrap_rsync.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/infra.gentoo.org/rsync-node/wrap_rsync.sh b/src/infra.gentoo.org/rsync-node/wrap_rsync.sh index 778fe5a..60f7687 100755 --- a/src/infra.gentoo.org/rsync-node/wrap_rsync.sh +++ b/src/infra.gentoo.org/rsync-node/wrap_rsync.sh @@ -4,8 +4,8 @@ # Then execute rsyncd; we will start serving once the sync completes. # Then keep syncing in the background every 30m. -# We keep the trees in a TMPFS. -mount -t tmpfs -o size=1300m tmpfs "${DEST_DIR}" +# We keep the trees in a TMPFS, we need a million inodes and 1300MB of space. +mount -t tmpfs -o size=1300m,nr_inodes=1000000 tmpfs "${DEST_DIR}" if [[ $? -ne 0 ]]; then logger -t rsync "Init: Failed to create tmpfs: ${DEST_DIR}" return 1 |