Reworking after run through with Paolo.
[libguestfs-talks.git] / 2019-kvm-forum / 8100-tradeoff-automatic-v-explicit.html
1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
2 <link rel="stylesheet" href="style.css" type="text/css"/>
3 <script src="code.js" type="text/javascript"></script>
4
5 <h1>Tradeoff: Automatic or explicit</h1>
6
7 <p>
8   When should resize happen? Starting with a 1k image:
9
10   <p>
11     Automatic (like file system):
12     <br>NBD_CMD_WRITE(offset=0,len=2k) -> success, size now 2k
13   <p>
14     Explicit (like block device):
15     <br>NBD_CMD_WRITE(offset=0,len=2k) -> fails
16     <br>NBD_CMD_RESIZE(2k) -> success, size now 2k
17     <br>NBD_CMD_WRITE(offset=0,len=2k) -> success
18 </p>