You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why does deleting a snapshot increase the used space on btrfs filesystem?
# time ./transaction-test.sh
DEBUG 452 work_begin: before snapshot creation
DEBUG 452 snapshot_create: before sync
DEBUG 408 snapshot_create: before snapshot creation
DEBUG 412 snapshot_create: after snapshot creation
DEBUG 412 work_begin: before changing pwd
DEBUG 412 work_begin: after changing pwd
DEBUG 412 do_test: before test
DEBUG 412 do_test: after test
DEBUG 412 work_commit: before git commit
DEBUG 412 work_commit: before changing pwd to master ram git
DEBUG 412 work_commit: before git pull
DEBUG 412 work_commit: before changing pwd back
DEBUG 412 work_commit: before changing pwd back
DEBUG 412 snapshot_delete: Before changing pwd
DEBUG 412 snapshot_delete: before deleting snapshot
DEBUG 460 snapshot_delete: before changing pwd back
DEBUG 460 snapshot_delete: after changing pwd back
DEBUG 460 work_commit: after changing pwd back
Commit successful.
real 0m0.431s
user 0m0.272s
sys 0m0.228s
...or any of these -- although these are probably wrong anyway:
# btrfsctl -D disk0-20120124-2149 /ramdisks/mnt/disk0/data
ioctl:: No such file or directory
# btrfsctl -D /ramdisks/mnt/disk0/snapshot/disk0-20120124-2149 /ramdisks/mnt/disk0/data
ioctl:: Invalid argument
# btrfsctl -D disk0-20120124-2149 /ramdisks/mnt/disk0/snapshot
ioctl:: No such file or directory
Transaction tests
# time ./transaction-test.sh
Commit successful.
real 0m0.220s
user 0m0.112s
sys 0m0.072s
Test Platform
I am running these tests on a VIA ARTiGO A2000 Storage Server which has a VIA C7-D processor.
# cat /proc/cpuinfo
processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 13
model name : VIA C7-D Processor 1500MHz
stepping : 0
cpu MHz : 1499.885
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm nx up pni xtpr rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en
bogomips : 2999.77
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 32 bits virtual
power management:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters