From b2904f03ae6461a550853e0b08a1660661f5f375 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 3 Mar 2013 21:20:09 +0100 Subject: [PATCH] vm/fstab: enable "discard" option for /rw This, in conjunction with support in xen-blkfront/back, shrinks private.img in dom0 with every removed file in VM. So no longer manual cleaning unused space with some dd + cp trickery. --- misc/fstab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/fstab b/misc/fstab index 67fc6dc..9c5101f 100644 --- a/misc/fstab +++ b/misc/fstab @@ -2,7 +2,7 @@ # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/dmroot / ext4 defaults,noatime 1 1 -/dev/xvdb /rw ext4 noauto,defaults 1 2 +/dev/xvdb /rw ext4 noauto,defaults,discard 1 2 /rw/home /home none noauto,bind,defaults 0 0 /dev/xvdc1 swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0