From 1323e6dee1af5f3fd5616ba2b3ce51409f572432 Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Fri, 19 Aug 2016 19:50:13 +0200 Subject: [PATCH] =?UTF-8?q?commandes=20pour=20g=C3=A9rer=20un=20syst=C3=A8?= =?UTF-8?q?me=20de=20fichier=20temporaire=20en=20m=C3=A9moire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 7e4a497..e89619e 100644 --- a/Makefile +++ b/Makefile @@ -52,3 +52,17 @@ tag: submodules-tag upgrade: nixos-rebuild switch --upgrade --fallback --show-trace +##--------- Gestion d'un système de fichier monté en mémoire + +tmpfs-create: + mkdir -p /mnt/tmpfs + +tmpfs-mount: tmpfs-create + mount -t tmpfs -o size=10G tmpfs /mnt/tmpfs + +tmpfs-umount: + umount /mnt/tmpfs + +tmpfs-destroy: tmpfs-umount + rmdir /mnt/tmpfs +