nspawn: if we set up a loopback device, try to mount it with "discard"
authorLennart Poettering <lennart@poettering.net>
Tue, 25 Oct 2016 09:39:09 +0000 (11:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Nov 2016 17:39:49 +0000 (11:39 -0600)
commit2bce2acce869686d4417fa679eb794b5dc873110
treef83190091b1ee8ab895c550648375fa7113e2011
parentb5d7f1bbfa09f2713d72f76f89d2f830e382382b
nspawn: if we set up a loopback device, try to mount it with "discard"

Let's make sure that our loopback files remain sparse, hence let's set
"discard" as mount option on file systems that support it if the backing device
is a loopback.
src/nspawn/nspawn.c