Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Mount btrfs disk image using discard option
Browse files Browse the repository at this point in the history
concourse/concourse#5187
Signed-off-by: Mark Vainomaa <mikroskeem@mikroskeem.eu>
  • Loading branch information
mikroskeem committed Jul 3, 2020
1 parent aa42b14 commit 60bc64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (fs *BtrfsFilesystem) Create(bytes uint64) error {
mkdir -p $MOUNT_PATH
if ! mountpoint -q $MOUNT_PATH; then
mount -t btrfs $lo $MOUNT_PATH
mount -t btrfs -o discard $lo $MOUNT_PATH
fi
`)

Expand Down

0 comments on commit 60bc64b

Please sign in to comment.