Skip to content

Commit

Permalink
Merge pull request #44 from timakro/pr-subvolumes-nested-in-directories
Browse files Browse the repository at this point in the history
Fix creation of subvolumes nested in a directory
  • Loading branch information
asciiprod authored Mar 28, 2022
2 parents cf898fc + ecdfdcf commit 20af3b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2507,6 +2507,7 @@ create_btrfs_subvolumes() {
mp="${BTRFS_SV_MOUNT[$i]}"
if [ "$pv" == "$vol" ]; then
debug "creating btrfs subvolume $vol/$sv at $mp on $dev"
mkdir -p "$(dirname "$tmp_mount/$sv")"
btrfs subvolume create "$tmp_mount/$sv" |& debugoutput
entry="$dev $mp btrfs defaults,subvol=$sv 0 0\n"
entries="$entries$entry"
Expand Down

0 comments on commit 20af3b0

Please sign in to comment.