iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug fixes
[distro-setup]
/
mount-latest-subvol
diff --git
a/mount-latest-subvol
b/mount-latest-subvol
index a277b55cbc9c9528542e222cc2ae4ce49aab5587..9bb324b918a20cd0a9357b7d125086f8506c2dfe 100644
(file)
--- a/
mount-latest-subvol
+++ b/
mount-latest-subvol
@@
-330,7
+330,7
@@
for vol in q a o i; do
if [[ $bsub ]]; then
tmp=$(mktemp)
# in testing, same subvol is 136 bytes. allow some overhead
if [[ $bsub ]]; then
tmp=$(mktemp)
# in testing, same subvol is 136 bytes. allow some overhead
- btrfs send --no-data -p $bsub $leaf | head -c 1000 > $tmp
+ btrfs send --no-data -p $bsub $leaf | head -c 1000 > $tmp
|| [[ $? == 141 ]]
if (( $(stat -c%s $tmp) < 1000)); then
# example output for an empty diff:
# Found a valid Btrfs stream header, version 1
if (( $(stat -c%s $tmp) < 1000)); then
# example output for an empty diff:
# Found a valid Btrfs stream header, version 1