Skip to content

Commit

Permalink
Merge pull request #1000 from adrianschroeter/nodiscard
Browse files Browse the repository at this point in the history
vm-build: ext3 & ext4: fix disk space allocation
  • Loading branch information
mlschroe committed May 2, 2024
2 parents fd43dde + 347cf34 commit 8d28409
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-vm
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,10 @@ vm_img_mkfs() {
esac

# defaults for creating the filesystem
vm_img_mkfs_ext4_options='-O ^has_journal,^huge_file,^resize_inode,sparse_super,^metadata_csum'
vm_img_mkfs_ext4_extra='-E lazy_itable_init,discard'
vm_img_mkfs_ext4_options='-O ^has_journal,^huge_file,^resize_inode,sparse_super,^metadata_csum -E nodiscard'
vm_img_mkfs_ext4_extra='-E lazy_itable_init,nodiscard' # overwrites -E from _options by default
vm_img_mkfs_ext4="mkfs.ext4 -m 0 -q -F $vm_img_mkfs_ext4_options"
vm_img_mkfs_ext3='mkfs.ext3 -m 0 -q -F'
vm_img_mkfs_ext3='mkfs.ext3 -m 0 -q -F -E nodiscard'
vm_img_mkfs_ext2='mkfs.ext2 -m 0 -q -F'
vm_img_mkfs_reiserfs='mkreiserfs -q -f'
vm_img_mkfs_btrfs='mkfs.btrfs'
Expand Down

0 comments on commit 8d28409

Please sign in to comment.