title: Dynamically creating the volume based on the size of ubifs image size
body: <p>I have a requirement to create a new volume (it can be static) based on the size of the ubifs image (say rootfs.ubifs) which I am going to write into that volume. The aim is to create the volume with the minimum possible size required to write 'rootfs.ubifs' to that volume and boot the device from it.</p>
  
  <p>Can somebody please help me in this regard?</p>