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>
5 <h1>Tradeoff: Automatic or explicit</h1>
8 When should resize happen? Starting with a 1k image:
11 Automatic (like file system):
12 <br>NBD_CMD_WRITE(offset=0,len=2k) -> success, size now 2k
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