Ticket #5967 (closed enhancement: fixed)

Opened 13 years ago

Last modified 6 years ago

use posix_fallocate() for preallocated hard disks when possible

Reported by: bjacke Owned by:
Component: other Version: VirtualBox 3.1.2
Keywords: Cc:
Guest type: other Host type: other


when creating a new hard disk it would be good if preallocated (fixes size) hard disks would be created via posix_fallocate when that call is availbale. On recent Linux systems this call will allocate the whole space very fast and efficiently when XFS or ext4 is being used as filesystem.

Change History

comment:1 Changed 10 years ago by bjacke

ping. creating preallocated images ist still a pain. Why don't you make use of the filesystem doing that work efficiently in less than a second? Would also be a trivial change to do.

comment:2 Changed 10 years ago by Donuts

Yep, this feature should be trivial to implement and would be a huge time-saver when creating non-expanding VDIs. Even creating a small 10GB VDI on a USB 2.0 hard drive takes several minutes. Using fallocate() it would be almost instantaneous.

comment:3 Changed 6 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Implemented in VirtualBox 5.1.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use