Started by user unknown or anonymous Building in workspace /var/lib/jenkins/workspace/ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] Done [ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel] $ /bin/sh -xe /tmp/jenkins2794908498646543685.sh + export KT_ROOT=/var/lib/jenkins + KT=/var/lib/jenkins/kernel-testing + SSH_OPTIONS=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet + SUT=pepe + set +e + /var/lib/jenkins/kernel-testing/metal --debug --nc --series=xenial --arch=i386 --flavour=generic --required-kernel-version=4.4.0-146.172 --pkg-name=linux-generic pepe . Provisioner setup Allocating... Deploying... Deployed . Fixup /etc/hosts . Remove /etc/apt/apt.conf.d/90curtin-aptproxy . Enabling Proposed . Enabling Src . for the pure love of rebooting . Disabling Periodic APT Updates . Installing python-minimal . Installing Required Packages . Dist Upgrade . Rebooting for dist-upgrade . Verifying the running kernel version . Verifying base install Codename: xenial series: xenial arch: i386 . That's All Folks! + [ 0 -ne 0 ] + /var/lib/jenkins/kernel-testing/remote ubuntu@pepe --kernel-test-list=ubuntu_btrfs_kernel_fixes Wed Apr 10 00:28:50 UTC 2019 DEBUG - Enter: main DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'lsb_release -a'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial DEBUG - [35m[32mLeave sh[0m[0m DEBUG - Release name is xenial DEBUG - Expanded test list: DEBUG - ubuntu_btrfs_kernel_fixes DEBUG - Enter tests_list_verify DEBUG - blacklist checking (xenial) (4.4.0) (i686) DEBUG - 'ubuntu_btrfs_kernel_fixes' DEBUG - valid DEBUG - Verified test list: DEBUG - ubuntu_btrfs_kernel_fixes DEBUG - Leave tests_list_verify DEBUG - Enter tests_scratch_check DEBUG - Leave tests_scratch_check DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'which canonical-livepatch'[0m DEBUG - [35m quiet : True[0m DEBUG - [35m ignore_result : False[0m DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'sudo cat kernel-test-results/test-attributes.json'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m { "distro-release": "Ubuntu 16.04", "distro-release-name": "xenial", "environ": { "HOME": "/home/ubuntu", "JOB_NAME": "ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel", "KERNEL_TEST_OPTIONS": "{}", "LANG": "en_US.UTF-8", "LOGNAME": "ubuntu", "MAIL": "/var/mail/ubuntu", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games", "PWD": "/home/ubuntu", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.246.72.4 36580 22", "SSH_CONNECTION": "10.246.72.4 36580 10.246.72.34 22", "USER": "ubuntu", "XDG_RUNTIME_DIR": "/run/user/1000", "XDG_SESSION_ID": "11", "_": "/usr/bin/python", "_TS_": "Wednesday, 10. April 2019 00:28 UTC" }, "kernel": "4.4.0-146.172", "kernel-flavour": "generic", "livepatch-package-version": "0.0", "platform": { "arch": { "bits": "32bit", "linkage": "ELF" }, "hardware": "real", "hostname": "pepe", "libc": { "lib": "glibc", "version": "2.7" }, "machine": "i686", "proc": "i686" }, "timestamp": "Wednesday, 10. April 2019 00:28 UTC" }DEBUG - [35m[32mLeave sh[0m[0m DEBUG - Determining correct control file for test: ubuntu_btrfs_kernel_fixes DEBUG - using: autotest/client/tests/ubuntu_btrfs_kernel_fixes/control DEBUG - Determining correct setup file for test: ubuntu_btrfs_kernel_fixes DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'echo "" | nc -w 2 squid.internal 3128 > /dev/null 2>&1'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'sudo apt-get update'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : True[0m update -- update -- update -- update Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Hit:5 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease Reading package lists... DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'AUTOTEST_PATH=/home/ubuntu/autotest sudo -E autotest/client/autotest-local --verbose autotest/client/tests/ubuntu_btrfs_kernel_fixes/control'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m update -- update -- update -- update 00:28:58 INFO | Writing results to /home/ubuntu/autotest/client/results/default 00:28:58 DEBUG| Initializing the state engine 00:28:58 DEBUG| Persistent state client.steps now set to [] 00:28:58 DEBUG| Persistent option harness now set to None 00:28:58 DEBUG| Persistent option harness_args now set to None 00:28:58 DEBUG| Selected harness: standalone 00:28:58 INFO | START ---- ---- timestamp=1554856138 localtime=Apr 10 00:28:58 00:28:58 DEBUG| Persistent state client._record_indent now set to 1 00:28:59 INFO | START ubuntu_btrfs_kernel_fixes ubuntu_btrfs_kernel_fixes timestamp=1554856138 localtime=Apr 10 00:28:58 00:28:59 DEBUG| Persistent state client._record_indent now set to 2 00:28:59 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes', 'ubuntu_btrfs_kernel_fixes') 00:28:59 DEBUG| Running 'apt-get install --yes --force-yes build-essential xfsprogs btrfs-tools git acl libattr1-dev gcc-multilib sysbench' 00:28:59 DEBUG| [stdout] Reading package lists... 00:28:59 DEBUG| [stdout] Building dependency tree... 00:28:59 DEBUG| [stdout] Reading state information... 00:28:59 DEBUG| [stdout] acl is already the newest version (2.2.52-3). 00:28:59 DEBUG| [stdout] btrfs-tools is already the newest version (4.4-1ubuntu1). 00:28:59 DEBUG| [stdout] git is already the newest version (1:2.7.4-0ubuntu1.6). 00:28:59 DEBUG| [stdout] xfsprogs is already the newest version (4.3.0+nmu1ubuntu1.1). 00:28:59 DEBUG| [stdout] The following additional packages will be installed: 00:28:59 DEBUG| [stdout] binutils cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 gcc-5-multilib 00:28:59 DEBUG| [stdout] lib64asan2 lib64atomic1 lib64cilkrts5 lib64gcc-5-dev lib64gcc1 lib64gomp1 00:28:59 DEBUG| [stdout] lib64itm1 lib64mpx0 lib64quadmath0 lib64stdc++6 lib64ubsan0 00:28:59 DEBUG| [stdout] libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl 00:28:59 DEBUG| [stdout] libasan2 libatomic1 libc-dev-bin libc6-amd64 libc6-dev libc6-dev-amd64 00:28:59 DEBUG| [stdout] libc6-dev-x32 libc6-x32 libcilkrts5 libdpkg-perl libfakeroot 00:28:59 DEBUG| [stdout] libfile-fcntllock-perl libgcc-5-dev libgomp1 libisl15 libitm1 libmpc3 00:28:59 DEBUG| [stdout] libmpx0 libmysqlclient20 libquadmath0 libstdc++-5-dev libubsan0 libx32asan2 00:28:59 DEBUG| [stdout] libx32atomic1 libx32cilkrts5 libx32gcc-5-dev libx32gcc1 libx32gomp1 00:28:59 DEBUG| [stdout] libx32itm1 libx32quadmath0 libx32stdc++6 libx32ubsan0 linux-libc-dev make 00:28:59 DEBUG| [stdout] manpages-dev mysql-common 00:28:59 DEBUG| [stdout] Suggested packages: 00:28:59 DEBUG| [stdout] binutils-doc cpp-doc gcc-5-locales debian-keyring g++-multilib 00:28:59 DEBUG| [stdout] g++-5-multilib gcc-5-doc libstdc++6-5-dbg autoconf automake libtool flex 00:28:59 DEBUG| [stdout] bison gcc-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg 00:28:59 DEBUG| [stdout] libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg 00:28:59 DEBUG| [stdout] libmpx0-dbg libquadmath0-dbg glibc-doc libstdc++-5-doc make-doc 00:28:59 DEBUG| [stdout] The following NEW packages will be installed: 00:28:59 DEBUG| [stdout] binutils build-essential cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 00:28:59 DEBUG| [stdout] gcc-5-multilib gcc-multilib lib64asan2 lib64atomic1 lib64cilkrts5 00:28:59 DEBUG| [stdout] lib64gcc-5-dev lib64gcc1 lib64gomp1 lib64itm1 lib64mpx0 lib64quadmath0 00:28:59 DEBUG| [stdout] lib64stdc++6 lib64ubsan0 libalgorithm-diff-perl libalgorithm-diff-xs-perl 00:28:59 DEBUG| [stdout] libalgorithm-merge-perl libasan2 libatomic1 libattr1-dev libc-dev-bin 00:28:59 DEBUG| [stdout] libc6-amd64 libc6-dev libc6-dev-amd64 libc6-dev-x32 libc6-x32 libcilkrts5 00:28:59 DEBUG| [stdout] libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-5-dev libgomp1 00:28:59 DEBUG| [stdout] libisl15 libitm1 libmpc3 libmpx0 libmysqlclient20 libquadmath0 00:28:59 DEBUG| [stdout] libstdc++-5-dev libubsan0 libx32asan2 libx32atomic1 libx32cilkrts5 00:28:59 DEBUG| [stdout] libx32gcc-5-dev libx32gcc1 libx32gomp1 libx32itm1 libx32quadmath0 00:28:59 DEBUG| [stdout] libx32stdc++6 libx32ubsan0 linux-libc-dev make manpages-dev mysql-common 00:28:59 DEBUG| [stdout] sysbench 00:28:59 DEBUG| [stdout] 0 upgraded, 64 newly installed, 0 to remove and 0 not upgraded. 00:28:59 DEBUG| [stdout] Need to get 52.6 MB of archives. 00:28:59 DEBUG| [stdout] After this operation, 206 MB of additional disk space will be used. 00:28:59 DEBUG| [stdout] Get:1 http://archive.ubuntu.com/ubuntu xenial/main i386 libmpc3 i386 1.0.3-1 [44.2 kB] 00:28:59 DEBUG| [stdout] Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 binutils i386 2.26.1-1ubuntu1~16.04.8 [2,494 kB] 00:29:01 DEBUG| [stdout] Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libc-dev-bin i386 2.23-0ubuntu11 [66.4 kB] 00:29:01 DEBUG| [stdout] Get:4 http://archive.ubuntu.com/ubuntu xenial-proposed/main i386 linux-libc-dev i386 4.4.0-146.172 [877 kB] 00:29:02 DEBUG| [stdout] Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libc6-dev i386 2.23-0ubuntu11 [1,678 kB] 00:29:04 DEBUG| [stdout] Get:6 http://archive.ubuntu.com/ubuntu xenial/main i386 libisl15 i386 0.16.1-1 [599 kB] 00:29:06 DEBUG| [stdout] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 cpp-5 i386 5.4.0-6ubuntu1~16.04.11 [7,609 kB] 00:29:20 DEBUG| [stdout] Get:8 http://archive.ubuntu.com/ubuntu xenial/main i386 cpp i386 4:5.3.1-1ubuntu1 [27.7 kB] 00:29:20 DEBUG| [stdout] Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libgomp1 i386 5.4.0-6ubuntu1~16.04.11 [58.7 kB] 00:29:21 DEBUG| [stdout] Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libitm1 i386 5.4.0-6ubuntu1~16.04.11 [30.7 kB] 00:29:21 DEBUG| [stdout] Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libatomic1 i386 5.4.0-6ubuntu1~16.04.11 [9,702 B] 00:29:21 DEBUG| [stdout] Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libasan2 i386 5.4.0-6ubuntu1~16.04.11 [267 kB] 00:29:22 DEBUG| [stdout] Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libubsan0 i386 5.4.0-6ubuntu1~16.04.11 [106 kB] 00:29:22 DEBUG| [stdout] Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libcilkrts5 i386 5.4.0-6ubuntu1~16.04.11 [44.9 kB] 00:29:22 DEBUG| [stdout] Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libmpx0 i386 5.4.0-6ubuntu1~16.04.11 [11.1 kB] 00:29:22 DEBUG| [stdout] Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libquadmath0 i386 5.4.0-6ubuntu1~16.04.11 [203 kB] 00:29:23 DEBUG| [stdout] Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libgcc-5-dev i386 5.4.0-6ubuntu1~16.04.11 [2,238 kB] 00:29:31 DEBUG| [stdout] Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 gcc-5 i386 5.4.0-6ubuntu1~16.04.11 [8,357 kB] 00:29:52 DEBUG| [stdout] Get:19 http://archive.ubuntu.com/ubuntu xenial/main i386 gcc i386 4:5.3.1-1ubuntu1 [5,250 B] 00:29:52 DEBUG| [stdout] Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libstdc++-5-dev i386 5.4.0-6ubuntu1~16.04.11 [1,456 kB] 00:29:54 DEBUG| [stdout] Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 g++-5 i386 5.4.0-6ubuntu1~16.04.11 [8,294 kB] 00:30:19 DEBUG| [stdout] Get:22 http://archive.ubuntu.com/ubuntu xenial/main i386 g++ i386 4:5.3.1-1ubuntu1 [1,506 B] 00:30:19 DEBUG| [stdout] Get:23 http://archive.ubuntu.com/ubuntu xenial/main i386 make i386 4.1-6 [153 kB] 00:30:19 DEBUG| [stdout] Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libdpkg-perl all 1.18.4ubuntu1.5 [195 kB] 00:30:20 DEBUG| [stdout] Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 dpkg-dev all 1.18.4ubuntu1.5 [584 kB] 00:30:22 DEBUG| [stdout] Get:26 http://archive.ubuntu.com/ubuntu xenial/main i386 build-essential i386 12.1ubuntu2 [4,756 B] 00:30:22 DEBUG| [stdout] Get:27 http://archive.ubuntu.com/ubuntu xenial/main i386 libfakeroot i386 1.20.2-1ubuntu1 [27.0 kB] 00:30:23 DEBUG| [stdout] Get:28 http://archive.ubuntu.com/ubuntu xenial/main i386 fakeroot i386 1.20.2-1ubuntu1 [63.1 kB] 00:30:23 DEBUG| [stdout] Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libc6-amd64 i386 2.23-0ubuntu11 [2,560 kB] 00:30:32 DEBUG| [stdout] Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libc6-dev-amd64 i386 2.23-0ubuntu11 [1,576 kB] 00:30:34 DEBUG| [stdout] Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libc6-x32 i386 2.23-0ubuntu11 [2,550 kB] 00:30:36 DEBUG| [stdout] Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libc6-dev-x32 i386 2.23-0ubuntu11 [1,562 kB] 00:30:38 DEBUG| [stdout] Get:33 http://archive.ubuntu.com/ubuntu xenial/main i386 lib64gcc1 i386 1:6.0.1-0ubuntu1 [38.4 kB] 00:30:38 DEBUG| [stdout] Get:34 http://archive.ubuntu.com/ubuntu xenial/main i386 libx32gcc1 i386 1:6.0.1-0ubuntu1 [38.7 kB] 00:30:38 DEBUG| [stdout] Get:35 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64gomp1 i386 5.4.0-6ubuntu1~16.04.11 [55.0 kB] 00:30:39 DEBUG| [stdout] Get:36 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libx32gomp1 i386 5.4.0-6ubuntu1~16.04.11 [55.4 kB] 00:30:39 DEBUG| [stdout] Get:37 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64itm1 i386 5.4.0-6ubuntu1~16.04.11 [27.4 kB] 00:30:39 DEBUG| [stdout] Get:38 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libx32itm1 i386 5.4.0-6ubuntu1~16.04.11 [27.7 kB] 00:30:39 DEBUG| [stdout] Get:39 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64atomic1 i386 5.4.0-6ubuntu1~16.04.11 [8,880 B] 00:30:39 DEBUG| [stdout] Get:40 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libx32atomic1 i386 5.4.0-6ubuntu1~16.04.11 [8,908 B] 00:30:39 DEBUG| [stdout] Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64asan2 i386 5.4.0-6ubuntu1~16.04.11 [257 kB] 00:30:39 DEBUG| [stdout] Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libx32asan2 i386 5.4.0-6ubuntu1~16.04.11 [253 kB] 00:30:40 DEBUG| [stdout] Get:43 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64stdc++6 i386 5.4.0-6ubuntu1~16.04.11 [380 kB] 00:30:40 DEBUG| [stdout] Get:44 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64ubsan0 i386 5.4.0-6ubuntu1~16.04.11 [94.6 kB] 00:30:41 DEBUG| [stdout] Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libx32stdc++6 i386 5.4.0-6ubuntu1~16.04.11 [384 kB] 00:30:41 DEBUG| [stdout] Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libx32ubsan0 i386 5.4.0-6ubuntu1~16.04.11 [97.0 kB] 00:30:42 DEBUG| [stdout] Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64cilkrts5 i386 5.4.0-6ubuntu1~16.04.11 [40.0 kB] 00:30:42 DEBUG| [stdout] Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libx32cilkrts5 i386 5.4.0-6ubuntu1~16.04.11 [40.8 kB] 00:30:42 DEBUG| [stdout] Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64mpx0 i386 5.4.0-6ubuntu1~16.04.11 [9,716 B] 00:30:42 DEBUG| [stdout] Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64quadmath0 i386 5.4.0-6ubuntu1~16.04.11 [131 kB] 00:30:43 DEBUG| [stdout] Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libx32quadmath0 i386 5.4.0-6ubuntu1~16.04.11 [134 kB] 00:30:43 DEBUG| [stdout] Get:52 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 lib64gcc-5-dev i386 5.4.0-6ubuntu1~16.04.11 [1,881 kB] 00:30:47 DEBUG| [stdout] Get:53 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libx32gcc-5-dev i386 5.4.0-6ubuntu1~16.04.11 [1,867 kB] 00:30:50 DEBUG| [stdout] Get:54 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 gcc-5-multilib i386 5.4.0-6ubuntu1~16.04.11 [968 B] 00:30:50 DEBUG| [stdout] Get:55 http://archive.ubuntu.com/ubuntu xenial/main i386 gcc-multilib i386 4:5.3.1-1ubuntu1 [1,206 B] 00:30:50 DEBUG| [stdout] Get:56 http://archive.ubuntu.com/ubuntu xenial/main i386 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB] 00:30:50 DEBUG| [stdout] Get:57 http://archive.ubuntu.com/ubuntu xenial/main i386 libalgorithm-diff-xs-perl i386 0.04-4build1 [12.1 kB] 00:30:50 DEBUG| [stdout] Get:58 http://archive.ubuntu.com/ubuntu xenial/main i386 libalgorithm-merge-perl all 0.08-3 [12.0 kB] 00:30:50 DEBUG| [stdout] Get:59 http://archive.ubuntu.com/ubuntu xenial/main i386 libfile-fcntllock-perl i386 0.22-3 [32.3 kB] 00:30:51 DEBUG| [stdout] Get:60 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 mysql-common all 5.7.25-0ubuntu0.16.04.2 [15.5 kB] 00:30:51 DEBUG| [stdout] Get:61 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libmysqlclient20 i386 5.7.25-0ubuntu0.16.04.2 [796 kB] 00:30:53 DEBUG| [stdout] Get:62 http://archive.ubuntu.com/ubuntu xenial/main i386 manpages-dev all 4.04-2 [2,048 kB] 00:30:59 DEBUG| [stdout] Get:63 http://archive.ubuntu.com/ubuntu xenial/main i386 libattr1-dev i386 1:2.4.47-2 [29.9 kB] 00:30:59 DEBUG| [stdout] Get:64 http://archive.ubuntu.com/ubuntu xenial/universe i386 sysbench i386 0.4.12-1.1ubuntu1 [58.9 kB] 00:31:00 ERROR| [stderr] debconf: unable to initialize frontend: Dialog 00:31:00 ERROR| [stderr] debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) 00:31:00 ERROR| [stderr] debconf: falling back to frontend: Readline 00:31:00 ERROR| [stderr] debconf: unable to initialize frontend: Readline 00:31:00 ERROR| [stderr] debconf: (This frontend requires a controlling tty.) 00:31:00 ERROR| [stderr] debconf: falling back to frontend: Teletype 00:31:00 ERROR| [stderr] dpkg-preconfigure: unable to re-open stdin: 00:31:00 DEBUG| [stdout] Fetched 52.6 MB in 2min 0s (438 kB/s) 00:31:00 DEBUG| [stdout] Selecting previously unselected package libmpc3:i386. 00:31:00 DEBUG| [stdout] (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 94619 files and directories currently installed.) 00:31:00 DEBUG| [stdout] Preparing to unpack .../libmpc3_1.0.3-1_i386.deb ... 00:31:00 DEBUG| [stdout] Unpacking libmpc3:i386 (1.0.3-1) ... 00:31:00 DEBUG| [stdout] Selecting previously unselected package binutils. 00:31:00 DEBUG| [stdout] Preparing to unpack .../binutils_2.26.1-1ubuntu1~16.04.8_i386.deb ... 00:31:00 DEBUG| [stdout] Unpacking binutils (2.26.1-1ubuntu1~16.04.8) ... 00:31:01 DEBUG| [stdout] Selecting previously unselected package libc-dev-bin. 00:31:01 DEBUG| [stdout] Preparing to unpack .../libc-dev-bin_2.23-0ubuntu11_i386.deb ... 00:31:01 DEBUG| [stdout] Unpacking libc-dev-bin (2.23-0ubuntu11) ... 00:31:01 DEBUG| [stdout] Selecting previously unselected package linux-libc-dev:i386. 00:31:01 DEBUG| [stdout] Preparing to unpack .../linux-libc-dev_4.4.0-146.172_i386.deb ... 00:31:01 DEBUG| [stdout] Unpacking linux-libc-dev:i386 (4.4.0-146.172) ... 00:31:02 DEBUG| [stdout] Selecting previously unselected package libc6-dev:i386. 00:31:02 DEBUG| [stdout] Preparing to unpack .../libc6-dev_2.23-0ubuntu11_i386.deb ... 00:31:02 DEBUG| [stdout] Unpacking libc6-dev:i386 (2.23-0ubuntu11) ... 00:31:02 DEBUG| [stdout] Selecting previously unselected package libisl15:i386. 00:31:02 DEBUG| [stdout] Preparing to unpack .../libisl15_0.16.1-1_i386.deb ... 00:31:02 DEBUG| [stdout] Unpacking libisl15:i386 (0.16.1-1) ... 00:31:03 DEBUG| [stdout] Selecting previously unselected package cpp-5. 00:31:03 DEBUG| [stdout] Preparing to unpack .../cpp-5_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:03 DEBUG| [stdout] Unpacking cpp-5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:04 DEBUG| [stdout] Selecting previously unselected package cpp. 00:31:04 DEBUG| [stdout] Preparing to unpack .../cpp_4%3a5.3.1-1ubuntu1_i386.deb ... 00:31:04 DEBUG| [stdout] Unpacking cpp (4:5.3.1-1ubuntu1) ... 00:31:04 DEBUG| [stdout] Selecting previously unselected package libgomp1:i386. 00:31:04 DEBUG| [stdout] Preparing to unpack .../libgomp1_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:04 DEBUG| [stdout] Unpacking libgomp1:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:04 DEBUG| [stdout] Selecting previously unselected package libitm1:i386. 00:31:04 DEBUG| [stdout] Preparing to unpack .../libitm1_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:04 DEBUG| [stdout] Unpacking libitm1:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:04 DEBUG| [stdout] Selecting previously unselected package libatomic1:i386. 00:31:04 DEBUG| [stdout] Preparing to unpack .../libatomic1_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:04 DEBUG| [stdout] Unpacking libatomic1:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:05 DEBUG| [stdout] Selecting previously unselected package libasan2:i386. 00:31:05 DEBUG| [stdout] Preparing to unpack .../libasan2_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:05 DEBUG| [stdout] Unpacking libasan2:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:05 DEBUG| [stdout] Selecting previously unselected package libubsan0:i386. 00:31:05 DEBUG| [stdout] Preparing to unpack .../libubsan0_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:05 DEBUG| [stdout] Unpacking libubsan0:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:05 DEBUG| [stdout] Selecting previously unselected package libcilkrts5:i386. 00:31:05 DEBUG| [stdout] Preparing to unpack .../libcilkrts5_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:05 DEBUG| [stdout] Unpacking libcilkrts5:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:05 DEBUG| [stdout] Selecting previously unselected package libmpx0:i386. 00:31:05 DEBUG| [stdout] Preparing to unpack .../libmpx0_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:05 DEBUG| [stdout] Unpacking libmpx0:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:06 DEBUG| [stdout] Selecting previously unselected package libquadmath0:i386. 00:31:06 DEBUG| [stdout] Preparing to unpack .../libquadmath0_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:06 DEBUG| [stdout] Unpacking libquadmath0:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:06 DEBUG| [stdout] Selecting previously unselected package libgcc-5-dev:i386. 00:31:06 DEBUG| [stdout] Preparing to unpack .../libgcc-5-dev_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:06 DEBUG| [stdout] Unpacking libgcc-5-dev:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:06 DEBUG| [stdout] Selecting previously unselected package gcc-5. 00:31:06 DEBUG| [stdout] Preparing to unpack .../gcc-5_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:06 DEBUG| [stdout] Unpacking gcc-5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:07 DEBUG| [stdout] Selecting previously unselected package gcc. 00:31:07 DEBUG| [stdout] Preparing to unpack .../gcc_4%3a5.3.1-1ubuntu1_i386.deb ... 00:31:07 DEBUG| [stdout] Unpacking gcc (4:5.3.1-1ubuntu1) ... 00:31:08 DEBUG| [stdout] Selecting previously unselected package libstdc++-5-dev:i386. 00:31:08 DEBUG| [stdout] Preparing to unpack .../libstdc++-5-dev_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:08 DEBUG| [stdout] Unpacking libstdc++-5-dev:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:09 DEBUG| [stdout] Selecting previously unselected package g++-5. 00:31:09 DEBUG| [stdout] Preparing to unpack .../g++-5_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:09 DEBUG| [stdout] Unpacking g++-5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:10 DEBUG| [stdout] Selecting previously unselected package g++. 00:31:10 DEBUG| [stdout] Preparing to unpack .../g++_4%3a5.3.1-1ubuntu1_i386.deb ... 00:31:10 DEBUG| [stdout] Unpacking g++ (4:5.3.1-1ubuntu1) ... 00:31:10 DEBUG| [stdout] Selecting previously unselected package make. 00:31:10 DEBUG| [stdout] Preparing to unpack .../archives/make_4.1-6_i386.deb ... 00:31:10 DEBUG| [stdout] Unpacking make (4.1-6) ... 00:31:10 DEBUG| [stdout] Selecting previously unselected package libdpkg-perl. 00:31:10 DEBUG| [stdout] Preparing to unpack .../libdpkg-perl_1.18.4ubuntu1.5_all.deb ... 00:31:10 DEBUG| [stdout] Unpacking libdpkg-perl (1.18.4ubuntu1.5) ... 00:31:11 DEBUG| [stdout] Selecting previously unselected package dpkg-dev. 00:31:11 DEBUG| [stdout] Preparing to unpack .../dpkg-dev_1.18.4ubuntu1.5_all.deb ... 00:31:11 DEBUG| [stdout] Unpacking dpkg-dev (1.18.4ubuntu1.5) ... 00:31:11 DEBUG| [stdout] Selecting previously unselected package build-essential. 00:31:11 DEBUG| [stdout] Preparing to unpack .../build-essential_12.1ubuntu2_i386.deb ... 00:31:11 DEBUG| [stdout] Unpacking build-essential (12.1ubuntu2) ... 00:31:11 DEBUG| [stdout] Selecting previously unselected package libfakeroot:i386. 00:31:11 DEBUG| [stdout] Preparing to unpack .../libfakeroot_1.20.2-1ubuntu1_i386.deb ... 00:31:11 DEBUG| [stdout] Unpacking libfakeroot:i386 (1.20.2-1ubuntu1) ... 00:31:11 DEBUG| [stdout] Selecting previously unselected package fakeroot. 00:31:11 DEBUG| [stdout] Preparing to unpack .../fakeroot_1.20.2-1ubuntu1_i386.deb ... 00:31:11 DEBUG| [stdout] Unpacking fakeroot (1.20.2-1ubuntu1) ... 00:31:12 DEBUG| [stdout] Selecting previously unselected package libc6-amd64. 00:31:12 DEBUG| [stdout] Preparing to unpack .../libc6-amd64_2.23-0ubuntu11_i386.deb ... 00:31:12 DEBUG| [stdout] Unpacking libc6-amd64 (2.23-0ubuntu11) ... 00:31:12 DEBUG| [stdout] Selecting previously unselected package libc6-dev-amd64. 00:31:12 DEBUG| [stdout] Preparing to unpack .../libc6-dev-amd64_2.23-0ubuntu11_i386.deb ... 00:31:12 DEBUG| [stdout] Unpacking libc6-dev-amd64 (2.23-0ubuntu11) ... 00:31:13 DEBUG| [stdout] Selecting previously unselected package libc6-x32. 00:31:13 DEBUG| [stdout] Preparing to unpack .../libc6-x32_2.23-0ubuntu11_i386.deb ... 00:31:13 DEBUG| [stdout] Unpacking libc6-x32 (2.23-0ubuntu11) ... 00:31:13 DEBUG| [stdout] Selecting previously unselected package libc6-dev-x32. 00:31:13 DEBUG| [stdout] Preparing to unpack .../libc6-dev-x32_2.23-0ubuntu11_i386.deb ... 00:31:13 DEBUG| [stdout] Unpacking libc6-dev-x32 (2.23-0ubuntu11) ... 00:31:14 DEBUG| [stdout] Selecting previously unselected package lib64gcc1. 00:31:14 DEBUG| [stdout] Preparing to unpack .../lib64gcc1_1%3a6.0.1-0ubuntu1_i386.deb ... 00:31:14 DEBUG| [stdout] Unpacking lib64gcc1 (1:6.0.1-0ubuntu1) ... 00:31:14 DEBUG| [stdout] Selecting previously unselected package libx32gcc1. 00:31:14 DEBUG| [stdout] Preparing to unpack .../libx32gcc1_1%3a6.0.1-0ubuntu1_i386.deb ... 00:31:14 DEBUG| [stdout] Unpacking libx32gcc1 (1:6.0.1-0ubuntu1) ... 00:31:14 DEBUG| [stdout] Selecting previously unselected package lib64gomp1. 00:31:14 DEBUG| [stdout] Preparing to unpack .../lib64gomp1_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:14 DEBUG| [stdout] Unpacking lib64gomp1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:15 DEBUG| [stdout] Selecting previously unselected package libx32gomp1. 00:31:15 DEBUG| [stdout] Preparing to unpack .../libx32gomp1_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:15 DEBUG| [stdout] Unpacking libx32gomp1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:15 DEBUG| [stdout] Selecting previously unselected package lib64itm1. 00:31:15 DEBUG| [stdout] Preparing to unpack .../lib64itm1_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:15 DEBUG| [stdout] Unpacking lib64itm1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:15 DEBUG| [stdout] Selecting previously unselected package libx32itm1. 00:31:15 DEBUG| [stdout] Preparing to unpack .../libx32itm1_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:15 DEBUG| [stdout] Unpacking libx32itm1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:15 DEBUG| [stdout] Selecting previously unselected package lib64atomic1. 00:31:15 DEBUG| [stdout] Preparing to unpack .../lib64atomic1_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:15 DEBUG| [stdout] Unpacking lib64atomic1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:16 DEBUG| [stdout] Selecting previously unselected package libx32atomic1. 00:31:16 DEBUG| [stdout] Preparing to unpack .../libx32atomic1_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:16 DEBUG| [stdout] Unpacking libx32atomic1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:16 DEBUG| [stdout] Selecting previously unselected package lib64asan2. 00:31:16 DEBUG| [stdout] Preparing to unpack .../lib64asan2_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:16 DEBUG| [stdout] Unpacking lib64asan2 (5.4.0-6ubuntu1~16.04.11) ... 00:31:16 DEBUG| [stdout] Selecting previously unselected package libx32asan2. 00:31:16 DEBUG| [stdout] Preparing to unpack .../libx32asan2_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:16 DEBUG| [stdout] Unpacking libx32asan2 (5.4.0-6ubuntu1~16.04.11) ... 00:31:16 DEBUG| [stdout] Selecting previously unselected package lib64stdc++6. 00:31:16 DEBUG| [stdout] Preparing to unpack .../lib64stdc++6_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:16 DEBUG| [stdout] Unpacking lib64stdc++6 (5.4.0-6ubuntu1~16.04.11) ... 00:31:17 DEBUG| [stdout] Selecting previously unselected package lib64ubsan0. 00:31:17 DEBUG| [stdout] Preparing to unpack .../lib64ubsan0_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:17 DEBUG| [stdout] Unpacking lib64ubsan0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:17 DEBUG| [stdout] Selecting previously unselected package libx32stdc++6. 00:31:17 DEBUG| [stdout] Preparing to unpack .../libx32stdc++6_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:17 DEBUG| [stdout] Unpacking libx32stdc++6 (5.4.0-6ubuntu1~16.04.11) ... 00:31:17 DEBUG| [stdout] Selecting previously unselected package libx32ubsan0. 00:31:17 DEBUG| [stdout] Preparing to unpack .../libx32ubsan0_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:17 DEBUG| [stdout] Unpacking libx32ubsan0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:17 DEBUG| [stdout] Selecting previously unselected package lib64cilkrts5. 00:31:17 DEBUG| [stdout] Preparing to unpack .../lib64cilkrts5_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:17 DEBUG| [stdout] Unpacking lib64cilkrts5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:18 DEBUG| [stdout] Selecting previously unselected package libx32cilkrts5. 00:31:18 DEBUG| [stdout] Preparing to unpack .../libx32cilkrts5_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:18 DEBUG| [stdout] Unpacking libx32cilkrts5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:18 DEBUG| [stdout] Selecting previously unselected package lib64mpx0. 00:31:18 DEBUG| [stdout] Preparing to unpack .../lib64mpx0_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:18 DEBUG| [stdout] Unpacking lib64mpx0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:18 DEBUG| [stdout] Selecting previously unselected package lib64quadmath0. 00:31:18 DEBUG| [stdout] Preparing to unpack .../lib64quadmath0_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:18 DEBUG| [stdout] Unpacking lib64quadmath0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:18 DEBUG| [stdout] Selecting previously unselected package libx32quadmath0. 00:31:18 DEBUG| [stdout] Preparing to unpack .../libx32quadmath0_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:18 DEBUG| [stdout] Unpacking libx32quadmath0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:19 DEBUG| [stdout] Selecting previously unselected package lib64gcc-5-dev. 00:31:19 DEBUG| [stdout] Preparing to unpack .../lib64gcc-5-dev_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:19 DEBUG| [stdout] Unpacking lib64gcc-5-dev (5.4.0-6ubuntu1~16.04.11) ... 00:31:19 DEBUG| [stdout] Selecting previously unselected package libx32gcc-5-dev. 00:31:19 DEBUG| [stdout] Preparing to unpack .../libx32gcc-5-dev_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:19 DEBUG| [stdout] Unpacking libx32gcc-5-dev (5.4.0-6ubuntu1~16.04.11) ... 00:31:19 DEBUG| [stdout] Selecting previously unselected package gcc-5-multilib. 00:31:19 DEBUG| [stdout] Preparing to unpack .../gcc-5-multilib_5.4.0-6ubuntu1~16.04.11_i386.deb ... 00:31:19 DEBUG| [stdout] Unpacking gcc-5-multilib (5.4.0-6ubuntu1~16.04.11) ... 00:31:19 DEBUG| [stdout] Selecting previously unselected package gcc-multilib. 00:31:19 DEBUG| [stdout] Preparing to unpack .../gcc-multilib_4%3a5.3.1-1ubuntu1_i386.deb ... 00:31:19 DEBUG| [stdout] Unpacking gcc-multilib (4:5.3.1-1ubuntu1) ... 00:31:20 DEBUG| [stdout] Selecting previously unselected package libalgorithm-diff-perl. 00:31:20 DEBUG| [stdout] Preparing to unpack .../libalgorithm-diff-perl_1.19.03-1_all.deb ... 00:31:20 DEBUG| [stdout] Unpacking libalgorithm-diff-perl (1.19.03-1) ... 00:31:20 DEBUG| [stdout] Selecting previously unselected package libalgorithm-diff-xs-perl. 00:31:20 DEBUG| [stdout] Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-4build1_i386.deb ... 00:31:20 DEBUG| [stdout] Unpacking libalgorithm-diff-xs-perl (0.04-4build1) ... 00:31:20 DEBUG| [stdout] Selecting previously unselected package libalgorithm-merge-perl. 00:31:20 DEBUG| [stdout] Preparing to unpack .../libalgorithm-merge-perl_0.08-3_all.deb ... 00:31:20 DEBUG| [stdout] Unpacking libalgorithm-merge-perl (0.08-3) ... 00:31:20 DEBUG| [stdout] Selecting previously unselected package libfile-fcntllock-perl. 00:31:20 DEBUG| [stdout] Preparing to unpack .../libfile-fcntllock-perl_0.22-3_i386.deb ... 00:31:20 DEBUG| [stdout] Unpacking libfile-fcntllock-perl (0.22-3) ... 00:31:20 DEBUG| [stdout] Selecting previously unselected package mysql-common. 00:31:20 DEBUG| [stdout] Preparing to unpack .../mysql-common_5.7.25-0ubuntu0.16.04.2_all.deb ... 00:31:20 DEBUG| [stdout] Unpacking mysql-common (5.7.25-0ubuntu0.16.04.2) ... 00:31:21 DEBUG| [stdout] Selecting previously unselected package libmysqlclient20:i386. 00:31:21 DEBUG| [stdout] Preparing to unpack .../libmysqlclient20_5.7.25-0ubuntu0.16.04.2_i386.deb ... 00:31:21 DEBUG| [stdout] Unpacking libmysqlclient20:i386 (5.7.25-0ubuntu0.16.04.2) ... 00:31:21 DEBUG| [stdout] Selecting previously unselected package manpages-dev. 00:31:21 DEBUG| [stdout] Preparing to unpack .../manpages-dev_4.04-2_all.deb ... 00:31:21 DEBUG| [stdout] Unpacking manpages-dev (4.04-2) ... 00:31:21 DEBUG| [stdout] Selecting previously unselected package libattr1-dev:i386. 00:31:21 DEBUG| [stdout] Preparing to unpack .../libattr1-dev_1%3a2.4.47-2_i386.deb ... 00:31:21 DEBUG| [stdout] Unpacking libattr1-dev:i386 (1:2.4.47-2) ... 00:31:22 DEBUG| [stdout] Selecting previously unselected package sysbench. 00:31:22 DEBUG| [stdout] Preparing to unpack .../sysbench_0.4.12-1.1ubuntu1_i386.deb ... 00:31:22 DEBUG| [stdout] Unpacking sysbench (0.4.12-1.1ubuntu1) ... 00:31:22 DEBUG| [stdout] Processing triggers for libc-bin (2.23-0ubuntu11) ... 00:31:22 DEBUG| [stdout] Processing triggers for man-db (2.7.5-1) ... 00:31:25 DEBUG| [stdout] Setting up libmpc3:i386 (1.0.3-1) ... 00:31:25 DEBUG| [stdout] Setting up binutils (2.26.1-1ubuntu1~16.04.8) ... 00:31:25 DEBUG| [stdout] Setting up libc-dev-bin (2.23-0ubuntu11) ... 00:31:25 DEBUG| [stdout] Setting up linux-libc-dev:i386 (4.4.0-146.172) ... 00:31:25 DEBUG| [stdout] Setting up libc6-dev:i386 (2.23-0ubuntu11) ... 00:31:25 DEBUG| [stdout] Setting up libisl15:i386 (0.16.1-1) ... 00:31:26 DEBUG| [stdout] Setting up cpp-5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:26 DEBUG| [stdout] Setting up cpp (4:5.3.1-1ubuntu1) ... 00:31:26 DEBUG| [stdout] Setting up libgomp1:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:26 DEBUG| [stdout] Setting up libitm1:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:26 DEBUG| [stdout] Setting up libatomic1:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:26 DEBUG| [stdout] Setting up libasan2:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:26 DEBUG| [stdout] Setting up libubsan0:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:27 DEBUG| [stdout] Setting up libcilkrts5:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:27 DEBUG| [stdout] Setting up libmpx0:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:27 DEBUG| [stdout] Setting up libquadmath0:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:27 DEBUG| [stdout] Setting up libgcc-5-dev:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:27 DEBUG| [stdout] Setting up gcc-5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:27 DEBUG| [stdout] Setting up gcc (4:5.3.1-1ubuntu1) ... 00:31:27 DEBUG| [stdout] Setting up libstdc++-5-dev:i386 (5.4.0-6ubuntu1~16.04.11) ... 00:31:27 DEBUG| [stdout] Setting up g++-5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:27 DEBUG| [stdout] Setting up g++ (4:5.3.1-1ubuntu1) ... 00:31:27 DEBUG| [stdout] update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 00:31:27 DEBUG| [stdout] Setting up make (4.1-6) ... 00:31:27 DEBUG| [stdout] Setting up libdpkg-perl (1.18.4ubuntu1.5) ... 00:31:27 DEBUG| [stdout] Setting up dpkg-dev (1.18.4ubuntu1.5) ... 00:31:28 DEBUG| [stdout] Setting up build-essential (12.1ubuntu2) ... 00:31:28 DEBUG| [stdout] Setting up libfakeroot:i386 (1.20.2-1ubuntu1) ... 00:31:28 DEBUG| [stdout] Setting up fakeroot (1.20.2-1ubuntu1) ... 00:31:28 DEBUG| [stdout] update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode 00:31:28 DEBUG| [stdout] Setting up libc6-amd64 (2.23-0ubuntu11) ... 00:31:28 DEBUG| [stdout] Setting up libc6-dev-amd64 (2.23-0ubuntu11) ... 00:31:28 DEBUG| [stdout] Setting up libc6-x32 (2.23-0ubuntu11) ... 00:31:28 DEBUG| [stdout] Setting up libc6-dev-x32 (2.23-0ubuntu11) ... 00:31:28 DEBUG| [stdout] Setting up lib64gcc1 (1:6.0.1-0ubuntu1) ... 00:31:28 DEBUG| [stdout] Setting up libx32gcc1 (1:6.0.1-0ubuntu1) ... 00:31:28 DEBUG| [stdout] Setting up lib64gomp1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:28 DEBUG| [stdout] Setting up libx32gomp1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:28 DEBUG| [stdout] Setting up lib64itm1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up libx32itm1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up lib64atomic1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up libx32atomic1 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up lib64asan2 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up libx32asan2 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up lib64stdc++6 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up lib64ubsan0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up libx32stdc++6 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up libx32ubsan0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up lib64cilkrts5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up libx32cilkrts5 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up lib64mpx0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up lib64quadmath0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up libx32quadmath0 (5.4.0-6ubuntu1~16.04.11) ... 00:31:29 DEBUG| [stdout] Setting up lib64gcc-5-dev (5.4.0-6ubuntu1~16.04.11) ... 00:31:30 DEBUG| [stdout] Setting up libx32gcc-5-dev (5.4.0-6ubuntu1~16.04.11) ... 00:31:30 DEBUG| [stdout] Setting up gcc-5-multilib (5.4.0-6ubuntu1~16.04.11) ... 00:31:30 DEBUG| [stdout] Setting up gcc-multilib (4:5.3.1-1ubuntu1) ... 00:31:30 DEBUG| [stdout] Setting up libalgorithm-diff-perl (1.19.03-1) ... 00:31:30 DEBUG| [stdout] Setting up libalgorithm-diff-xs-perl (0.04-4build1) ... 00:31:30 DEBUG| [stdout] Setting up libalgorithm-merge-perl (0.08-3) ... 00:31:30 DEBUG| [stdout] Setting up libfile-fcntllock-perl (0.22-3) ... 00:31:30 DEBUG| [stdout] Setting up mysql-common (5.7.25-0ubuntu0.16.04.2) ... 00:31:30 DEBUG| [stdout] update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode 00:31:30 DEBUG| [stdout] Setting up libmysqlclient20:i386 (5.7.25-0ubuntu0.16.04.2) ... 00:31:30 DEBUG| [stdout] Setting up manpages-dev (4.04-2) ... 00:31:30 DEBUG| [stdout] Setting up libattr1-dev:i386 (1:2.4.47-2) ... 00:31:30 DEBUG| [stdout] Setting up sysbench (0.4.12-1.1ubuntu1) ... 00:31:30 DEBUG| [stdout] Processing triggers for libc-bin (2.23-0ubuntu11) ... 00:31:32 ERROR| [stderr] W: --force-yes is deprecated, use one of the options starting with --allow instead. 00:31:32 DEBUG| Running 'which gcc' 00:31:32 DEBUG| [stdout] /usr/bin/gcc 00:31:32 INFO | GOOD ubuntu_btrfs_kernel_fixes ubuntu_btrfs_kernel_fixes timestamp=1554856292 localtime=Apr 10 00:31:32 completed successfully 00:31:32 INFO | END GOOD ubuntu_btrfs_kernel_fixes ubuntu_btrfs_kernel_fixes timestamp=1554856292 localtime=Apr 10 00:31:32 00:31:32 DEBUG| Persistent state client._record_indent now set to 1 00:31:32 DEBUG| Persistent state client.unexpected_reboot deleted 00:31:32 INFO | Invoking test: 0061280d2c7240805cfd7b1f493da967c97c2f34.sh 00:31:32 DEBUG| Test has timeout: 7200 sec. 00:31:32 INFO | START ubuntu_btrfs_kernel_fixes.0061280d2c7240805cfd7b1f493da967c97c2f34 ubuntu_btrfs_kernel_fixes.0061280d2c7240805cfd7b1f493da967c97c2f34 timestamp=1554856292 timeout=7200 localtime=Apr 10 00:31:32 00:31:32 DEBUG| Persistent state client._record_indent now set to 2 00:31:32 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.0061280d2c7240805cfd7b1f493da967c97c2f34', 'ubuntu_btrfs_kernel_fixes.0061280d2c7240805cfd7b1f493da967c97c2f34') 00:31:32 DEBUG| Waiting for pid 7757 for 7200 seconds 00:31:32 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/0061280d2c7240805cfd7b1f493da967c97c2f34.sh 2>&1' 00:31:32 DEBUG| [stdout] Invoking test 0061280d2c7240805cfd7b1f493da967c97c2f34 00:31:32 DEBUG| [stdout] 00:31:32 DEBUG| [stdout] fix 0061280d2c7240805cfd7b1f493da967c97c2f34 00:31:32 DEBUG| [stdout] 00:31:32 DEBUG| [stdout] Btrfs: fix the page that is beyond EOF 00:31:32 DEBUG| [stdout] 00:31:32 DEBUG| [stdout] Steps to reproduce: 00:31:32 DEBUG| [stdout] # mkfs.btrfs 00:31:32 DEBUG| [stdout] # mount 00:31:32 DEBUG| [stdout] # dd if=/dev/zero of=/ bs=512 seek=5 count=8 00:31:32 DEBUG| [stdout] # fallocate -p -o 2048 -l 16384 / 00:31:32 DEBUG| [stdout] # dd if=/dev/zero of=/ bs=4096 seek=3 count=8 conv=notrunc,nocreat 00:31:32 DEBUG| [stdout] # umount 00:31:32 DEBUG| [stdout] # dmesg 00:31:32 DEBUG| [stdout] WARNING: at fs/btrfs/inode.c:7140 btrfs_destroy_inode+0x2eb/0x330 00:31:32 DEBUG| [stdout] 00:31:32 DEBUG| [stdout] The reason is that we inputed a range which is beyond the end of the file. And 00:31:32 DEBUG| [stdout] because the end of this range was not page-aligned, we had to truncate the last 00:31:32 DEBUG| [stdout] page in this range, this operation is similar to a buffered file write. In other 00:31:32 DEBUG| [stdout] words, we reserved enough space and clear the data which was in the hole range 00:31:32 DEBUG| [stdout] on that page. But when we expanded that test file, write the data into the same 00:31:32 DEBUG| [stdout] page, we forgot that we have reserved enough space for the buffered write of 00:31:32 DEBUG| [stdout] that page because in most cases there is no page that is beyond the end of 00:31:32 DEBUG| [stdout] the file. As a result, we reserved the space twice. 00:31:32 DEBUG| [stdout] 00:31:32 DEBUG| [stdout] In fact, we needn't truncate the page if it is beyond the end of the file, just 00:31:32 DEBUG| [stdout] release the allocated space in that range. Fix the above problem by this way. 00:31:32 DEBUG| [stdout] 00:31:43 DEBUG| [stdout] 00:31:43 DEBUG| [stdout] PASS: 0061280d2c7240805cfd7b1f493da967c97c2f34 00:31:43 DEBUG| [stdout] 00:31:44 INFO | GOOD ubuntu_btrfs_kernel_fixes.0061280d2c7240805cfd7b1f493da967c97c2f34 ubuntu_btrfs_kernel_fixes.0061280d2c7240805cfd7b1f493da967c97c2f34 timestamp=1554856304 localtime=Apr 10 00:31:44 completed successfully 00:31:44 INFO | END GOOD ubuntu_btrfs_kernel_fixes.0061280d2c7240805cfd7b1f493da967c97c2f34 ubuntu_btrfs_kernel_fixes.0061280d2c7240805cfd7b1f493da967c97c2f34 timestamp=1554856304 localtime=Apr 10 00:31:44 00:31:44 DEBUG| Persistent state client._record_indent now set to 1 00:31:44 DEBUG| Persistent state client.unexpected_reboot deleted 00:31:44 INFO | Invoking test: 03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d.sh 00:31:44 DEBUG| Test has timeout: 7200 sec. 00:31:44 INFO | START ubuntu_btrfs_kernel_fixes.03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d ubuntu_btrfs_kernel_fixes.03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d timestamp=1554856304 timeout=7200 localtime=Apr 10 00:31:44 00:31:44 DEBUG| Persistent state client._record_indent now set to 2 00:31:44 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d', 'ubuntu_btrfs_kernel_fixes.03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d') 00:31:44 DEBUG| Waiting for pid 7850 for 7200 seconds 00:31:44 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d.sh 2>&1' 00:31:44 DEBUG| [stdout] Invoking test 03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d 00:31:44 DEBUG| [stdout] 00:31:44 DEBUG| [stdout] fix 03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d 00:31:44 DEBUG| [stdout] 00:31:44 DEBUG| [stdout] Btrfs: fix send dealing with file renames and directory moves 00:31:44 DEBUG| [stdout] 00:31:44 DEBUG| [stdout] This fixes a case that the commit titled: 00:31:44 DEBUG| [stdout] 00:31:44 DEBUG| [stdout] Btrfs: fix infinite path build loops in incremental send 00:31:44 DEBUG| [stdout] 00:31:44 DEBUG| [stdout] didn't cover. If the parent-child relationship between 2 directories 00:31:44 DEBUG| [stdout] is inverted, both get renamed, and the former parent has a file that 00:31:44 DEBUG| [stdout] got renamed too (but remains a child of that directory), the incremental 00:31:44 DEBUG| [stdout] send operation would use the file's old path after sending an unlink 00:31:44 DEBUG| [stdout] operation for that old path, causing receive to fail on future operations 00:31:44 DEBUG| [stdout] like changing owner, permissions or utimes of the corresponding inode. 00:31:44 DEBUG| [stdout] 00:31:44 DEBUG| [stdout] This is not a regression from the commit mentioned before, as without 00:31:44 DEBUG| [stdout] that commit we would fall into the issues that commit fixed, so it's 00:31:44 DEBUG| [stdout] just one case that wasn't covered before. 00:31:44 DEBUG| [stdout] 00:31:44 DEBUG| [stdout] btrfs-progs v4.4 00:31:44 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 00:31:44 DEBUG| [stdout] 00:31:44 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 00:31:44 DEBUG| [stdout] Label: (null) 00:31:44 DEBUG| [stdout] UUID: 92f12b7d-104b-4711-b5cc-d1aab3b2aa2d 00:31:44 DEBUG| [stdout] Node size: 16384 00:31:44 DEBUG| [stdout] Sector size: 4096 00:31:44 DEBUG| [stdout] Filesystem size: 1.00GiB 00:31:44 DEBUG| [stdout] Block group profiles: 00:31:44 DEBUG| [stdout] Data: single 8.00MiB 00:31:44 DEBUG| [stdout] Metadata: DUP 59.19MiB 00:31:44 DEBUG| [stdout] System: DUP 12.00MiB 00:31:44 DEBUG| [stdout] SSD detected: no 00:31:44 DEBUG| [stdout] Incompat features: extref, skinny-metadata 00:31:44 DEBUG| [stdout] Number of devices: 1 00:31:44 DEBUG| [stdout] Devices: 00:31:44 DEBUG| [stdout] ID SIZE PATH 00:31:44 DEBUG| [stdout] 1 1.00GiB /dev/loop0 00:31:44 DEBUG| [stdout] 00:31:44 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d' in '/tmp/mnt-03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d/snap1' 00:31:45 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d' in '/tmp/mnt-03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d/snap2' 00:31:45 DEBUG| [stdout] At subvol /tmp/mnt-03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d/snap2 00:31:55 DEBUG| [stdout] 00:31:55 DEBUG| [stdout] PASS: 03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d 00:31:55 DEBUG| [stdout] 00:31:56 INFO | GOOD ubuntu_btrfs_kernel_fixes.03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d ubuntu_btrfs_kernel_fixes.03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d timestamp=1554856316 localtime=Apr 10 00:31:56 completed successfully 00:31:56 INFO | END GOOD ubuntu_btrfs_kernel_fixes.03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d ubuntu_btrfs_kernel_fixes.03cb4fb9d86d591bc8a3f66eac6fb874b50b1b4d timestamp=1554856316 localtime=Apr 10 00:31:56 00:31:56 DEBUG| Persistent state client._record_indent now set to 1 00:31:56 DEBUG| Persistent state client.unexpected_reboot deleted 00:31:56 INFO | Invoking test: 0aeb8a6e67cddeac1d42cf64795fde0641a1cffb.sh 00:31:56 DEBUG| Test has timeout: 7200 sec. 00:31:56 INFO | START ubuntu_btrfs_kernel_fixes.0aeb8a6e67cddeac1d42cf64795fde0641a1cffb ubuntu_btrfs_kernel_fixes.0aeb8a6e67cddeac1d42cf64795fde0641a1cffb timestamp=1554856316 timeout=7200 localtime=Apr 10 00:31:56 00:31:56 DEBUG| Persistent state client._record_indent now set to 2 00:31:56 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.0aeb8a6e67cddeac1d42cf64795fde0641a1cffb', 'ubuntu_btrfs_kernel_fixes.0aeb8a6e67cddeac1d42cf64795fde0641a1cffb') 00:31:56 DEBUG| Waiting for pid 7942 for 7200 seconds 00:31:56 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/0aeb8a6e67cddeac1d42cf64795fde0641a1cffb.sh 2>&1' 00:31:56 DEBUG| [stdout] Invoking test 0aeb8a6e67cddeac1d42cf64795fde0641a1cffb 00:31:56 DEBUG| [stdout] 00:31:56 DEBUG| [stdout] fix 0aeb8a6e67cddeac1d42cf64795fde0641a1cffb 00:31:56 DEBUG| [stdout] 00:31:56 DEBUG| [stdout] btrfs: fix null pointer dereference in btrfs_show_devname when name is null 00:31:56 DEBUG| [stdout] 00:31:56 DEBUG| [stdout] dev->name is null but missing flag is not set. 00:31:56 DEBUG| [stdout] Strictly speaking the missing flag should have been set, but there 00:31:56 DEBUG| [stdout] are more places where code just checks if name is null. For now this 00:31:56 DEBUG| [stdout] patch does the same. 00:31:56 DEBUG| [stdout] 00:31:56 DEBUG| [stdout] stack: 00:31:56 DEBUG| [stdout] BUG: unable to handle kernel NULL pointer dereference at 0000000000000064 00:31:56 DEBUG| [stdout] IP: [] btrfs_show_devname+0x58/0xf0 [btrfs] 00:31:56 DEBUG| [stdout] 00:31:56 DEBUG| [stdout] [] show_vfsmnt+0x39/0x130 00:31:56 DEBUG| [stdout] [] m_show+0x16/0x20 00:31:56 DEBUG| [stdout] [] seq_read+0x296/0x390 00:31:56 DEBUG| [stdout] [] vfs_read+0x9d/0x160 00:31:56 DEBUG| [stdout] [] SyS_read+0x49/0x90 00:31:56 DEBUG| [stdout] [] system_call_fastpath+0x16/0x1b 00:31:56 DEBUG| [stdout] 00:31:57 DEBUG| [stdout] mount: /dev/loop0 is write-protected, mounting read-only 00:31:58 DEBUG| [stdout] Performing full device TRIM (2.00GiB) ... 00:32:08 DEBUG| [stdout] 00:32:08 DEBUG| [stdout] PASS: 0aeb8a6e67cddeac1d42cf64795fde0641a1cffb 00:32:08 DEBUG| [stdout] 00:32:08 INFO | GOOD ubuntu_btrfs_kernel_fixes.0aeb8a6e67cddeac1d42cf64795fde0641a1cffb ubuntu_btrfs_kernel_fixes.0aeb8a6e67cddeac1d42cf64795fde0641a1cffb timestamp=1554856328 localtime=Apr 10 00:32:08 completed successfully 00:32:08 INFO | END GOOD ubuntu_btrfs_kernel_fixes.0aeb8a6e67cddeac1d42cf64795fde0641a1cffb ubuntu_btrfs_kernel_fixes.0aeb8a6e67cddeac1d42cf64795fde0641a1cffb timestamp=1554856328 localtime=Apr 10 00:32:08 00:32:08 DEBUG| Persistent state client._record_indent now set to 1 00:32:08 DEBUG| Persistent state client.unexpected_reboot deleted 00:32:08 INFO | Invoking test: 0c1a98c81413e00a6c379d898e06a09350d31926.sh 00:32:08 DEBUG| Test has timeout: 7200 sec. 00:32:08 INFO | START ubuntu_btrfs_kernel_fixes.0c1a98c81413e00a6c379d898e06a09350d31926 ubuntu_btrfs_kernel_fixes.0c1a98c81413e00a6c379d898e06a09350d31926 timestamp=1554856328 timeout=7200 localtime=Apr 10 00:32:08 00:32:09 DEBUG| Persistent state client._record_indent now set to 2 00:32:09 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.0c1a98c81413e00a6c379d898e06a09350d31926', 'ubuntu_btrfs_kernel_fixes.0c1a98c81413e00a6c379d898e06a09350d31926') 00:32:09 DEBUG| Waiting for pid 8077 for 7200 seconds 00:32:09 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/0c1a98c81413e00a6c379d898e06a09350d31926.sh 2>&1' 00:32:09 DEBUG| [stdout] Invoking test 0c1a98c81413e00a6c379d898e06a09350d31926 00:32:09 DEBUG| [stdout] 00:32:09 DEBUG| [stdout] fix 0c1a98c81413e00a6c379d898e06a09350d31926 00:32:09 DEBUG| [stdout] 00:32:09 DEBUG| [stdout] Btrfs: fix the file extent gap when doing direct IO 00:32:09 DEBUG| [stdout] 00:32:09 DEBUG| [stdout] When we write some data to the place that is beyond the end of the file 00:32:09 DEBUG| [stdout] in direct I/O mode, a data hole will be created. And Btrfs should insert 00:32:09 DEBUG| [stdout] a file extent item that point to this hole into the fs tree. But unfortunately 00:32:09 DEBUG| [stdout] Btrfs forgets doing it. 00:32:09 DEBUG| [stdout] 00:32:09 DEBUG| [stdout] The following is a simple way to reproduce it: 00:32:09 DEBUG| [stdout] # mkfs.btrfs /dev/sdc2 00:32:09 DEBUG| [stdout] # mount /dev/sdc2 /test4 00:32:09 DEBUG| [stdout] # touch /test4/a 00:32:09 DEBUG| [stdout] # dd if=/dev/zero of=/test4/a seek=8 count=1 bs=4K oflag=direct conv=nocreat,notrunc 00:32:09 DEBUG| [stdout] # umount /test4 00:32:09 DEBUG| [stdout] # btrfsck /dev/sdc2 00:32:09 DEBUG| [stdout] root 5 inode 257 errors 100 00:32:09 DEBUG| [stdout] 00:32:09 DEBUG| [stdout] 1+0 records in 00:32:09 DEBUG| [stdout] 1+0 records out 00:32:09 DEBUG| [stdout] 4096 bytes (4.1 kB, 4.0 KiB) copied, 0.000240673 s, 17.0 MB/s 00:32:09 DEBUG| [stdout] checking extents 00:32:09 DEBUG| [stdout] checking free space cache 00:32:09 DEBUG| [stdout] checking fs roots 00:32:09 DEBUG| [stdout] checking csums 00:32:09 DEBUG| [stdout] checking root refs 00:32:19 DEBUG| [stdout] 00:32:19 DEBUG| [stdout] PASS: 0c1a98c81413e00a6c379d898e06a09350d31926 00:32:19 DEBUG| [stdout] 00:32:21 INFO | GOOD ubuntu_btrfs_kernel_fixes.0c1a98c81413e00a6c379d898e06a09350d31926 ubuntu_btrfs_kernel_fixes.0c1a98c81413e00a6c379d898e06a09350d31926 timestamp=1554856341 localtime=Apr 10 00:32:21 completed successfully 00:32:21 INFO | END GOOD ubuntu_btrfs_kernel_fixes.0c1a98c81413e00a6c379d898e06a09350d31926 ubuntu_btrfs_kernel_fixes.0c1a98c81413e00a6c379d898e06a09350d31926 timestamp=1554856341 localtime=Apr 10 00:32:21 00:32:21 DEBUG| Persistent state client._record_indent now set to 1 00:32:21 DEBUG| Persistent state client.unexpected_reboot deleted 00:32:21 INFO | Invoking test: 0e78340f3c1fc603e8016c8ac304766bcc65506e.sh 00:32:21 DEBUG| Test has timeout: 7200 sec. 00:32:21 INFO | START ubuntu_btrfs_kernel_fixes.0e78340f3c1fc603e8016c8ac304766bcc65506e ubuntu_btrfs_kernel_fixes.0e78340f3c1fc603e8016c8ac304766bcc65506e timestamp=1554856341 timeout=7200 localtime=Apr 10 00:32:21 00:32:21 DEBUG| Persistent state client._record_indent now set to 2 00:32:21 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.0e78340f3c1fc603e8016c8ac304766bcc65506e', 'ubuntu_btrfs_kernel_fixes.0e78340f3c1fc603e8016c8ac304766bcc65506e') 00:32:21 DEBUG| Waiting for pid 8165 for 7200 seconds 00:32:21 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/0e78340f3c1fc603e8016c8ac304766bcc65506e.sh 2>&1' 00:32:21 DEBUG| [stdout] Invoking test 0e78340f3c1fc603e8016c8ac304766bcc65506e 00:32:21 DEBUG| [stdout] 00:32:21 DEBUG| [stdout] fix 0e78340f3c1fc603e8016c8ac304766bcc65506e 00:32:21 DEBUG| [stdout] 00:32:21 DEBUG| [stdout] Btrfs: fix error handling in btrfs_get_sb 00:32:21 DEBUG| [stdout] 00:32:21 DEBUG| [stdout] If we failed to find the root subvol id, or the subvol=, we would 00:32:21 DEBUG| [stdout] deactivate the locked super and close the devices. The problem is at this point 00:32:21 DEBUG| [stdout] we have gotten the SB all setup, which includes setting super_operations, so 00:32:21 DEBUG| [stdout] when we'd deactiveate the super, we'd do a close_ctree() which closes the 00:32:21 DEBUG| [stdout] devices, so we'd end up closing the devices twice. So if you do something like 00:32:21 DEBUG| [stdout] this 00:32:21 DEBUG| [stdout] 00:32:21 DEBUG| [stdout] mount /dev/sda1 /mnt/test1 00:32:21 DEBUG| [stdout] mount /dev/sda1 /mnt/test2 -o subvol=xxx 00:32:21 DEBUG| [stdout] umount /mnt/test1 00:32:21 DEBUG| [stdout] 00:32:21 DEBUG| [stdout] it would blow up (if subvol xxx doesn't exist). This patch fixes that problem. 00:32:21 DEBUG| [stdout] 00:32:31 DEBUG| [stdout] 00:32:31 DEBUG| [stdout] PASS: 0e78340f3c1fc603e8016c8ac304766bcc65506e 00:32:31 DEBUG| [stdout] 00:32:33 INFO | GOOD ubuntu_btrfs_kernel_fixes.0e78340f3c1fc603e8016c8ac304766bcc65506e ubuntu_btrfs_kernel_fixes.0e78340f3c1fc603e8016c8ac304766bcc65506e timestamp=1554856353 localtime=Apr 10 00:32:33 completed successfully 00:32:33 INFO | END GOOD ubuntu_btrfs_kernel_fixes.0e78340f3c1fc603e8016c8ac304766bcc65506e ubuntu_btrfs_kernel_fixes.0e78340f3c1fc603e8016c8ac304766bcc65506e timestamp=1554856353 localtime=Apr 10 00:32:33 00:32:33 DEBUG| Persistent state client._record_indent now set to 1 00:32:33 DEBUG| Persistent state client.unexpected_reboot deleted 00:32:33 INFO | Invoking test: 1104a8855109a4051d74977f819a13b4516aa11e.sh 00:32:33 DEBUG| Test has timeout: 7200 sec. 00:32:33 INFO | START ubuntu_btrfs_kernel_fixes.1104a8855109a4051d74977f819a13b4516aa11e ubuntu_btrfs_kernel_fixes.1104a8855109a4051d74977f819a13b4516aa11e timestamp=1554856353 timeout=7200 localtime=Apr 10 00:32:33 00:32:33 DEBUG| Persistent state client._record_indent now set to 2 00:32:33 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.1104a8855109a4051d74977f819a13b4516aa11e', 'ubuntu_btrfs_kernel_fixes.1104a8855109a4051d74977f819a13b4516aa11e') 00:32:33 DEBUG| Waiting for pid 8248 for 7200 seconds 00:32:33 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/1104a8855109a4051d74977f819a13b4516aa11e.sh 2>&1' 00:32:33 DEBUG| [stdout] Invoking test 1104a8855109a4051d74977f819a13b4516aa11e 00:32:33 DEBUG| [stdout] 00:32:33 DEBUG| [stdout] fix 1104a8855109a4051d74977f819a13b4516aa11e 00:32:33 DEBUG| [stdout] 00:32:33 DEBUG| [stdout] btrfs: enhance superblock checks 00:32:33 DEBUG| [stdout] 00:32:33 DEBUG| [stdout] The superblock checksum is not verified upon mount. 00:32:33 DEBUG| [stdout] 00:32:33 DEBUG| [stdout] Add that check and also reorder existing checks to a more logical 00:32:33 DEBUG| [stdout] order. 00:32:33 DEBUG| [stdout] 00:32:33 DEBUG| [stdout] Current mkfs.btrfs does not calculate the correct checksum of 00:32:33 DEBUG| [stdout] super_block and thus a freshly created filesytem will fail to mount when 00:32:33 DEBUG| [stdout] this patch is applied. 00:32:33 DEBUG| [stdout] 00:32:33 DEBUG| [stdout] First transaction commit calculates correct superblock checksum and 00:32:33 DEBUG| [stdout] saves it to disk. 00:32:33 DEBUG| [stdout] 00:32:33 DEBUG| [stdout] Reproducer: 00:32:33 DEBUG| [stdout] $ mfks.btrfs /dev/sda 00:32:33 DEBUG| [stdout] $ mount /dev/sda /mnt 00:32:33 DEBUG| [stdout] $ btrfs scrub start /mnt 00:32:33 DEBUG| [stdout] $ sleep 5 00:32:33 DEBUG| [stdout] $ btrfs scrub status /mnt 00:32:33 DEBUG| [stdout] ... super:2 ... 00:32:33 DEBUG| [stdout] 00:32:33 DEBUG| [stdout] scrub started on /tmp/mnt-1104a8855109a4051d74977f819a13b4516aa11e, fsid 0a299026-0870-4397-b60b-e06a17596f3e (pid=8300) 00:32:38 DEBUG| [stdout] scrub status for 0a299026-0870-4397-b60b-e06a17596f3e 00:32:38 DEBUG| [stdout] scrub started at Wed Apr 10 00:32:33 2019 and finished after 00:00:00 00:32:38 DEBUG| [stdout] total bytes scrubbed: 256.00KiB with 0 errors 00:32:48 DEBUG| [stdout] 00:32:48 DEBUG| [stdout] PASS: 1104a8855109a4051d74977f819a13b4516aa11e 00:32:48 DEBUG| [stdout] 00:32:49 INFO | GOOD ubuntu_btrfs_kernel_fixes.1104a8855109a4051d74977f819a13b4516aa11e ubuntu_btrfs_kernel_fixes.1104a8855109a4051d74977f819a13b4516aa11e timestamp=1554856369 localtime=Apr 10 00:32:49 completed successfully 00:32:49 INFO | END GOOD ubuntu_btrfs_kernel_fixes.1104a8855109a4051d74977f819a13b4516aa11e ubuntu_btrfs_kernel_fixes.1104a8855109a4051d74977f819a13b4516aa11e timestamp=1554856369 localtime=Apr 10 00:32:49 00:32:49 DEBUG| Persistent state client._record_indent now set to 1 00:32:49 DEBUG| Persistent state client.unexpected_reboot deleted 00:32:49 INFO | Invoking test: 115930cb2d444a684975cf2325759cb48ebf80cc.sh 00:32:49 DEBUG| Test has timeout: 7200 sec. 00:32:49 INFO | START ubuntu_btrfs_kernel_fixes.115930cb2d444a684975cf2325759cb48ebf80cc ubuntu_btrfs_kernel_fixes.115930cb2d444a684975cf2325759cb48ebf80cc timestamp=1554856369 timeout=7200 localtime=Apr 10 00:32:49 00:32:49 DEBUG| Persistent state client._record_indent now set to 2 00:32:49 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.115930cb2d444a684975cf2325759cb48ebf80cc', 'ubuntu_btrfs_kernel_fixes.115930cb2d444a684975cf2325759cb48ebf80cc') 00:32:49 DEBUG| Waiting for pid 8336 for 7200 seconds 00:32:49 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/115930cb2d444a684975cf2325759cb48ebf80cc.sh 2>&1' 00:32:49 DEBUG| [stdout] Invoking test 115930cb2d444a684975cf2325759cb48ebf80cc 00:32:49 DEBUG| [stdout] 00:32:49 DEBUG| [stdout] fix 115930cb2d444a684975cf2325759cb48ebf80cc 00:32:49 DEBUG| [stdout] 00:32:49 DEBUG| [stdout] Btrfs: fix wrong write offset when replacing a device 00:32:49 DEBUG| [stdout] 00:32:49 DEBUG| [stdout] Miao Xie reported the following issue: 00:32:49 DEBUG| [stdout] 00:32:49 DEBUG| [stdout] The filesystem was corrupted after we did a device replace. 00:32:49 DEBUG| [stdout] 00:32:49 DEBUG| [stdout] Steps to reproduce: 00:32:49 DEBUG| [stdout] # mkfs.btrfs -f -m single -d raid10 .. 00:32:49 DEBUG| [stdout] # mount 00:32:49 DEBUG| [stdout] # btrfs replace start -rfB 1 00:32:49 DEBUG| [stdout] # umount 00:32:49 DEBUG| [stdout] # btrfsck 00:32:49 DEBUG| [stdout] 00:32:49 DEBUG| [stdout] The reason for the issue is that we changed the write offset by mistake, 00:32:49 DEBUG| [stdout] introduced by commit 625f1c8dc. 00:32:49 DEBUG| [stdout] 00:32:51 DEBUG| [stdout] checking extents 00:32:51 DEBUG| [stdout] checking free space cache 00:32:51 DEBUG| [stdout] checking fs roots 00:32:51 DEBUG| [stdout] checking csums 00:32:51 DEBUG| [stdout] checking root refs 00:32:51 DEBUG| [stdout] Checking filesystem on /dev/loop4 00:32:51 DEBUG| [stdout] UUID: 4bd523fc-a4da-48ee-8eec-73bc37858e55 00:32:51 DEBUG| [stdout] found 131074 bytes used err is 0 00:32:51 DEBUG| [stdout] total csum bytes: 0 00:32:51 DEBUG| [stdout] total tree bytes: 131072 00:32:51 DEBUG| [stdout] total fs tree bytes: 32768 00:32:51 DEBUG| [stdout] total extent tree bytes: 16384 00:32:51 DEBUG| [stdout] btree space waste bytes: 123360 00:32:51 DEBUG| [stdout] file data blocks allocated: 131072 00:32:51 DEBUG| [stdout] referenced 131072 00:33:01 DEBUG| [stdout] 00:33:01 DEBUG| [stdout] PASS: 115930cb2d444a684975cf2325759cb48ebf80cc 00:33:01 DEBUG| [stdout] 00:33:01 INFO | GOOD ubuntu_btrfs_kernel_fixes.115930cb2d444a684975cf2325759cb48ebf80cc ubuntu_btrfs_kernel_fixes.115930cb2d444a684975cf2325759cb48ebf80cc timestamp=1554856381 localtime=Apr 10 00:33:01 completed successfully 00:33:01 INFO | END GOOD ubuntu_btrfs_kernel_fixes.115930cb2d444a684975cf2325759cb48ebf80cc ubuntu_btrfs_kernel_fixes.115930cb2d444a684975cf2325759cb48ebf80cc timestamp=1554856381 localtime=Apr 10 00:33:01 00:33:01 DEBUG| Persistent state client._record_indent now set to 1 00:33:01 DEBUG| Persistent state client.unexpected_reboot deleted 00:33:01 INFO | Invoking test: 14c7cca780bd210564ae964f57a8bb807d0b3dbf.sh 00:33:01 DEBUG| Test has timeout: 7200 sec. 00:33:01 INFO | START ubuntu_btrfs_kernel_fixes.14c7cca780bd210564ae964f57a8bb807d0b3dbf ubuntu_btrfs_kernel_fixes.14c7cca780bd210564ae964f57a8bb807d0b3dbf timestamp=1554856381 timeout=7200 localtime=Apr 10 00:33:01 00:33:01 DEBUG| Persistent state client._record_indent now set to 2 00:33:01 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.14c7cca780bd210564ae964f57a8bb807d0b3dbf', 'ubuntu_btrfs_kernel_fixes.14c7cca780bd210564ae964f57a8bb807d0b3dbf') 00:33:01 DEBUG| Waiting for pid 8472 for 7200 seconds 00:33:02 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/14c7cca780bd210564ae964f57a8bb807d0b3dbf.sh 2>&1' 00:33:02 DEBUG| [stdout] Invoking test 14c7cca780bd210564ae964f57a8bb807d0b3dbf 00:33:02 DEBUG| [stdout] 00:33:02 DEBUG| [stdout] fix 14c7cca780bd210564ae964f57a8bb807d0b3dbf 00:33:02 DEBUG| [stdout] 00:33:02 DEBUG| [stdout] Btrfs: fix an oops when deleting snapshots 00:33:02 DEBUG| [stdout] 00:33:02 DEBUG| [stdout] We can reproduce this oops via the following steps: 00:33:02 DEBUG| [stdout] 00:33:02 DEBUG| [stdout] $ mkfs.btrfs /dev/sdb7 00:33:02 DEBUG| [stdout] $ mount /dev/sdb7 /mnt/btrfs 00:33:02 DEBUG| [stdout] $ for ((i=0; i<3; i++)); do btrfs sub snap /mnt/btrfs /mnt/btrfs/s_; done 00:33:02 DEBUG| [stdout] $ rm -fr /mnt/btrfs/* 00:33:02 DEBUG| [stdout] $ rm -fr /mnt/btrfs/* 00:33:02 DEBUG| [stdout] 00:33:02 DEBUG| [stdout] then we'll get 00:33:02 DEBUG| [stdout] ------------[ cut here ]------------ 00:33:02 DEBUG| [stdout] kernel BUG at fs/btrfs/inode.c:2264! 00:33:02 DEBUG| [stdout] [...] 00:33:02 DEBUG| [stdout] 00:33:02 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-14c7cca780bd210564ae964f57a8bb807d0b3dbf' in '/tmp/mnt-14c7cca780bd210564ae964f57a8bb807d0b3dbf/s_0' 00:33:02 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-14c7cca780bd210564ae964f57a8bb807d0b3dbf' in '/tmp/mnt-14c7cca780bd210564ae964f57a8bb807d0b3dbf/s_1' 00:33:02 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-14c7cca780bd210564ae964f57a8bb807d0b3dbf' in '/tmp/mnt-14c7cca780bd210564ae964f57a8bb807d0b3dbf/s_2' 00:33:12 DEBUG| [stdout] 00:33:12 DEBUG| [stdout] PASS: 14c7cca780bd210564ae964f57a8bb807d0b3dbf 00:33:12 DEBUG| [stdout] 00:33:14 INFO | GOOD ubuntu_btrfs_kernel_fixes.14c7cca780bd210564ae964f57a8bb807d0b3dbf ubuntu_btrfs_kernel_fixes.14c7cca780bd210564ae964f57a8bb807d0b3dbf timestamp=1554856393 localtime=Apr 10 00:33:13 completed successfully 00:33:14 INFO | END GOOD ubuntu_btrfs_kernel_fixes.14c7cca780bd210564ae964f57a8bb807d0b3dbf ubuntu_btrfs_kernel_fixes.14c7cca780bd210564ae964f57a8bb807d0b3dbf timestamp=1554856394 localtime=Apr 10 00:33:14 00:33:14 DEBUG| Persistent state client._record_indent now set to 1 00:33:14 DEBUG| Persistent state client.unexpected_reboot deleted 00:33:14 INFO | Invoking test: 198605a8e2077f174c9834c97b836f535e4e56dd.sh 00:33:14 DEBUG| Test has timeout: 7200 sec. 00:33:14 INFO | START ubuntu_btrfs_kernel_fixes.198605a8e2077f174c9834c97b836f535e4e56dd ubuntu_btrfs_kernel_fixes.198605a8e2077f174c9834c97b836f535e4e56dd timestamp=1554856394 timeout=7200 localtime=Apr 10 00:33:14 00:33:14 DEBUG| Persistent state client._record_indent now set to 2 00:33:14 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.198605a8e2077f174c9834c97b836f535e4e56dd', 'ubuntu_btrfs_kernel_fixes.198605a8e2077f174c9834c97b836f535e4e56dd') 00:33:14 DEBUG| Waiting for pid 8564 for 7200 seconds 00:33:14 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/198605a8e2077f174c9834c97b836f535e4e56dd.sh 2>&1' 00:33:14 DEBUG| [stdout] Invoking test 198605a8e2077f174c9834c97b836f535e4e56dd 00:33:14 DEBUG| [stdout] 00:33:14 DEBUG| [stdout] fix 198605a8e2077f174c9834c97b836f535e4e56dd 00:33:14 DEBUG| [stdout] 00:33:14 DEBUG| [stdout] Btrfs: get write access when doing resize fs 00:33:14 DEBUG| [stdout] 00:33:14 DEBUG| [stdout] Steps to reproduce: 00:33:14 DEBUG| [stdout] # mkfs.btrfs 00:33:14 DEBUG| [stdout] # mount -o ro 00:33:14 DEBUG| [stdout] # mount -o ro 00:33:14 DEBUG| [stdout] # mount -o remount,rw 00:33:14 DEBUG| [stdout] # umount 00:33:14 DEBUG| [stdout] # btrfs fi resize 10g 00:33:14 DEBUG| [stdout] 00:33:14 DEBUG| [stdout] We re-sized a R/O filesystem. The reason is that we just check the R/O flag 00:33:14 DEBUG| [stdout] of the super block object. It is not enough, because the kernel may set the 00:33:14 DEBUG| [stdout] R/O flag only for the mount point. We need invoke mnt_want_write_file() to 00:33:14 DEBUG| [stdout] do a full check. 00:33:14 DEBUG| [stdout] 00:33:14 DEBUG| [stdout] Attempting to resize a read-only file system, this is not allowed. 00:33:14 DEBUG| [stdout] ERROR: unable to resize '/tmp/mnt-198605a8e2077f174c9834c97b836f535e4e56dd/mnt1': Read-only file system 00:33:14 DEBUG| [stdout] Resize '/tmp/mnt-198605a8e2077f174c9834c97b836f535e4e56dd/mnt1' of '768M' 00:33:24 DEBUG| [stdout] 00:33:24 DEBUG| [stdout] PASS: 198605a8e2077f174c9834c97b836f535e4e56dd 00:33:24 DEBUG| [stdout] 00:33:26 INFO | GOOD ubuntu_btrfs_kernel_fixes.198605a8e2077f174c9834c97b836f535e4e56dd ubuntu_btrfs_kernel_fixes.198605a8e2077f174c9834c97b836f535e4e56dd timestamp=1554856406 localtime=Apr 10 00:33:26 completed successfully 00:33:26 INFO | END GOOD ubuntu_btrfs_kernel_fixes.198605a8e2077f174c9834c97b836f535e4e56dd ubuntu_btrfs_kernel_fixes.198605a8e2077f174c9834c97b836f535e4e56dd timestamp=1554856406 localtime=Apr 10 00:33:26 00:33:26 DEBUG| Persistent state client._record_indent now set to 1 00:33:26 DEBUG| Persistent state client.unexpected_reboot deleted 00:33:26 INFO | Invoking test: 213490b301773ea9c6fb89a86424a6901fcdd069.sh 00:33:26 DEBUG| Test has timeout: 7200 sec. 00:33:26 INFO | START ubuntu_btrfs_kernel_fixes.213490b301773ea9c6fb89a86424a6901fcdd069 ubuntu_btrfs_kernel_fixes.213490b301773ea9c6fb89a86424a6901fcdd069 timestamp=1554856406 timeout=7200 localtime=Apr 10 00:33:26 00:33:26 DEBUG| Persistent state client._record_indent now set to 2 00:33:26 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.213490b301773ea9c6fb89a86424a6901fcdd069', 'ubuntu_btrfs_kernel_fixes.213490b301773ea9c6fb89a86424a6901fcdd069') 00:33:26 DEBUG| Waiting for pid 8653 for 7200 seconds 00:33:26 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/213490b301773ea9c6fb89a86424a6901fcdd069.sh 2>&1' 00:33:26 DEBUG| [stdout] Invoking test 213490b301773ea9c6fb89a86424a6901fcdd069 00:33:26 DEBUG| [stdout] 00:33:26 DEBUG| [stdout] fix 213490b301773ea9c6fb89a86424a6901fcdd069 00:33:26 DEBUG| [stdout] 00:33:26 DEBUG| [stdout] Btrfs: fix a bug of per-file nocow 00:33:26 DEBUG| [stdout] 00:33:26 DEBUG| [stdout] Users report a bug, the reproducer is: 00:33:26 DEBUG| [stdout] $ mkfs.btrfs /dev/loop0 00:33:26 DEBUG| [stdout] $ mount /dev/loop0 /mnt/btrfs/ 00:33:26 DEBUG| [stdout] $ mkdir /mnt/btrfs/dir 00:33:26 DEBUG| [stdout] $ chattr +C /mnt/btrfs/dir/ 00:33:26 DEBUG| [stdout] $ dd if=/dev/zero of=/mnt/btrfs/dir/foo bs=4K count=10; 00:33:26 DEBUG| [stdout] $ lsattr /mnt/btrfs/dir/foo 00:33:26 DEBUG| [stdout] ---------------C- /mnt/btrfs/dir/foo 00:33:26 DEBUG| [stdout] $ filefrag /mnt/btrfs/dir/foo 00:33:26 DEBUG| [stdout] /mnt/btrfs/dir/foo: 1 extent found ---> an extent 00:33:26 DEBUG| [stdout] $ dd if=/dev/zero of=/mnt/btrfs/dir/foo bs=4K count=1 seek=5 conv=notrunc,nocreat; sync 00:33:26 DEBUG| [stdout] $ filefrag /mnt/btrfs/dir/foo 00:33:26 DEBUG| [stdout] /mnt/btrfs/dir/foo: 3 extents found ---> with nocow, btrfs breaks the extent into three parts 00:33:26 DEBUG| [stdout] 00:33:26 DEBUG| [stdout] The new created file should not only inherit the NODATACOW flag, but also 00:33:26 DEBUG| [stdout] honor NODATASUM flag, because we must do COW on a file extent with checksum. 00:33:26 DEBUG| [stdout] 00:33:26 DEBUG| [stdout] ---------------C /tmp/mnt-213490b301773ea9c6fb89a86424a6901fcdd069/dir/foo 00:33:26 DEBUG| [stdout] /tmp/mnt-213490b301773ea9c6fb89a86424a6901fcdd069/dir/foo: 1 extent found 00:33:26 DEBUG| [stdout] /tmp/mnt-213490b301773ea9c6fb89a86424a6901fcdd069/dir/foo: 1 extent found 00:33:37 DEBUG| [stdout] 00:33:37 DEBUG| [stdout] PASS: 213490b301773ea9c6fb89a86424a6901fcdd069 00:33:37 DEBUG| [stdout] 00:33:38 INFO | GOOD ubuntu_btrfs_kernel_fixes.213490b301773ea9c6fb89a86424a6901fcdd069 ubuntu_btrfs_kernel_fixes.213490b301773ea9c6fb89a86424a6901fcdd069 timestamp=1554856418 localtime=Apr 10 00:33:38 completed successfully 00:33:38 INFO | END GOOD ubuntu_btrfs_kernel_fixes.213490b301773ea9c6fb89a86424a6901fcdd069 ubuntu_btrfs_kernel_fixes.213490b301773ea9c6fb89a86424a6901fcdd069 timestamp=1554856418 localtime=Apr 10 00:33:38 00:33:38 DEBUG| Persistent state client._record_indent now set to 1 00:33:38 DEBUG| Persistent state client.unexpected_reboot deleted 00:33:38 INFO | Invoking test: 2365dd3ca02bbb6d3412404482e1d85752549953.sh 00:33:38 DEBUG| Test has timeout: 7200 sec. 00:33:38 INFO | START ubuntu_btrfs_kernel_fixes.2365dd3ca02bbb6d3412404482e1d85752549953 ubuntu_btrfs_kernel_fixes.2365dd3ca02bbb6d3412404482e1d85752549953 timestamp=1554856418 timeout=7200 localtime=Apr 10 00:33:38 00:33:38 DEBUG| Persistent state client._record_indent now set to 2 00:33:38 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.2365dd3ca02bbb6d3412404482e1d85752549953', 'ubuntu_btrfs_kernel_fixes.2365dd3ca02bbb6d3412404482e1d85752549953') 00:33:38 DEBUG| Waiting for pid 8749 for 7200 seconds 00:33:38 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/2365dd3ca02bbb6d3412404482e1d85752549953.sh 2>&1' 00:33:38 DEBUG| [stdout] Invoking test 2365dd3ca02bbb6d3412404482e1d85752549953 00:33:38 DEBUG| [stdout] 00:33:38 DEBUG| [stdout] fix 2365dd3ca02bbb6d3412404482e1d85752549953 00:33:38 DEBUG| [stdout] 00:33:38 DEBUG| [stdout] btrfs: undo sysfs when open_ctree() fails 00:33:38 DEBUG| [stdout] 00:33:38 DEBUG| [stdout] reproducer: 00:33:38 DEBUG| [stdout] mkfs.btrfs -f /dev/sdb && mount /dev/sdb /btrfs && btrfs dev add -f /dev/sdc /btrfs && umount /btrfs && wipefs -a /dev/sdc && mount -o degraded /dev/sdb /btrfs 00:33:38 DEBUG| [stdout] //above mount fails so try with RO 00:33:38 DEBUG| [stdout] mount -o degraded,ro /dev/sdb /btrfs 00:33:38 DEBUG| [stdout] 00:33:38 DEBUG| [stdout] ------ 00:33:38 DEBUG| [stdout] sysfs: cannot create duplicate filename '/fs/btrfs/3f48c79e-5ed0-4e87-b189-86e749e503f4' 00:33:38 DEBUG| [stdout] :: 00:33:38 DEBUG| [stdout] 00:33:38 DEBUG| [stdout] Note: this test is only valid for kernel without 4330e183c9537df20952d4a9ee142c536fb8ae54 00:33:39 DEBUG| [stdout] Performing full device TRIM (512.00MiB) ... 00:33:50 DEBUG| [stdout] 00:33:50 DEBUG| [stdout] PASS: 2365dd3ca02bbb6d3412404482e1d85752549953 00:33:50 DEBUG| [stdout] 00:33:51 INFO | GOOD ubuntu_btrfs_kernel_fixes.2365dd3ca02bbb6d3412404482e1d85752549953 ubuntu_btrfs_kernel_fixes.2365dd3ca02bbb6d3412404482e1d85752549953 timestamp=1554856431 localtime=Apr 10 00:33:51 completed successfully 00:33:51 INFO | END GOOD ubuntu_btrfs_kernel_fixes.2365dd3ca02bbb6d3412404482e1d85752549953 ubuntu_btrfs_kernel_fixes.2365dd3ca02bbb6d3412404482e1d85752549953 timestamp=1554856431 localtime=Apr 10 00:33:51 00:33:51 DEBUG| Persistent state client._record_indent now set to 1 00:33:51 DEBUG| Persistent state client.unexpected_reboot deleted 00:33:51 INFO | Invoking test: 27087f370174ebb298cdf6dcb36b1e4dcbe34e93.sh 00:33:51 DEBUG| Test has timeout: 7200 sec. 00:33:51 INFO | START ubuntu_btrfs_kernel_fixes.27087f370174ebb298cdf6dcb36b1e4dcbe34e93 ubuntu_btrfs_kernel_fixes.27087f370174ebb298cdf6dcb36b1e4dcbe34e93 timestamp=1554856431 timeout=7200 localtime=Apr 10 00:33:51 00:33:51 DEBUG| Persistent state client._record_indent now set to 2 00:33:51 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.27087f370174ebb298cdf6dcb36b1e4dcbe34e93', 'ubuntu_btrfs_kernel_fixes.27087f370174ebb298cdf6dcb36b1e4dcbe34e93') 00:33:51 DEBUG| Waiting for pid 8903 for 7200 seconds 00:33:51 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/27087f370174ebb298cdf6dcb36b1e4dcbe34e93.sh 2>&1' 00:33:51 DEBUG| [stdout] Invoking test 27087f370174ebb298cdf6dcb36b1e4dcbe34e93 00:33:51 DEBUG| [stdout] 00:33:51 DEBUG| [stdout] fix 27087f370174ebb298cdf6dcb36b1e4dcbe34e93 00:33:51 DEBUG| [stdout] 00:33:51 DEBUG| [stdout] Btrfs: init device stats for new devices 00:33:51 DEBUG| [stdout] 00:33:51 DEBUG| [stdout] Device stats are only initialized (read from tree items) on mount. 00:33:51 DEBUG| [stdout] Trying to read device stats after adding or replacing new devices will 00:33:51 DEBUG| [stdout] return errors. 00:33:51 DEBUG| [stdout] 00:33:51 DEBUG| [stdout] btrfs_init_new_device() and btrfs_init_dev_replace_tgtdev() are the two 00:33:51 DEBUG| [stdout] functions that allocate and initialize new btrfs_device structures after 00:33:51 DEBUG| [stdout] a filesystem is mounted. They set the device stats to zero by using 00:33:51 DEBUG| [stdout] kzalloc() which is correct for new devices. The only missing thing was 00:33:51 DEBUG| [stdout] to declare these stats as being valid (device->dev_stats_valid = 1) and 00:33:51 DEBUG| [stdout] this patch adds this missing code. 00:33:51 DEBUG| [stdout] 00:33:52 DEBUG| [stdout] Performing full device TRIM (512.00MiB) ... 00:34:02 DEBUG| [stdout] 00:34:02 DEBUG| [stdout] PASS: 27087f370174ebb298cdf6dcb36b1e4dcbe34e93 00:34:02 DEBUG| [stdout] 00:34:03 INFO | GOOD ubuntu_btrfs_kernel_fixes.27087f370174ebb298cdf6dcb36b1e4dcbe34e93 ubuntu_btrfs_kernel_fixes.27087f370174ebb298cdf6dcb36b1e4dcbe34e93 timestamp=1554856443 localtime=Apr 10 00:34:03 completed successfully 00:34:03 INFO | END GOOD ubuntu_btrfs_kernel_fixes.27087f370174ebb298cdf6dcb36b1e4dcbe34e93 ubuntu_btrfs_kernel_fixes.27087f370174ebb298cdf6dcb36b1e4dcbe34e93 timestamp=1554856443 localtime=Apr 10 00:34:03 00:34:03 DEBUG| Persistent state client._record_indent now set to 1 00:34:04 DEBUG| Persistent state client.unexpected_reboot deleted 00:34:04 INFO | Invoking test: 289454ad26a2d752e04b07234a175feda9ec0f4e.sh 00:34:04 DEBUG| Test has timeout: 7200 sec. 00:34:04 INFO | START ubuntu_btrfs_kernel_fixes.289454ad26a2d752e04b07234a175feda9ec0f4e ubuntu_btrfs_kernel_fixes.289454ad26a2d752e04b07234a175feda9ec0f4e timestamp=1554856444 timeout=7200 localtime=Apr 10 00:34:04 00:34:04 DEBUG| Persistent state client._record_indent now set to 2 00:34:04 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.289454ad26a2d752e04b07234a175feda9ec0f4e', 'ubuntu_btrfs_kernel_fixes.289454ad26a2d752e04b07234a175feda9ec0f4e') 00:34:04 DEBUG| Waiting for pid 9021 for 7200 seconds 00:34:04 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/289454ad26a2d752e04b07234a175feda9ec0f4e.sh 2>&1' 00:34:04 DEBUG| [stdout] Invoking test 289454ad26a2d752e04b07234a175feda9ec0f4e 00:34:04 DEBUG| [stdout] 00:34:04 DEBUG| [stdout] fix 289454ad26a2d752e04b07234a175feda9ec0f4e 00:34:04 DEBUG| [stdout] 00:34:04 DEBUG| [stdout] btrfs: clear bio reference after submit_one_bio() 00:34:04 DEBUG| [stdout] 00:34:04 DEBUG| [stdout] After submit_one_bio(), 'bio' can go away. However submit_extent_page() 00:34:04 DEBUG| [stdout] leave 'bio' referable if submit_one_bio() failed (e.g. -ENOMEM on OOM). 00:34:04 DEBUG| [stdout] It will cause invalid paging request when submit_extent_page() is called 00:34:04 DEBUG| [stdout] next time. 00:34:04 DEBUG| [stdout] 00:34:04 DEBUG| [stdout] Not exercised, need CONFIG_FAIL_PAGE_ALLOC, CONFIG_FAULT_INJECTION_DEBUG_FS 00:34:14 DEBUG| [stdout] 00:34:14 DEBUG| [stdout] PASS: 289454ad26a2d752e04b07234a175feda9ec0f4e 00:34:14 DEBUG| [stdout] 00:34:16 INFO | GOOD ubuntu_btrfs_kernel_fixes.289454ad26a2d752e04b07234a175feda9ec0f4e ubuntu_btrfs_kernel_fixes.289454ad26a2d752e04b07234a175feda9ec0f4e timestamp=1554856456 localtime=Apr 10 00:34:16 completed successfully 00:34:16 INFO | END GOOD ubuntu_btrfs_kernel_fixes.289454ad26a2d752e04b07234a175feda9ec0f4e ubuntu_btrfs_kernel_fixes.289454ad26a2d752e04b07234a175feda9ec0f4e timestamp=1554856456 localtime=Apr 10 00:34:16 00:34:16 DEBUG| Persistent state client._record_indent now set to 1 00:34:16 DEBUG| Persistent state client.unexpected_reboot deleted 00:34:16 INFO | Invoking test: 29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5.sh 00:34:16 DEBUG| Test has timeout: 7200 sec. 00:34:16 INFO | START ubuntu_btrfs_kernel_fixes.29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5 ubuntu_btrfs_kernel_fixes.29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5 timestamp=1554856456 timeout=7200 localtime=Apr 10 00:34:16 00:34:16 DEBUG| Persistent state client._record_indent now set to 2 00:34:16 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5', 'ubuntu_btrfs_kernel_fixes.29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5') 00:34:16 DEBUG| Waiting for pid 9064 for 7200 seconds 00:34:16 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5.sh 2>&1' 00:34:16 DEBUG| [stdout] Invoking test 29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5 00:34:16 DEBUG| [stdout] 00:34:16 DEBUG| [stdout] fix 29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5 00:34:16 DEBUG| [stdout] 00:34:16 DEBUG| [stdout] Btrfs: send, don't send rmdir for same target multiple times 00:34:16 DEBUG| [stdout] 00:34:16 DEBUG| [stdout] When doing an incremental send, if we delete a directory that has N > 1 00:34:16 DEBUG| [stdout] hardlinks for the same file and that file has the highest inode number 00:34:16 DEBUG| [stdout] inside the directory contents, an incremental send would send N times an 00:34:16 DEBUG| [stdout] rmdir operation against the directory. This made the btrfs receive command 00:34:16 DEBUG| [stdout] fail on the second rmdir instruction, as the target directory didn't exist 00:34:16 DEBUG| [stdout] anymore. 00:34:16 DEBUG| [stdout] 00:34:16 DEBUG| [stdout] btrfs-progs v4.4 00:34:16 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 00:34:16 DEBUG| [stdout] 00:34:16 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 00:34:16 DEBUG| [stdout] Label: (null) 00:34:16 DEBUG| [stdout] UUID: 65230902-169e-408a-a931-4e87284b32a0 00:34:16 DEBUG| [stdout] Node size: 16384 00:34:16 DEBUG| [stdout] Sector size: 4096 00:34:16 DEBUG| [stdout] Filesystem size: 1.00GiB 00:34:16 DEBUG| [stdout] Block group profiles: 00:34:16 DEBUG| [stdout] Data: single 8.00MiB 00:34:16 DEBUG| [stdout] Metadata: DUP 59.19MiB 00:34:16 DEBUG| [stdout] System: DUP 12.00MiB 00:34:16 DEBUG| [stdout] SSD detected: no 00:34:16 DEBUG| [stdout] Incompat features: extref, skinny-metadata 00:34:16 DEBUG| [stdout] Number of devices: 1 00:34:16 DEBUG| [stdout] Devices: 00:34:16 DEBUG| [stdout] ID SIZE PATH 00:34:16 DEBUG| [stdout] 1 1.00GiB /dev/loop0 00:34:16 DEBUG| [stdout] 00:34:16 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5' in '/tmp/mnt-29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5/snap1' 00:34:16 DEBUG| [stdout] At subvol /tmp/mnt-29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5/snap1 00:34:16 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5' in '/tmp/mnt-29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5/snap2' 00:34:16 DEBUG| [stdout] At subvol /tmp/mnt-29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5/snap2 00:34:16 DEBUG| [stdout] btrfs-progs v4.4 00:34:16 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 00:34:16 DEBUG| [stdout] 00:34:16 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 00:34:16 DEBUG| [stdout] Label: (null) 00:34:16 DEBUG| [stdout] UUID: 2149aa95-7661-456f-bf5b-b69314c05565 00:34:16 DEBUG| [stdout] Node size: 16384 00:34:16 DEBUG| [stdout] Sector size: 4096 00:34:16 DEBUG| [stdout] Filesystem size: 1.00GiB 00:34:16 DEBUG| [stdout] Block group profiles: 00:34:16 DEBUG| [stdout] Data: single 8.00MiB 00:34:16 DEBUG| [stdout] Metadata: DUP 59.19MiB 00:34:16 DEBUG| [stdout] System: DUP 12.00MiB 00:34:16 DEBUG| [stdout] SSD detected: no 00:34:16 DEBUG| [stdout] Incompat features: extref, skinny-metadata 00:34:16 DEBUG| [stdout] Number of devices: 1 00:34:16 DEBUG| [stdout] Devices: 00:34:16 DEBUG| [stdout] ID SIZE PATH 00:34:16 DEBUG| [stdout] 1 1.00GiB /dev/loop0 00:34:16 DEBUG| [stdout] 00:34:17 DEBUG| [stdout] At subvol snap1 00:34:17 DEBUG| [stdout] At snapshot snap2 00:34:27 DEBUG| [stdout] 00:34:27 DEBUG| [stdout] PASS: 29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5 00:34:27 DEBUG| [stdout] 00:34:28 INFO | GOOD ubuntu_btrfs_kernel_fixes.29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5 ubuntu_btrfs_kernel_fixes.29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5 timestamp=1554856468 localtime=Apr 10 00:34:28 completed successfully 00:34:28 INFO | END GOOD ubuntu_btrfs_kernel_fixes.29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5 ubuntu_btrfs_kernel_fixes.29d6d30f5c8aa58b04f40a58442df3bcaae5a1d5 timestamp=1554856468 localtime=Apr 10 00:34:28 00:34:28 DEBUG| Persistent state client._record_indent now set to 1 00:34:28 DEBUG| Persistent state client.unexpected_reboot deleted 00:34:28 INFO | Invoking test: 2b863a135f22f242ba4fc669f3a6b2f6c826832c.sh 00:34:28 DEBUG| Test has timeout: 7200 sec. 00:34:28 INFO | START ubuntu_btrfs_kernel_fixes.2b863a135f22f242ba4fc669f3a6b2f6c826832c ubuntu_btrfs_kernel_fixes.2b863a135f22f242ba4fc669f3a6b2f6c826832c timestamp=1554856468 timeout=7200 localtime=Apr 10 00:34:28 00:34:28 DEBUG| Persistent state client._record_indent now set to 2 00:34:28 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.2b863a135f22f242ba4fc669f3a6b2f6c826832c', 'ubuntu_btrfs_kernel_fixes.2b863a135f22f242ba4fc669f3a6b2f6c826832c') 00:34:28 DEBUG| Waiting for pid 9190 for 7200 seconds 00:34:28 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/2b863a135f22f242ba4fc669f3a6b2f6c826832c.sh 2>&1' 00:34:28 DEBUG| [stdout] Invoking test 2b863a135f22f242ba4fc669f3a6b2f6c826832c 00:34:28 DEBUG| [stdout] 00:34:28 DEBUG| [stdout] fix 2b863a135f22f242ba4fc669f3a6b2f6c826832c 00:34:28 DEBUG| [stdout] 00:34:28 DEBUG| [stdout] Btrfs: incremental send, fix invalid path after dir rename 00:34:28 DEBUG| [stdout] 00:34:28 DEBUG| [stdout] This fixes yet one more case not caught by the commit titled: 00:34:28 DEBUG| [stdout] 00:34:28 DEBUG| [stdout] Btrfs: fix infinite path build loops in incremental send 00:34:28 DEBUG| [stdout] 00:34:28 DEBUG| [stdout] In this case, even before the initial full send, we have a directory 00:34:28 DEBUG| [stdout] which is a child of a directory with a higher inode number. Then we 00:34:28 DEBUG| [stdout] perform the initial send, and after we rename both the child and the 00:34:28 DEBUG| [stdout] parent, without moving them around. After doing these 2 renames, an 00:34:28 DEBUG| [stdout] incremental send sent a rename instruction for the child directory 00:34:28 DEBUG| [stdout] which contained an invalid "from" path (referenced the parent's old 00:34:28 DEBUG| [stdout] name, not the new one), which made the btrfs receive command fail. 00:34:28 DEBUG| [stdout] 00:34:28 DEBUG| [stdout] btrfs-progs v4.4 00:34:28 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 00:34:28 DEBUG| [stdout] 00:34:28 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 00:34:28 DEBUG| [stdout] Label: (null) 00:34:28 DEBUG| [stdout] UUID: 8b914e52-46ad-4918-b07c-ac7edbace29e 00:34:28 DEBUG| [stdout] Node size: 16384 00:34:28 DEBUG| [stdout] Sector size: 4096 00:34:28 DEBUG| [stdout] Filesystem size: 1.00GiB 00:34:28 DEBUG| [stdout] Block group profiles: 00:34:28 DEBUG| [stdout] Data: single 8.00MiB 00:34:28 DEBUG| [stdout] Metadata: DUP 59.19MiB 00:34:28 DEBUG| [stdout] System: DUP 12.00MiB 00:34:28 DEBUG| [stdout] SSD detected: no 00:34:28 DEBUG| [stdout] Incompat features: extref, skinny-metadata 00:34:28 DEBUG| [stdout] Number of devices: 1 00:34:28 DEBUG| [stdout] Devices: 00:34:28 DEBUG| [stdout] ID SIZE PATH 00:34:28 DEBUG| [stdout] 1 1.00GiB /dev/loop0 00:34:28 DEBUG| [stdout] 00:34:28 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-2b863a135f22f242ba4fc669f3a6b2f6c826832c' in '/tmp/mnt-2b863a135f22f242ba4fc669f3a6b2f6c826832c/snap1' 00:34:28 DEBUG| [stdout] At subvol /tmp/mnt-2b863a135f22f242ba4fc669f3a6b2f6c826832c/snap1 00:34:29 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-2b863a135f22f242ba4fc669f3a6b2f6c826832c' in '/tmp/mnt-2b863a135f22f242ba4fc669f3a6b2f6c826832c/snap2' 00:34:29 DEBUG| [stdout] At subvol /tmp/mnt-2b863a135f22f242ba4fc669f3a6b2f6c826832c/snap2 00:34:29 DEBUG| [stdout] btrfs-progs v4.4 00:34:29 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 00:34:29 DEBUG| [stdout] 00:34:29 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 00:34:29 DEBUG| [stdout] Label: (null) 00:34:29 DEBUG| [stdout] UUID: f35cecb7-5e15-499b-b002-7bf191b91648 00:34:29 DEBUG| [stdout] Node size: 16384 00:34:29 DEBUG| [stdout] Sector size: 4096 00:34:29 DEBUG| [stdout] Filesystem size: 1.00GiB 00:34:29 DEBUG| [stdout] Block group profiles: 00:34:29 DEBUG| [stdout] Data: single 8.00MiB 00:34:29 DEBUG| [stdout] Metadata: DUP 59.19MiB 00:34:29 DEBUG| [stdout] System: DUP 12.00MiB 00:34:29 DEBUG| [stdout] SSD detected: no 00:34:29 DEBUG| [stdout] Incompat features: extref, skinny-metadata 00:34:29 DEBUG| [stdout] Number of devices: 1 00:34:29 DEBUG| [stdout] Devices: 00:34:29 DEBUG| [stdout] ID SIZE PATH 00:34:29 DEBUG| [stdout] 1 1.00GiB /dev/loop0 00:34:29 DEBUG| [stdout] 00:34:29 DEBUG| [stdout] At subvol snap1 00:34:29 DEBUG| [stdout] At snapshot snap2 00:34:39 DEBUG| [stdout] 00:34:39 DEBUG| [stdout] PASS: 2b863a135f22f242ba4fc669f3a6b2f6c826832c 00:34:39 DEBUG| [stdout] 00:34:40 INFO | GOOD ubuntu_btrfs_kernel_fixes.2b863a135f22f242ba4fc669f3a6b2f6c826832c ubuntu_btrfs_kernel_fixes.2b863a135f22f242ba4fc669f3a6b2f6c826832c timestamp=1554856480 localtime=Apr 10 00:34:40 completed successfully 00:34:40 INFO | END GOOD ubuntu_btrfs_kernel_fixes.2b863a135f22f242ba4fc669f3a6b2f6c826832c ubuntu_btrfs_kernel_fixes.2b863a135f22f242ba4fc669f3a6b2f6c826832c timestamp=1554856480 localtime=Apr 10 00:34:40 00:34:40 DEBUG| Persistent state client._record_indent now set to 1 00:34:40 DEBUG| Persistent state client.unexpected_reboot deleted 00:34:40 INFO | Invoking test: 306424cc880a0fbbdc99eee1f43d056a301a180f.sh 00:34:40 DEBUG| Test has timeout: 7200 sec. 00:34:40 INFO | START ubuntu_btrfs_kernel_fixes.306424cc880a0fbbdc99eee1f43d056a301a180f ubuntu_btrfs_kernel_fixes.306424cc880a0fbbdc99eee1f43d056a301a180f timestamp=1554856480 timeout=7200 localtime=Apr 10 00:34:40 00:34:40 DEBUG| Persistent state client._record_indent now set to 2 00:34:40 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.306424cc880a0fbbdc99eee1f43d056a301a180f', 'ubuntu_btrfs_kernel_fixes.306424cc880a0fbbdc99eee1f43d056a301a180f') 00:34:40 DEBUG| Waiting for pid 9317 for 7200 seconds 00:34:40 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/306424cc880a0fbbdc99eee1f43d056a301a180f.sh 2>&1' 00:34:40 DEBUG| [stdout] Invoking test 306424cc880a0fbbdc99eee1f43d056a301a180f 00:34:40 DEBUG| [stdout] 00:34:40 DEBUG| [stdout] fix 306424cc880a0fbbdc99eee1f43d056a301a180f 00:34:40 DEBUG| [stdout] 00:34:40 DEBUG| [stdout] Btrfs: fix ctime update of on-disk inode 00:34:40 DEBUG| [stdout] 00:34:40 DEBUG| [stdout] To reproduce the bug: 00:34:40 DEBUG| [stdout] 00:34:40 DEBUG| [stdout] # touch /mnt/tmp 00:34:40 DEBUG| [stdout] # stat /mnt/tmp | grep Change 00:34:40 DEBUG| [stdout] Change: 2011-12-09 09:32:23.412105981 +0800 00:34:40 DEBUG| [stdout] # chattr +i /mnt/tmp 00:34:40 DEBUG| [stdout] # stat /mnt/tmp | grep Change 00:34:40 DEBUG| [stdout] Change: 2011-12-09 09:32:43.198105295 +0800 00:34:40 DEBUG| [stdout] # umount /mnt 00:34:40 DEBUG| [stdout] # mount /dev/loop1 /mnt 00:34:40 DEBUG| [stdout] # stat /mnt/tmp | grep Change 00:34:40 DEBUG| [stdout] Change: 2011-12-09 09:32:23.412105981 +0800 00:34:40 DEBUG| [stdout] 00:34:40 DEBUG| [stdout] We should update ctime of in-memory inode before calling 00:34:40 DEBUG| [stdout] btrfs_update_inode(). 00:34:40 DEBUG| [stdout] 00:34:41 DEBUG| [stdout] Change: 2019-04-10 00:34:41.121750045 +0000 00:34:42 DEBUG| [stdout] Change: 2019-04-10 00:34:42.126252082 +0000 00:34:43 DEBUG| [stdout] Change: 2019-04-10 00:34:42.126252082 +0000 00:34:53 DEBUG| [stdout] 00:34:53 DEBUG| [stdout] PASS: 306424cc880a0fbbdc99eee1f43d056a301a180f 00:34:53 DEBUG| [stdout] 00:34:54 INFO | GOOD ubuntu_btrfs_kernel_fixes.306424cc880a0fbbdc99eee1f43d056a301a180f ubuntu_btrfs_kernel_fixes.306424cc880a0fbbdc99eee1f43d056a301a180f timestamp=1554856494 localtime=Apr 10 00:34:54 completed successfully 00:34:54 INFO | END GOOD ubuntu_btrfs_kernel_fixes.306424cc880a0fbbdc99eee1f43d056a301a180f ubuntu_btrfs_kernel_fixes.306424cc880a0fbbdc99eee1f43d056a301a180f timestamp=1554856494 localtime=Apr 10 00:34:54 00:34:54 DEBUG| Persistent state client._record_indent now set to 1 00:34:54 DEBUG| Persistent state client.unexpected_reboot deleted 00:34:54 INFO | Invoking test: 361048f586f59d414421c6486dd846063a0cac98.sh 00:34:54 DEBUG| Test has timeout: 7200 sec. 00:34:54 INFO | START ubuntu_btrfs_kernel_fixes.361048f586f59d414421c6486dd846063a0cac98 ubuntu_btrfs_kernel_fixes.361048f586f59d414421c6486dd846063a0cac98 timestamp=1554856494 timeout=7200 localtime=Apr 10 00:34:54 00:34:55 DEBUG| Persistent state client._record_indent now set to 2 00:34:55 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.361048f586f59d414421c6486dd846063a0cac98', 'ubuntu_btrfs_kernel_fixes.361048f586f59d414421c6486dd846063a0cac98') 00:34:55 DEBUG| Waiting for pid 9443 for 7200 seconds 00:34:55 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/361048f586f59d414421c6486dd846063a0cac98.sh 2>&1' 00:34:55 DEBUG| [stdout] Invoking test 361048f586f59d414421c6486dd846063a0cac98 00:34:55 DEBUG| [stdout] 00:34:55 DEBUG| [stdout] fix 361048f586f59d414421c6486dd846063a0cac98 00:34:55 DEBUG| [stdout] 00:34:55 DEBUG| [stdout] Btrfs: fix full backref problem when inserting shared block reference 00:34:55 DEBUG| [stdout] 00:34:55 DEBUG| [stdout] If we create several snapshots at the same time, the following BUG_ON() will be 00:34:55 DEBUG| [stdout] triggered. 00:34:55 DEBUG| [stdout] 00:34:55 DEBUG| [stdout] kernel BUG at fs/btrfs/extent-tree.c:6047! 00:34:55 DEBUG| [stdout] 00:34:55 DEBUG| [stdout] Steps to reproduce: 00:34:55 DEBUG| [stdout] # mkfs.btrfs 00:34:55 DEBUG| [stdout] # mount 00:34:55 DEBUG| [stdout] # cd 00:34:55 DEBUG| [stdout] # for ((i=0;i<2400;i++)); do touch long_name_to_make_tree_more_deep; done 00:34:55 DEBUG| [stdout] # for ((i=0; i<4; i++)) 00:34:55 DEBUG| [stdout] > do 00:34:55 DEBUG| [stdout] > mkdir 00:34:55 DEBUG| [stdout] > for ((j=0; j<200; j++)) 00:34:55 DEBUG| [stdout] > do 00:34:55 DEBUG| [stdout] > btrfs sub snap . / 00:34:55 DEBUG| [stdout] > done & 00:34:55 DEBUG| [stdout] > done 00:34:55 DEBUG| [stdout] 00:36:09 DEBUG| [stdout] 00:36:09 DEBUG| [stdout] PASS: 361048f586f59d414421c6486dd846063a0cac98 00:36:09 DEBUG| [stdout] 00:36:11 INFO | GOOD ubuntu_btrfs_kernel_fixes.361048f586f59d414421c6486dd846063a0cac98 ubuntu_btrfs_kernel_fixes.361048f586f59d414421c6486dd846063a0cac98 timestamp=1554856571 localtime=Apr 10 00:36:11 completed successfully 00:36:11 INFO | END GOOD ubuntu_btrfs_kernel_fixes.361048f586f59d414421c6486dd846063a0cac98 ubuntu_btrfs_kernel_fixes.361048f586f59d414421c6486dd846063a0cac98 timestamp=1554856571 localtime=Apr 10 00:36:11 00:36:11 DEBUG| Persistent state client._record_indent now set to 1 00:36:11 DEBUG| Persistent state client.unexpected_reboot deleted 00:36:11 INFO | Invoking test: 361c093d7f99c3f6cbb07d5c580ce778ab418c42.sh 00:36:11 DEBUG| Test has timeout: 7200 sec. 00:36:11 INFO | START ubuntu_btrfs_kernel_fixes.361c093d7f99c3f6cbb07d5c580ce778ab418c42 ubuntu_btrfs_kernel_fixes.361c093d7f99c3f6cbb07d5c580ce778ab418c42 timestamp=1554856571 timeout=7200 localtime=Apr 10 00:36:11 00:36:11 DEBUG| Persistent state client._record_indent now set to 2 00:36:11 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.361c093d7f99c3f6cbb07d5c580ce778ab418c42', 'ubuntu_btrfs_kernel_fixes.361c093d7f99c3f6cbb07d5c580ce778ab418c42') 00:36:11 DEBUG| Waiting for pid 12738 for 7200 seconds 00:36:11 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/361c093d7f99c3f6cbb07d5c580ce778ab418c42.sh 2>&1' 00:36:11 DEBUG| [stdout] Invoking test 361c093d7f99c3f6cbb07d5c580ce778ab418c42 00:36:11 DEBUG| [stdout] 00:36:11 DEBUG| [stdout] fix 361c093d7f99c3f6cbb07d5c580ce778ab418c42 00:36:11 DEBUG| [stdout] 00:36:11 DEBUG| [stdout] Btrfs: Wait for uuid-tree rebuild task on remount read-only 00:36:11 DEBUG| [stdout] 00:36:11 DEBUG| [stdout] If the user remounts the filesystem read-only while the uuid-tree 00:36:11 DEBUG| [stdout] scan and rebuild task is still running (this happens once after the 00:36:11 DEBUG| [stdout] filesystem was mounted with an old kernel, or when forced with the 00:36:11 DEBUG| [stdout] mount options), the remount should wait on the tasks completion 00:36:11 DEBUG| [stdout] before setting the filesystem read-only. Otherwise the background 00:36:11 DEBUG| [stdout] task continues to write to the filesystem which is apparently not 00:36:11 DEBUG| [stdout] what users expect. 00:36:11 DEBUG| [stdout] 02:01:06 DEBUG| [stdout] 02:01:06 DEBUG| [stdout] PASS: 361c093d7f99c3f6cbb07d5c580ce778ab418c42 02:01:06 DEBUG| [stdout] 02:01:08 INFO | GOOD ubuntu_btrfs_kernel_fixes.361c093d7f99c3f6cbb07d5c580ce778ab418c42 ubuntu_btrfs_kernel_fixes.361c093d7f99c3f6cbb07d5c580ce778ab418c42 timestamp=1554861668 localtime=Apr 10 02:01:08 completed successfully 02:01:08 INFO | END GOOD ubuntu_btrfs_kernel_fixes.361c093d7f99c3f6cbb07d5c580ce778ab418c42 ubuntu_btrfs_kernel_fixes.361c093d7f99c3f6cbb07d5c580ce778ab418c42 timestamp=1554861668 localtime=Apr 10 02:01:08 02:01:08 DEBUG| Persistent state client._record_indent now set to 1 02:01:08 DEBUG| Persistent state client.unexpected_reboot deleted 02:01:08 INFO | Invoking test: 3821f348889e506efbd268cc8149e0ebfa47c4e5.sh 02:01:08 DEBUG| Test has timeout: 7200 sec. 02:01:08 INFO | START ubuntu_btrfs_kernel_fixes.3821f348889e506efbd268cc8149e0ebfa47c4e5 ubuntu_btrfs_kernel_fixes.3821f348889e506efbd268cc8149e0ebfa47c4e5 timestamp=1554861668 timeout=7200 localtime=Apr 10 02:01:08 02:01:09 DEBUG| Persistent state client._record_indent now set to 2 02:01:09 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.3821f348889e506efbd268cc8149e0ebfa47c4e5', 'ubuntu_btrfs_kernel_fixes.3821f348889e506efbd268cc8149e0ebfa47c4e5') 02:01:09 DEBUG| Waiting for pid 3909 for 7200 seconds 02:01:09 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/3821f348889e506efbd268cc8149e0ebfa47c4e5.sh 2>&1' 02:01:09 DEBUG| [stdout] Invoking test 3821f348889e506efbd268cc8149e0ebfa47c4e5 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] fix 3821f348889e506efbd268cc8149e0ebfa47c4e5 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] Btrfs: update commit root on snapshot creation after orphan cleanup 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] On snapshot creation (either writable or read-only), we do orphan cleanup 02:01:09 DEBUG| [stdout] against the root of the snapshot. If the cleanup did remove any orphans, 02:01:09 DEBUG| [stdout] then the current root node will be different from the commit root node 02:01:09 DEBUG| [stdout] until the next transaction commit happens. 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] A send operation always uses the commit root of a snapshot - this means 02:01:09 DEBUG| [stdout] it will see the orphans if it starts computing the send stream before the 02:01:09 DEBUG| [stdout] next transaction commit happens (triggered by a timer or sync() for .e.g), 02:01:09 DEBUG| [stdout] which is when the commit root gets assigned a reference to current root, 02:01:09 DEBUG| [stdout] where the orphans are not visible anymore. The consequence of send seeing 02:01:09 DEBUG| [stdout] the orphans is explained below. 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] For example: 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] mkfs.btrfs -f /dev/sdd 02:01:09 DEBUG| [stdout] mount -o commit=999 /dev/sdd /mnt 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] # open a file with O_TMPFILE and leave it open 02:01:09 DEBUG| [stdout] # write some data to the file 02:01:09 DEBUG| [stdout] btrfs subvolume snapshot -r /mnt /mnt/snap1 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] btrfs send /mnt/snap1 -f /tmp/send.data 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] The send operation will fail with the following error: 02:01:09 DEBUG| [stdout] ERROR: send ioctl failed with -116: Stale file handle 02:01:09 DEBUG| [stdout] 02:01:09 DEBUG| [stdout] /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/3821f348889e506efbd268cc8149e0ebfa47c4e5.c:27:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 02:01:09 DEBUG| [stdout] main(int argc, char **argv) 02:01:09 DEBUG| [stdout] ^ 02:01:11 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-3821f348889e506efbd268cc8149e0ebfa47c4e5' in '/tmp/mnt-3821f348889e506efbd268cc8149e0ebfa47c4e5/snap1' 02:01:11 DEBUG| [stdout] At subvol /tmp/mnt-3821f348889e506efbd268cc8149e0ebfa47c4e5/snap1 02:01:21 DEBUG| [stdout] 02:01:21 DEBUG| [stdout] PASS: 3821f348889e506efbd268cc8149e0ebfa47c4e5 02:01:21 DEBUG| [stdout] 02:01:23 INFO | GOOD ubuntu_btrfs_kernel_fixes.3821f348889e506efbd268cc8149e0ebfa47c4e5 ubuntu_btrfs_kernel_fixes.3821f348889e506efbd268cc8149e0ebfa47c4e5 timestamp=1554861683 localtime=Apr 10 02:01:23 completed successfully 02:01:23 INFO | END GOOD ubuntu_btrfs_kernel_fixes.3821f348889e506efbd268cc8149e0ebfa47c4e5 ubuntu_btrfs_kernel_fixes.3821f348889e506efbd268cc8149e0ebfa47c4e5 timestamp=1554861683 localtime=Apr 10 02:01:23 02:01:23 DEBUG| Persistent state client._record_indent now set to 1 02:01:23 DEBUG| Persistent state client.unexpected_reboot deleted 02:01:23 INFO | Invoking test: 3b080b2564287be91605bfd1d5ee985696e61d3c.sh 02:01:23 DEBUG| Test has timeout: 7200 sec. 02:01:23 INFO | START ubuntu_btrfs_kernel_fixes.3b080b2564287be91605bfd1d5ee985696e61d3c ubuntu_btrfs_kernel_fixes.3b080b2564287be91605bfd1d5ee985696e61d3c timestamp=1554861683 timeout=7200 localtime=Apr 10 02:01:23 02:01:23 DEBUG| Persistent state client._record_indent now set to 2 02:01:23 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.3b080b2564287be91605bfd1d5ee985696e61d3c', 'ubuntu_btrfs_kernel_fixes.3b080b2564287be91605bfd1d5ee985696e61d3c') 02:01:23 DEBUG| Waiting for pid 4001 for 7200 seconds 02:01:23 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/3b080b2564287be91605bfd1d5ee985696e61d3c.sh 2>&1' 02:01:23 DEBUG| [stdout] Invoking test 3b080b2564287be91605bfd1d5ee985696e61d3c 02:01:23 DEBUG| [stdout] 02:01:23 DEBUG| [stdout] fix 3b080b2564287be91605bfd1d5ee985696e61d3c 02:01:23 DEBUG| [stdout] 02:01:23 DEBUG| [stdout] Btrfs: scrub raid56 stripes in the right way 02:01:23 DEBUG| [stdout] 02:01:23 DEBUG| [stdout] Steps to reproduce: 02:01:23 DEBUG| [stdout] # mkfs.btrfs -f /dev/sda[8-11] -m raid5 -d raid5 02:01:23 DEBUG| [stdout] # mount /dev/sda8 /mnt 02:01:23 DEBUG| [stdout] # btrfs scrub start -BR /mnt 02:01:23 DEBUG| [stdout] # echo 0 <--unverified errors make return value be 3 02:01:23 DEBUG| [stdout] 02:01:23 DEBUG| [stdout] This is because we don't setup right mapping between physical 02:01:23 DEBUG| [stdout] and logical address for raid56, which makes checksum mismatch. 02:01:23 DEBUG| [stdout] But we will find everthing is fine later when rechecking using 02:01:23 DEBUG| [stdout] btrfs_map_block(). 02:01:23 DEBUG| [stdout] 02:01:23 DEBUG| [stdout] This patch fixed the problem by settuping right mappings and 02:01:23 DEBUG| [stdout] we only verify data stripes' checksums. 02:01:23 DEBUG| [stdout] 02:01:24 DEBUG| [stdout] scrub done for e2ad8821-59c3-427a-90c2-2984d81d2eaf 02:01:24 DEBUG| [stdout] scrub started at Wed Apr 10 02:01:24 2019 and finished after 00:00:00 02:01:24 DEBUG| [stdout] data_extents_scrubbed: 2 02:01:24 DEBUG| [stdout] tree_extents_scrubbed: 8 02:01:24 DEBUG| [stdout] data_bytes_scrubbed: 131072 02:01:24 DEBUG| [stdout] tree_bytes_scrubbed: 131072 02:01:24 DEBUG| [stdout] read_errors: 0 02:01:24 DEBUG| [stdout] csum_errors: 0 02:01:24 DEBUG| [stdout] verify_errors: 0 02:01:24 DEBUG| [stdout] no_csum: 32 02:01:24 DEBUG| [stdout] csum_discards: 0 02:01:24 DEBUG| [stdout] super_errors: 0 02:01:24 DEBUG| [stdout] malloc_errors: 0 02:01:24 DEBUG| [stdout] uncorrectable_errors: 0 02:01:24 DEBUG| [stdout] unverified_errors: 0 02:01:24 DEBUG| [stdout] corrected_errors: 0 02:01:24 DEBUG| [stdout] last_physical: 524025856 02:01:34 DEBUG| [stdout] 02:01:34 DEBUG| [stdout] PASS: 3b080b2564287be91605bfd1d5ee985696e61d3c 02:01:34 DEBUG| [stdout] 02:01:35 INFO | GOOD ubuntu_btrfs_kernel_fixes.3b080b2564287be91605bfd1d5ee985696e61d3c ubuntu_btrfs_kernel_fixes.3b080b2564287be91605bfd1d5ee985696e61d3c timestamp=1554861695 localtime=Apr 10 02:01:35 completed successfully 02:01:35 INFO | END GOOD ubuntu_btrfs_kernel_fixes.3b080b2564287be91605bfd1d5ee985696e61d3c ubuntu_btrfs_kernel_fixes.3b080b2564287be91605bfd1d5ee985696e61d3c timestamp=1554861695 localtime=Apr 10 02:01:35 02:01:35 DEBUG| Persistent state client._record_indent now set to 1 02:01:35 DEBUG| Persistent state client.unexpected_reboot deleted 02:01:35 INFO | Invoking test: 3d84be799194147e04c0e3129ed44a948773b80a.sh 02:01:35 DEBUG| Test has timeout: 7200 sec. 02:01:35 INFO | START ubuntu_btrfs_kernel_fixes.3d84be799194147e04c0e3129ed44a948773b80a ubuntu_btrfs_kernel_fixes.3d84be799194147e04c0e3129ed44a948773b80a timestamp=1554861695 timeout=7200 localtime=Apr 10 02:01:35 02:01:35 DEBUG| Persistent state client._record_indent now set to 2 02:01:35 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.3d84be799194147e04c0e3129ed44a948773b80a', 'ubuntu_btrfs_kernel_fixes.3d84be799194147e04c0e3129ed44a948773b80a') 02:01:35 DEBUG| Waiting for pid 4124 for 7200 seconds 02:01:35 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/3d84be799194147e04c0e3129ed44a948773b80a.sh 2>&1' 02:01:35 DEBUG| [stdout] Invoking test 3d84be799194147e04c0e3129ed44a948773b80a 02:01:35 DEBUG| [stdout] 02:01:35 DEBUG| [stdout] fix 3d84be799194147e04c0e3129ed44a948773b80a 02:01:35 DEBUG| [stdout] 02:01:35 DEBUG| [stdout] fix BUG_ON in btrfs_orphan_add() when delete unused block group 02:01:35 DEBUG| [stdout] 02:01:35 DEBUG| [stdout] Need large volume! 02:01:45 DEBUG| [stdout] 02:01:45 DEBUG| [stdout] PASS: 3d84be799194147e04c0e3129ed44a948773b80a 02:01:45 DEBUG| [stdout] 02:01:47 INFO | GOOD ubuntu_btrfs_kernel_fixes.3d84be799194147e04c0e3129ed44a948773b80a ubuntu_btrfs_kernel_fixes.3d84be799194147e04c0e3129ed44a948773b80a timestamp=1554861707 localtime=Apr 10 02:01:47 completed successfully 02:01:47 INFO | END GOOD ubuntu_btrfs_kernel_fixes.3d84be799194147e04c0e3129ed44a948773b80a ubuntu_btrfs_kernel_fixes.3d84be799194147e04c0e3129ed44a948773b80a timestamp=1554861707 localtime=Apr 10 02:01:47 02:01:47 DEBUG| Persistent state client._record_indent now set to 1 02:01:47 DEBUG| Persistent state client.unexpected_reboot deleted 02:01:47 INFO | Invoking test: 4027e0f4c4b2df28d564560a3c65c179bebae4c8.sh 02:01:47 DEBUG| Test has timeout: 7200 sec. 02:01:47 INFO | START ubuntu_btrfs_kernel_fixes.4027e0f4c4b2df28d564560a3c65c179bebae4c8 ubuntu_btrfs_kernel_fixes.4027e0f4c4b2df28d564560a3c65c179bebae4c8 timestamp=1554861707 timeout=7200 localtime=Apr 10 02:01:47 02:01:47 DEBUG| Persistent state client._record_indent now set to 2 02:01:47 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.4027e0f4c4b2df28d564560a3c65c179bebae4c8', 'ubuntu_btrfs_kernel_fixes.4027e0f4c4b2df28d564560a3c65c179bebae4c8') 02:01:47 DEBUG| Waiting for pid 4167 for 7200 seconds 02:01:47 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/4027e0f4c4b2df28d564560a3c65c179bebae4c8.sh 2>&1' 02:01:47 DEBUG| [stdout] Invoking test 4027e0f4c4b2df28d564560a3c65c179bebae4c8 02:01:47 DEBUG| [stdout] 02:01:47 DEBUG| [stdout] fix 4027e0f4c4b2df28d564560a3c65c179bebae4c8 02:01:47 DEBUG| [stdout] 02:01:47 DEBUG| [stdout] Btrfs: clear compress-force when remounting with compress option 02:01:47 DEBUG| [stdout] 02:01:47 DEBUG| [stdout] MNT=/tmp/mnt-4027e0f4c4b2df28d564560a3c65c179bebae4c8 02:01:47 DEBUG| [stdout] TMP=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-4027e0f4c4b2df28d564560a3c65c179bebae4c8 02:01:47 DEBUG| [stdout] mkfs /dev/loop0 02:01:48 DEBUG| [stdout] compress-force=zlib cleared in remount 02:01:58 DEBUG| [stdout] 02:01:58 DEBUG| [stdout] PASS: 4027e0f4c4b2df28d564560a3c65c179bebae4c8 02:01:58 DEBUG| [stdout] 02:01:59 INFO | GOOD ubuntu_btrfs_kernel_fixes.4027e0f4c4b2df28d564560a3c65c179bebae4c8 ubuntu_btrfs_kernel_fixes.4027e0f4c4b2df28d564560a3c65c179bebae4c8 timestamp=1554861719 localtime=Apr 10 02:01:59 completed successfully 02:01:59 INFO | END GOOD ubuntu_btrfs_kernel_fixes.4027e0f4c4b2df28d564560a3c65c179bebae4c8 ubuntu_btrfs_kernel_fixes.4027e0f4c4b2df28d564560a3c65c179bebae4c8 timestamp=1554861719 localtime=Apr 10 02:01:59 02:01:59 DEBUG| Persistent state client._record_indent now set to 1 02:01:59 DEBUG| Persistent state client.unexpected_reboot deleted 02:01:59 INFO | Skipping blacklisted test: 4330e183c9537df20952d4a9ee142c536fb8ae54.sh 02:01:59 INFO | Invoking test: 45ea6095c8f0d6caad5658306416a5d254f1205e.sh 02:01:59 DEBUG| Test has timeout: 7200 sec. 02:01:59 INFO | START ubuntu_btrfs_kernel_fixes.45ea6095c8f0d6caad5658306416a5d254f1205e ubuntu_btrfs_kernel_fixes.45ea6095c8f0d6caad5658306416a5d254f1205e timestamp=1554861719 timeout=7200 localtime=Apr 10 02:01:59 02:01:59 DEBUG| Persistent state client._record_indent now set to 2 02:01:59 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.45ea6095c8f0d6caad5658306416a5d254f1205e', 'ubuntu_btrfs_kernel_fixes.45ea6095c8f0d6caad5658306416a5d254f1205e') 02:01:59 DEBUG| Waiting for pid 4255 for 7200 seconds 02:02:00 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/45ea6095c8f0d6caad5658306416a5d254f1205e.sh 2>&1' 02:02:00 DEBUG| [stdout] Invoking test 45ea6095c8f0d6caad5658306416a5d254f1205e 02:02:00 DEBUG| [stdout] 02:02:00 DEBUG| [stdout] fix 45ea6095c8f0d6caad5658306416a5d254f1205e 02:02:00 DEBUG| [stdout] 02:02:00 DEBUG| [stdout] btrfs: fix double-free 'tree_root' in 'btrfs_mount()' 02:02:00 DEBUG| [stdout] 02:02:00 DEBUG| [stdout] On error path 'tree_root' is treed in 'free_fs_info()'. 02:02:00 DEBUG| [stdout] No need to free it explicitely. Noticed by SLUB in debug mode: 02:02:00 DEBUG| [stdout] 02:02:00 DEBUG| [stdout] Complete reproducer under usermode linux (discovered on real 02:02:00 DEBUG| [stdout] machine): 02:02:00 DEBUG| [stdout] 02:02:00 DEBUG| [stdout] bdev=/dev/ubda 02:02:00 DEBUG| [stdout] btr_root=/btr 02:02:00 DEBUG| [stdout] /mkfs.btrfs 02:02:00 DEBUG| [stdout] mount 02:02:00 DEBUG| [stdout] mkdir /subvols/ 02:02:00 DEBUG| [stdout] cd /subvols/ 02:02:00 DEBUG| [stdout] /btrfs su cr foo 02:02:00 DEBUG| [stdout] /btrfs su cr bar 02:02:00 DEBUG| [stdout] mount -osubvol=subvols/foo /subvols/bar 02:02:00 DEBUG| [stdout] umount /subvols/bar 02:02:00 DEBUG| [stdout] 02:02:00 DEBUG| [stdout] Create subvolume './foo' 02:02:00 DEBUG| [stdout] Create subvolume './bar' 02:02:10 DEBUG| [stdout] 02:02:10 DEBUG| [stdout] PASS: 45ea6095c8f0d6caad5658306416a5d254f1205e 02:02:10 DEBUG| [stdout] 02:02:11 INFO | GOOD ubuntu_btrfs_kernel_fixes.45ea6095c8f0d6caad5658306416a5d254f1205e ubuntu_btrfs_kernel_fixes.45ea6095c8f0d6caad5658306416a5d254f1205e timestamp=1554861731 localtime=Apr 10 02:02:11 completed successfully 02:02:12 INFO | END GOOD ubuntu_btrfs_kernel_fixes.45ea6095c8f0d6caad5658306416a5d254f1205e ubuntu_btrfs_kernel_fixes.45ea6095c8f0d6caad5658306416a5d254f1205e timestamp=1554861732 localtime=Apr 10 02:02:12 02:02:12 DEBUG| Persistent state client._record_indent now set to 1 02:02:12 DEBUG| Persistent state client.unexpected_reboot deleted 02:02:12 INFO | Invoking test: 48fcc3ff7dce0138c053833adf81670494f177f3.sh 02:02:12 DEBUG| Test has timeout: 7200 sec. 02:02:12 INFO | START ubuntu_btrfs_kernel_fixes.48fcc3ff7dce0138c053833adf81670494f177f3 ubuntu_btrfs_kernel_fixes.48fcc3ff7dce0138c053833adf81670494f177f3 timestamp=1554861732 timeout=7200 localtime=Apr 10 02:02:12 02:02:12 DEBUG| Persistent state client._record_indent now set to 2 02:02:12 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.48fcc3ff7dce0138c053833adf81670494f177f3', 'ubuntu_btrfs_kernel_fixes.48fcc3ff7dce0138c053833adf81670494f177f3') 02:02:12 DEBUG| Waiting for pid 4347 for 7200 seconds 02:02:12 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/48fcc3ff7dce0138c053833adf81670494f177f3.sh 2>&1' 02:02:12 DEBUG| [stdout] Invoking test 48fcc3ff7dce0138c053833adf81670494f177f3 02:02:12 DEBUG| [stdout] 02:02:12 DEBUG| [stdout] fix 48fcc3ff7dce0138c053833adf81670494f177f3 02:02:12 DEBUG| [stdout] 02:02:12 DEBUG| [stdout] btrfs: label should not contain return char 02:02:12 DEBUG| [stdout] 02:02:12 DEBUG| [stdout] Rediffed remaining parts of original patch from Anand Jain. This makes 02:02:12 DEBUG| [stdout] sure to avoid trailing newlines in the btrfs label output 02:02:12 DEBUG| [stdout] 02:02:12 DEBUG| [stdout] MNT=/tmp/mnt-48fcc3ff7dce0138c053833adf81670494f177f3 02:02:12 DEBUG| [stdout] TMP=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-48fcc3ff7dce0138c053833adf81670494f177f3 02:02:12 DEBUG| [stdout] mkfs /dev/loop0 02:02:12 DEBUG| [stdout] mount /dev/loop0 /tmp/mnt-48fcc3ff7dce0138c053833adf81670494f177f3 02:02:12 DEBUG| [stdout] Test for empty label... 02:02:12 DEBUG| [stdout] PASS: Trailing \n is removed correctly. 02:02:12 DEBUG| [stdout] Test for non-empty label... 02:02:12 DEBUG| [stdout] PASS: Trailing \n is removed correctly. 02:02:22 DEBUG| [stdout] 02:02:22 DEBUG| [stdout] PASS: 48fcc3ff7dce0138c053833adf81670494f177f3 02:02:22 DEBUG| [stdout] 02:02:24 INFO | GOOD ubuntu_btrfs_kernel_fixes.48fcc3ff7dce0138c053833adf81670494f177f3 ubuntu_btrfs_kernel_fixes.48fcc3ff7dce0138c053833adf81670494f177f3 timestamp=1554861744 localtime=Apr 10 02:02:24 completed successfully 02:02:24 INFO | END GOOD ubuntu_btrfs_kernel_fixes.48fcc3ff7dce0138c053833adf81670494f177f3 ubuntu_btrfs_kernel_fixes.48fcc3ff7dce0138c053833adf81670494f177f3 timestamp=1554861744 localtime=Apr 10 02:02:24 02:02:24 DEBUG| Persistent state client._record_indent now set to 1 02:02:24 DEBUG| Persistent state client.unexpected_reboot deleted 02:02:24 INFO | Invoking test: 4a001071d3549f596c7c3736c5dda8a3a4aba9ed.sh 02:02:24 DEBUG| Test has timeout: 7200 sec. 02:02:24 INFO | START ubuntu_btrfs_kernel_fixes.4a001071d3549f596c7c3736c5dda8a3a4aba9ed ubuntu_btrfs_kernel_fixes.4a001071d3549f596c7c3736c5dda8a3a4aba9ed timestamp=1554861744 timeout=7200 localtime=Apr 10 02:02:24 02:02:24 DEBUG| Persistent state client._record_indent now set to 2 02:02:24 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.4a001071d3549f596c7c3736c5dda8a3a4aba9ed', 'ubuntu_btrfs_kernel_fixes.4a001071d3549f596c7c3736c5dda8a3a4aba9ed') 02:02:24 DEBUG| Waiting for pid 4441 for 7200 seconds 02:02:24 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/4a001071d3549f596c7c3736c5dda8a3a4aba9ed.sh 2>&1' 02:02:24 DEBUG| [stdout] Invoking test 4a001071d3549f596c7c3736c5dda8a3a4aba9ed 02:02:24 DEBUG| [stdout] 02:02:24 DEBUG| [stdout] fix 4a001071d3549f596c7c3736c5dda8a3a4aba9ed 02:02:24 DEBUG| [stdout] 02:02:24 DEBUG| [stdout] Btrfs: fix loop device on top of btrfs 02:02:24 DEBUG| [stdout] 02:02:24 DEBUG| [stdout] We cannot use the loop device which has been connected to a file in the btrf 02:02:24 DEBUG| [stdout] 02:02:24 DEBUG| [stdout] The reproduce steps is following: 02:02:24 DEBUG| [stdout] # dd if=/dev/zero of=vdev0 bs=1M count=1024 02:02:24 DEBUG| [stdout] # losetup /dev/loop0 vdev0 02:02:24 DEBUG| [stdout] # mkfs.btrfs /dev/loop0 02:02:24 DEBUG| [stdout] ... 02:02:24 DEBUG| [stdout] failed to zero device start -5 02:02:24 DEBUG| [stdout] 02:02:24 DEBUG| [stdout] The reason is that the btrfs don't implement either ->write_begin or ->write 02:02:24 DEBUG| [stdout] the VFS API, so we fix it by setting ->write to do_sync_write(). 02:02:24 DEBUG| [stdout] 02:02:40 DEBUG| [stdout] 02:02:40 DEBUG| [stdout] PASS: 4a001071d3549f596c7c3736c5dda8a3a4aba9ed 02:02:40 DEBUG| [stdout] 02:02:42 INFO | GOOD ubuntu_btrfs_kernel_fixes.4a001071d3549f596c7c3736c5dda8a3a4aba9ed ubuntu_btrfs_kernel_fixes.4a001071d3549f596c7c3736c5dda8a3a4aba9ed timestamp=1554861762 localtime=Apr 10 02:02:42 completed successfully 02:02:42 INFO | END GOOD ubuntu_btrfs_kernel_fixes.4a001071d3549f596c7c3736c5dda8a3a4aba9ed ubuntu_btrfs_kernel_fixes.4a001071d3549f596c7c3736c5dda8a3a4aba9ed timestamp=1554861762 localtime=Apr 10 02:02:42 02:02:42 DEBUG| Persistent state client._record_indent now set to 1 02:02:42 DEBUG| Persistent state client.unexpected_reboot deleted 02:02:42 INFO | Invoking test: 4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf.sh 02:02:42 DEBUG| Test has timeout: 7200 sec. 02:02:42 INFO | START ubuntu_btrfs_kernel_fixes.4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf ubuntu_btrfs_kernel_fixes.4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf timestamp=1554861762 timeout=7200 localtime=Apr 10 02:02:42 02:02:42 DEBUG| Persistent state client._record_indent now set to 2 02:02:42 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf', 'ubuntu_btrfs_kernel_fixes.4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf') 02:02:42 DEBUG| Waiting for pid 4526 for 7200 seconds 02:02:42 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf.sh 2>&1' 02:02:42 DEBUG| [stdout] Invoking test 4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf 02:02:42 DEBUG| [stdout] 02:02:42 DEBUG| [stdout] fix 4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf 02:02:42 DEBUG| [stdout] 02:02:42 DEBUG| [stdout] Btrfs: fix up bounds checking in lseek 02:02:42 DEBUG| [stdout] 02:02:42 DEBUG| [stdout] An user reported this, it is because that lseek's SEEK_SET/SEEK_CUR/SEEK_END 02:02:42 DEBUG| [stdout] allow a negative value for @offset, but btrfs's SEEK_DATA/SEEK_HOLE don't 02:02:42 DEBUG| [stdout] prepare for that and convert the negative @offset into unsigned type, 02:02:42 DEBUG| [stdout] so we get (end < start) warning. 02:02:42 DEBUG| [stdout] /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf.c:11:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 02:02:42 DEBUG| [stdout] main(int argc, char **argv) 02:02:42 DEBUG| [stdout] ^ 02:02:53 DEBUG| [stdout] 02:02:53 DEBUG| [stdout] PASS: 4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf 02:02:53 DEBUG| [stdout] 02:02:54 INFO | GOOD ubuntu_btrfs_kernel_fixes.4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf ubuntu_btrfs_kernel_fixes.4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf timestamp=1554861774 localtime=Apr 10 02:02:54 completed successfully 02:02:54 INFO | END GOOD ubuntu_btrfs_kernel_fixes.4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf ubuntu_btrfs_kernel_fixes.4d1a40c66bed0b3fa43b9da5fbd5cbe332e4eccf timestamp=1554861774 localtime=Apr 10 02:02:54 02:02:54 DEBUG| Persistent state client._record_indent now set to 1 02:02:54 DEBUG| Persistent state client.unexpected_reboot deleted 02:02:54 INFO | Invoking test: 51a60253a58514524b7a347c4e68553821a79d04.sh 02:02:54 DEBUG| Test has timeout: 7200 sec. 02:02:54 INFO | START ubuntu_btrfs_kernel_fixes.51a60253a58514524b7a347c4e68553821a79d04 ubuntu_btrfs_kernel_fixes.51a60253a58514524b7a347c4e68553821a79d04 timestamp=1554861774 timeout=7200 localtime=Apr 10 02:02:54 02:02:54 DEBUG| Persistent state client._record_indent now set to 2 02:02:54 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.51a60253a58514524b7a347c4e68553821a79d04', 'ubuntu_btrfs_kernel_fixes.51a60253a58514524b7a347c4e68553821a79d04') 02:02:54 DEBUG| Waiting for pid 4614 for 7200 seconds 02:02:54 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/51a60253a58514524b7a347c4e68553821a79d04.sh 2>&1' 02:02:54 DEBUG| [stdout] Invoking test 51a60253a58514524b7a347c4e68553821a79d04 02:02:54 DEBUG| [stdout] 02:02:54 DEBUG| [stdout] fix 51a60253a58514524b7a347c4e68553821a79d04 02:02:54 DEBUG| [stdout] 02:02:54 DEBUG| [stdout] Btrfs: send, fix incorrect ref access when using extrefs 02:02:54 DEBUG| [stdout] 02:02:54 DEBUG| [stdout] When running send, if an inode only has extended reference items 02:02:54 DEBUG| [stdout] associated to it and no regular references, send.c:get_first_ref() 02:02:54 DEBUG| [stdout] was incorrectly assuming the reference it found was of type 02:02:54 DEBUG| [stdout] BTRFS_INODE_REF_KEY due to use of the wrong key variable. 02:02:54 DEBUG| [stdout] This caused weird behaviour when using the found item has a regular 02:02:54 DEBUG| [stdout] reference, such as weird path string, and occasionally (when lucky) 02:02:54 DEBUG| [stdout] a crash. 02:02:54 DEBUG| [stdout] 02:03:12 DEBUG| [stdout] 02:03:12 DEBUG| [stdout] PASS: 51a60253a58514524b7a347c4e68553821a79d04 02:03:12 DEBUG| [stdout] 02:03:12 INFO | GOOD ubuntu_btrfs_kernel_fixes.51a60253a58514524b7a347c4e68553821a79d04 ubuntu_btrfs_kernel_fixes.51a60253a58514524b7a347c4e68553821a79d04 timestamp=1554861792 localtime=Apr 10 02:03:12 completed successfully 02:03:12 INFO | END GOOD ubuntu_btrfs_kernel_fixes.51a60253a58514524b7a347c4e68553821a79d04 ubuntu_btrfs_kernel_fixes.51a60253a58514524b7a347c4e68553821a79d04 timestamp=1554861792 localtime=Apr 10 02:03:12 02:03:13 DEBUG| Persistent state client._record_indent now set to 1 02:03:13 DEBUG| Persistent state client.unexpected_reboot deleted 02:03:13 INFO | Invoking test: 5588383ece6127909df5b9d601d562fe5b9fe38a.sh 02:03:13 DEBUG| Test has timeout: 7200 sec. 02:03:13 INFO | START ubuntu_btrfs_kernel_fixes.5588383ece6127909df5b9d601d562fe5b9fe38a ubuntu_btrfs_kernel_fixes.5588383ece6127909df5b9d601d562fe5b9fe38a timestamp=1554861793 timeout=7200 localtime=Apr 10 02:03:13 02:03:13 DEBUG| Persistent state client._record_indent now set to 2 02:03:13 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.5588383ece6127909df5b9d601d562fe5b9fe38a', 'ubuntu_btrfs_kernel_fixes.5588383ece6127909df5b9d601d562fe5b9fe38a') 02:03:13 DEBUG| Waiting for pid 14907 for 7200 seconds 02:03:13 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/5588383ece6127909df5b9d601d562fe5b9fe38a.sh 2>&1' 02:03:13 DEBUG| [stdout] Invoking test 5588383ece6127909df5b9d601d562fe5b9fe38a 02:03:13 DEBUG| [stdout] 02:03:13 DEBUG| [stdout] fix 5588383ece6127909df5b9d601d562fe5b9fe38a 02:03:13 DEBUG| [stdout] 02:03:13 DEBUG| [stdout] Btrfs: fix crash when mounting raid5 btrfs with missing disks 02:03:13 DEBUG| [stdout] 02:03:13 DEBUG| [stdout] The reproducer is 02:03:13 DEBUG| [stdout] 02:03:13 DEBUG| [stdout] $ mkfs.btrfs D1 D2 D3 -mraid5 02:03:13 DEBUG| [stdout] $ mkfs.ext4 D2 && mkfs.ext4 D3 02:03:13 DEBUG| [stdout] $ mount D1 /btrfs -odegraded 02:03:13 DEBUG| [stdout] 02:03:15 DEBUG| [stdout] mount: wrong fs type, bad option, bad superblock on /dev/loop0, 02:03:15 DEBUG| [stdout] missing codepage or helper program, or other error 02:03:15 DEBUG| [stdout] 02:03:15 DEBUG| [stdout] In some cases useful info is found in syslog - try 02:03:15 DEBUG| [stdout] dmesg | tail or so. 02:03:15 DEBUG| [stdout] umount: /tmp/mnt-5588383ece6127909df5b9d601d562fe5b9fe38a: not mounted 02:03:25 DEBUG| [stdout] 02:03:25 DEBUG| [stdout] PASS: 5588383ece6127909df5b9d601d562fe5b9fe38a 02:03:25 DEBUG| [stdout] 02:03:27 INFO | GOOD ubuntu_btrfs_kernel_fixes.5588383ece6127909df5b9d601d562fe5b9fe38a ubuntu_btrfs_kernel_fixes.5588383ece6127909df5b9d601d562fe5b9fe38a timestamp=1554861807 localtime=Apr 10 02:03:27 completed successfully 02:03:27 INFO | END GOOD ubuntu_btrfs_kernel_fixes.5588383ece6127909df5b9d601d562fe5b9fe38a ubuntu_btrfs_kernel_fixes.5588383ece6127909df5b9d601d562fe5b9fe38a timestamp=1554861807 localtime=Apr 10 02:03:27 02:03:27 DEBUG| Persistent state client._record_indent now set to 1 02:03:27 DEBUG| Persistent state client.unexpected_reboot deleted 02:03:27 INFO | Invoking test: 5762b5c958abbecb7fb9f4596a6476d1ce91ecf6.sh 02:03:27 DEBUG| Test has timeout: 7200 sec. 02:03:27 INFO | START ubuntu_btrfs_kernel_fixes.5762b5c958abbecb7fb9f4596a6476d1ce91ecf6 ubuntu_btrfs_kernel_fixes.5762b5c958abbecb7fb9f4596a6476d1ce91ecf6 timestamp=1554861807 timeout=7200 localtime=Apr 10 02:03:27 02:03:27 DEBUG| Persistent state client._record_indent now set to 2 02:03:27 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.5762b5c958abbecb7fb9f4596a6476d1ce91ecf6', 'ubuntu_btrfs_kernel_fixes.5762b5c958abbecb7fb9f4596a6476d1ce91ecf6') 02:03:27 DEBUG| Waiting for pid 15021 for 7200 seconds 02:03:27 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/5762b5c958abbecb7fb9f4596a6476d1ce91ecf6.sh 2>&1' 02:03:27 DEBUG| [stdout] Invoking test 5762b5c958abbecb7fb9f4596a6476d1ce91ecf6 02:03:27 DEBUG| [stdout] 02:03:27 DEBUG| [stdout] fix 5762b5c958abbecb7fb9f4596a6476d1ce91ecf6 02:03:27 DEBUG| [stdout] 02:03:27 DEBUG| [stdout] Btrfs: ensure tmpfile inode is always persisted with link count of 0 02:03:27 DEBUG| [stdout] 02:03:27 DEBUG| [stdout] If we open a file with O_TMPFILE, don't do any further operation on 02:03:27 DEBUG| [stdout] it (so that the inode item isn't updated) and then force a transaction 02:03:27 DEBUG| [stdout] commit, we get a persisted inode item with a link count of 1, and not 0 02:03:27 DEBUG| [stdout] as it should be. 02:03:27 DEBUG| [stdout] 02:03:27 DEBUG| [stdout] /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/5762b5c958abbecb7fb9f4596a6476d1ce91ecf6.c:27:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 02:03:27 DEBUG| [stdout] main(int argc, char **argv) 02:03:27 DEBUG| [stdout] ^ 02:03:29 DEBUG| [stdout] Found links on a O_TMPFILE temp file (should be 0) 02:03:40 DEBUG| [stdout] 02:03:40 DEBUG| [stdout] PASS: 5762b5c958abbecb7fb9f4596a6476d1ce91ecf6 02:03:40 DEBUG| [stdout] 02:03:41 INFO | GOOD ubuntu_btrfs_kernel_fixes.5762b5c958abbecb7fb9f4596a6476d1ce91ecf6 ubuntu_btrfs_kernel_fixes.5762b5c958abbecb7fb9f4596a6476d1ce91ecf6 timestamp=1554861821 localtime=Apr 10 02:03:41 completed successfully 02:03:41 INFO | END GOOD ubuntu_btrfs_kernel_fixes.5762b5c958abbecb7fb9f4596a6476d1ce91ecf6 ubuntu_btrfs_kernel_fixes.5762b5c958abbecb7fb9f4596a6476d1ce91ecf6 timestamp=1554861821 localtime=Apr 10 02:03:41 02:03:41 DEBUG| Persistent state client._record_indent now set to 1 02:03:41 DEBUG| Persistent state client.unexpected_reboot deleted 02:03:41 INFO | Invoking test: 5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0.sh 02:03:41 DEBUG| Test has timeout: 7200 sec. 02:03:41 INFO | START ubuntu_btrfs_kernel_fixes.5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0 ubuntu_btrfs_kernel_fixes.5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0 timestamp=1554861821 timeout=7200 localtime=Apr 10 02:03:41 02:03:41 DEBUG| Persistent state client._record_indent now set to 2 02:03:41 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0', 'ubuntu_btrfs_kernel_fixes.5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0') 02:03:41 DEBUG| Waiting for pid 15118 for 7200 seconds 02:03:41 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0.sh 2>&1' 02:03:41 DEBUG| [stdout] Invoking test 5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0 02:03:41 DEBUG| [stdout] 02:03:41 DEBUG| [stdout] fix 5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0 02:03:41 DEBUG| [stdout] 02:03:41 DEBUG| [stdout] Btrfs: more send support for parent/child dir relationship inversion 02:03:41 DEBUG| [stdout] 02:03:41 DEBUG| [stdout] The commit titled "Btrfs: fix infinite path build loops in incremental send" 02:03:41 DEBUG| [stdout] didn't cover a particular case where the parent-child relationship inversion 02:03:41 DEBUG| [stdout] of directories doesn't imply a rename of the new parent directory. This was 02:03:41 DEBUG| [stdout] due to a simple logic mistake, a logical and instead of a logical or. 02:03:41 DEBUG| [stdout] 02:03:41 DEBUG| [stdout] btrfs-progs v4.4 02:03:41 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 02:03:41 DEBUG| [stdout] 02:03:41 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 02:03:41 DEBUG| [stdout] Label: (null) 02:03:41 DEBUG| [stdout] UUID: 50f0d2f0-511c-4034-b06e-e06902f3baad 02:03:41 DEBUG| [stdout] Node size: 16384 02:03:41 DEBUG| [stdout] Sector size: 4096 02:03:41 DEBUG| [stdout] Filesystem size: 1.00GiB 02:03:41 DEBUG| [stdout] Block group profiles: 02:03:41 DEBUG| [stdout] Data: single 8.00MiB 02:03:41 DEBUG| [stdout] Metadata: DUP 59.19MiB 02:03:41 DEBUG| [stdout] System: DUP 12.00MiB 02:03:41 DEBUG| [stdout] SSD detected: no 02:03:41 DEBUG| [stdout] Incompat features: extref, skinny-metadata 02:03:41 DEBUG| [stdout] Number of devices: 1 02:03:41 DEBUG| [stdout] Devices: 02:03:41 DEBUG| [stdout] ID SIZE PATH 02:03:41 DEBUG| [stdout] 1 1.00GiB /dev/loop0 02:03:41 DEBUG| [stdout] 02:03:42 DEBUG| [stdout] btrfs-progs v4.4 02:03:42 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 02:03:42 DEBUG| [stdout] 02:03:42 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 02:03:42 DEBUG| [stdout] Label: (null) 02:03:42 DEBUG| [stdout] UUID: 26d76bcb-1423-4fff-8080-0819c850b911 02:03:42 DEBUG| [stdout] Node size: 16384 02:03:42 DEBUG| [stdout] Sector size: 4096 02:03:42 DEBUG| [stdout] Filesystem size: 1.00GiB 02:03:42 DEBUG| [stdout] Block group profiles: 02:03:42 DEBUG| [stdout] Data: single 8.00MiB 02:03:42 DEBUG| [stdout] Metadata: DUP 59.19MiB 02:03:42 DEBUG| [stdout] System: DUP 12.00MiB 02:03:42 DEBUG| [stdout] SSD detected: no 02:03:42 DEBUG| [stdout] Incompat features: extref, skinny-metadata 02:03:42 DEBUG| [stdout] Number of devices: 1 02:03:42 DEBUG| [stdout] Devices: 02:03:42 DEBUG| [stdout] ID SIZE PATH 02:03:42 DEBUG| [stdout] 1 1.00GiB /dev/loop0 02:03:42 DEBUG| [stdout] 02:03:42 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0' in '/tmp/mnt-5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0/snap1' 02:03:42 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0' in '/tmp/mnt-5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0/snap2' 02:03:42 DEBUG| [stdout] At subvol /tmp/mnt-5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0/snap2 02:03:52 DEBUG| [stdout] 02:03:52 DEBUG| [stdout] PASS: 5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0 02:03:52 DEBUG| [stdout] 02:03:53 INFO | GOOD ubuntu_btrfs_kernel_fixes.5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0 ubuntu_btrfs_kernel_fixes.5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0 timestamp=1554861833 localtime=Apr 10 02:03:53 completed successfully 02:03:53 INFO | END GOOD ubuntu_btrfs_kernel_fixes.5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0 ubuntu_btrfs_kernel_fixes.5ed7f9ff15e6ea56bcb78f69e9503dc1a587caf0 timestamp=1554861833 localtime=Apr 10 02:03:53 02:03:53 DEBUG| Persistent state client._record_indent now set to 1 02:03:53 DEBUG| Persistent state client.unexpected_reboot deleted 02:03:53 INFO | Invoking test: 5fbc7c59fd22c5a6531b40b0759624b680a95e52.sh 02:03:53 DEBUG| Test has timeout: 7200 sec. 02:03:53 INFO | START ubuntu_btrfs_kernel_fixes.5fbc7c59fd22c5a6531b40b0759624b680a95e52 ubuntu_btrfs_kernel_fixes.5fbc7c59fd22c5a6531b40b0759624b680a95e52 timestamp=1554861833 timeout=7200 localtime=Apr 10 02:03:53 02:03:53 DEBUG| Persistent state client._record_indent now set to 2 02:03:53 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.5fbc7c59fd22c5a6531b40b0759624b680a95e52', 'ubuntu_btrfs_kernel_fixes.5fbc7c59fd22c5a6531b40b0759624b680a95e52') 02:03:53 DEBUG| Waiting for pid 15240 for 7200 seconds 02:03:53 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/5fbc7c59fd22c5a6531b40b0759624b680a95e52.sh 2>&1' 02:03:53 DEBUG| [stdout] Invoking test 5fbc7c59fd22c5a6531b40b0759624b680a95e52 02:03:53 DEBUG| [stdout] 02:03:53 DEBUG| [stdout] fix 5fbc7c59fd22c5a6531b40b0759624b680a95e52 02:03:53 DEBUG| [stdout] 02:03:53 DEBUG| [stdout] Btrfs: fix unfinished readahead thread for raid5/6 degraded mounting 02:03:53 DEBUG| [stdout] 02:03:53 DEBUG| [stdout] Steps to reproduce: 02:03:53 DEBUG| [stdout] 02:03:53 DEBUG| [stdout] # mkfs.btrfs -f /dev/sd[b-f] -m raid5 -d raid5 02:03:53 DEBUG| [stdout] # mkfs.ext4 /dev/sdc --->corrupt one of btrfs device 02:03:53 DEBUG| [stdout] # mount /dev/sdb /mnt -o degraded 02:03:53 DEBUG| [stdout] # btrfs scrub start -BRd /mnt 02:03:53 DEBUG| [stdout] 02:03:53 DEBUG| [stdout] This is because readahead would skip missing device, this is not true 02:03:53 DEBUG| [stdout] for RAID5/6, because REQ_GET_READ_MIRRORS return 1 for RAID5/6 block 02:03:53 DEBUG| [stdout] mapping. If expected data locates in missing device, readahead thread 02:03:53 DEBUG| [stdout] would not call __readahead_hook() which makes event @rc->elems=0 02:03:53 DEBUG| [stdout] wait forever. 02:03:53 DEBUG| [stdout] 02:03:53 DEBUG| [stdout] Fix this problem by checking return value of btrfs_map_block(),we 02:03:53 DEBUG| [stdout] can only skip missing device safely if there are several mirrors. 02:03:53 DEBUG| [stdout] 02:03:54 DEBUG| [stdout] mke2fs 1.42.13 (17-May-2015) 02:03:54 DEBUG| [stdout] Discarding device blocks: 4096/524288 done 02:03:54 DEBUG| [stdout] Creating filesystem with 524288 4k blocks and 131072 inodes 02:03:54 DEBUG| [stdout] Filesystem UUID: e9f022cd-9b2c-4f55-a2ab-a1bfd898cc5b 02:03:54 DEBUG| [stdout] Superblock backups stored on blocks: 02:03:54 DEBUG| [stdout] 32768, 98304, 163840, 229376, 294912 02:03:54 DEBUG| [stdout] 02:03:54 DEBUG| [stdout] Allocating group tables: 0/16 done 02:03:54 DEBUG| [stdout] Writing inode tables: 0/16 done 02:03:55 DEBUG| [stdout] Creating journal (16384 blocks): done 02:03:55 DEBUG| [stdout] Writing superblocks and filesystem accounting information: 0/16 done 02:03:55 DEBUG| [stdout] 02:03:55 DEBUG| [stdout] WARNING: device 2 not present 02:03:55 DEBUG| [stdout] ERROR: there are uncorrectable errors 02:03:55 DEBUG| [stdout] scrub device /dev/loop0 (id 1) done 02:03:55 DEBUG| [stdout] scrub started at Wed Apr 10 02:03:55 2019 and finished after 00:00:00 02:03:55 DEBUG| [stdout] data_extents_scrubbed: 0 02:03:55 DEBUG| [stdout] tree_extents_scrubbed: 0 02:03:55 DEBUG| [stdout] data_bytes_scrubbed: 0 02:03:55 DEBUG| [stdout] tree_bytes_scrubbed: 0 02:03:55 DEBUG| [stdout] read_errors: 20 02:03:55 DEBUG| [stdout] csum_errors: 0 02:03:55 DEBUG| [stdout] verify_errors: 0 02:03:55 DEBUG| [stdout] no_csum: 0 02:03:55 DEBUG| [stdout] csum_discards: 0 02:03:55 DEBUG| [stdout] super_errors: 0 02:03:55 DEBUG| [stdout] malloc_errors: 0 02:03:55 DEBUG| [stdout] uncorrectable_errors: 20 02:03:55 DEBUG| [stdout] unverified_errors: 0 02:03:55 DEBUG| [stdout] corrected_errors: 0 02:03:55 DEBUG| [stdout] last_physical: 453705728 02:03:55 DEBUG| [stdout] scrub device /dev/loop1 (id 2) canceled 02:03:55 DEBUG| [stdout] scrub started at Wed Apr 10 02:03:55 2019 and was aborted after 00:00:00 02:03:55 DEBUG| [stdout] data_extents_scrubbed: 0 02:03:55 DEBUG| [stdout] tree_extents_scrubbed: 0 02:03:55 DEBUG| [stdout] data_bytes_scrubbed: 0 02:03:55 DEBUG| [stdout] tree_bytes_scrubbed: 0 02:03:55 DEBUG| [stdout] read_errors: 0 02:03:55 DEBUG| [stdout] csum_errors: 0 02:03:55 DEBUG| [stdout] verify_errors: 0 02:03:55 DEBUG| [stdout] no_csum: 0 02:03:55 DEBUG| [stdout] csum_discards: 0 02:03:55 DEBUG| [stdout] super_errors: 0 02:03:55 DEBUG| [stdout] malloc_errors: 0 02:03:55 DEBUG| [stdout] uncorrectable_errors: 0 02:03:55 DEBUG| [stdout] unverified_errors: 0 02:03:55 DEBUG| [stdout] corrected_errors: 0 02:03:55 DEBUG| [stdout] last_physical: 0 02:03:55 DEBUG| [stdout] scrub device /dev/loop2 (id 3) done 02:03:55 DEBUG| [stdout] scrub started at Wed Apr 10 02:03:55 2019 and finished after 00:00:00 02:03:55 DEBUG| [stdout] data_extents_scrubbed: 2 02:03:55 DEBUG| [stdout] tree_extents_scrubbed: 1 02:03:55 DEBUG| [stdout] data_bytes_scrubbed: 131072 02:03:55 DEBUG| [stdout] tree_bytes_scrubbed: 16384 02:03:55 DEBUG| [stdout] read_errors: 0 02:03:55 DEBUG| [stdout] csum_errors: 0 02:03:55 DEBUG| [stdout] verify_errors: 0 02:03:55 DEBUG| [stdout] no_csum: 32 02:03:55 DEBUG| [stdout] csum_discards: 0 02:03:55 DEBUG| [stdout] super_errors: 0 02:03:55 DEBUG| [stdout] malloc_errors: 0 02:03:55 DEBUG| [stdout] uncorrectable_errors: 0 02:03:55 DEBUG| [stdout] unverified_errors: 0 02:03:55 DEBUG| [stdout] corrected_errors: 0 02:03:55 DEBUG| [stdout] last_physical: 433782784 02:03:55 DEBUG| [stdout] scrub device /dev/loop3 (id 4) done 02:03:55 DEBUG| [stdout] scrub started at Wed Apr 10 02:03:55 2019 and finished after 00:00:00 02:03:55 DEBUG| [stdout] data_extents_scrubbed: 2 02:03:55 DEBUG| [stdout] tree_extents_scrubbed: 2 02:03:55 DEBUG| [stdout] data_bytes_scrubbed: 131072 02:03:55 DEBUG| [stdout] tree_bytes_scrubbed: 32768 02:03:55 DEBUG| [stdout] read_errors: 0 02:03:55 DEBUG| [stdout] csum_errors: 0 02:03:55 DEBUG| [stdout] verify_errors: 0 02:03:55 DEBUG| [stdout] no_csum: 32 02:03:55 DEBUG| [stdout] csum_discards: 0 02:03:55 DEBUG| [stdout] super_errors: 0 02:03:55 DEBUG| [stdout] malloc_errors: 0 02:03:55 DEBUG| [stdout] uncorrectable_errors: 0 02:03:55 DEBUG| [stdout] unverified_errors: 0 02:03:55 DEBUG| [stdout] corrected_errors: 0 02:03:55 DEBUG| [stdout] last_physical: 433782784 02:03:55 DEBUG| [stdout] scrub device /dev/loop4 (id 5) done 02:03:55 DEBUG| [stdout] scrub started at Wed Apr 10 02:03:55 2019 and finished after 00:00:00 02:03:55 DEBUG| [stdout] data_extents_scrubbed: 1 02:03:55 DEBUG| [stdout] tree_extents_scrubbed: 5 02:03:55 DEBUG| [stdout] data_bytes_scrubbed: 65536 02:03:55 DEBUG| [stdout] tree_bytes_scrubbed: 81920 02:03:55 DEBUG| [stdout] read_errors: 0 02:03:55 DEBUG| [stdout] csum_errors: 0 02:03:55 DEBUG| [stdout] verify_errors: 0 02:03:55 DEBUG| [stdout] no_csum: 16 02:03:55 DEBUG| [stdout] csum_discards: 0 02:03:55 DEBUG| [stdout] super_errors: 0 02:03:55 DEBUG| [stdout] malloc_errors: 0 02:03:55 DEBUG| [stdout] uncorrectable_errors: 0 02:03:55 DEBUG| [stdout] unverified_errors: 0 02:03:55 DEBUG| [stdout] corrected_errors: 0 02:03:55 DEBUG| [stdout] last_physical: 433782784 02:04:06 DEBUG| [stdout] 02:04:06 DEBUG| [stdout] PASS: 5fbc7c59fd22c5a6531b40b0759624b680a95e52 02:04:06 DEBUG| [stdout] 02:04:07 INFO | GOOD ubuntu_btrfs_kernel_fixes.5fbc7c59fd22c5a6531b40b0759624b680a95e52 ubuntu_btrfs_kernel_fixes.5fbc7c59fd22c5a6531b40b0759624b680a95e52 timestamp=1554861847 localtime=Apr 10 02:04:07 completed successfully 02:04:07 INFO | END GOOD ubuntu_btrfs_kernel_fixes.5fbc7c59fd22c5a6531b40b0759624b680a95e52 ubuntu_btrfs_kernel_fixes.5fbc7c59fd22c5a6531b40b0759624b680a95e52 timestamp=1554861847 localtime=Apr 10 02:04:07 02:04:07 DEBUG| Persistent state client._record_indent now set to 1 02:04:07 DEBUG| Persistent state client.unexpected_reboot deleted 02:04:07 INFO | Invoking test: 6113077cd319e747875ec71227d2b5cb54e08c76.sh 02:04:07 DEBUG| Test has timeout: 7200 sec. 02:04:08 INFO | START ubuntu_btrfs_kernel_fixes.6113077cd319e747875ec71227d2b5cb54e08c76 ubuntu_btrfs_kernel_fixes.6113077cd319e747875ec71227d2b5cb54e08c76 timestamp=1554861848 timeout=7200 localtime=Apr 10 02:04:08 02:04:08 DEBUG| Persistent state client._record_indent now set to 2 02:04:08 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.6113077cd319e747875ec71227d2b5cb54e08c76', 'ubuntu_btrfs_kernel_fixes.6113077cd319e747875ec71227d2b5cb54e08c76') 02:04:08 DEBUG| Waiting for pid 15375 for 7200 seconds 02:04:08 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/6113077cd319e747875ec71227d2b5cb54e08c76.sh 2>&1' 02:04:08 DEBUG| [stdout] Invoking test 6113077cd319e747875ec71227d2b5cb54e08c76 02:04:08 DEBUG| [stdout] 02:04:08 DEBUG| [stdout] fix 6113077cd319e747875ec71227d2b5cb54e08c76 02:04:08 DEBUG| [stdout] 02:04:08 DEBUG| [stdout] Btrfs: fix missing qgroup reservation before fallocating 02:04:08 DEBUG| [stdout] 02:04:08 DEBUG| [stdout] Steps to reproduce: 02:04:08 DEBUG| [stdout] mkfs.btrfs 02:04:08 DEBUG| [stdout] mount 02:04:08 DEBUG| [stdout] btrfs quota enable 02:04:08 DEBUG| [stdout] btrfs sub create /subv 02:04:08 DEBUG| [stdout] btrfs qgroup limit 10M /subv 02:04:08 DEBUG| [stdout] fallocate --length 20M /subv/data 02:04:08 DEBUG| [stdout] 02:04:08 DEBUG| [stdout] For the above example, fallocating will return successfully which 02:04:08 DEBUG| [stdout] is not expected, we try to fix it by doing qgroup reservation before 02:04:08 DEBUG| [stdout] fallocating. 02:04:08 DEBUG| [stdout] 02:04:08 DEBUG| [stdout] Create subvolume '/tmp/mnt-6113077cd319e747875ec71227d2b5cb54e08c76/subv' 02:04:08 DEBUG| [stdout] fallocate: fallocate failed: Disk quota exceeded 02:04:18 DEBUG| [stdout] 02:04:18 DEBUG| [stdout] PASS: 6113077cd319e747875ec71227d2b5cb54e08c76 02:04:18 DEBUG| [stdout] 02:04:20 INFO | GOOD ubuntu_btrfs_kernel_fixes.6113077cd319e747875ec71227d2b5cb54e08c76 ubuntu_btrfs_kernel_fixes.6113077cd319e747875ec71227d2b5cb54e08c76 timestamp=1554861860 localtime=Apr 10 02:04:20 completed successfully 02:04:20 INFO | END GOOD ubuntu_btrfs_kernel_fixes.6113077cd319e747875ec71227d2b5cb54e08c76 ubuntu_btrfs_kernel_fixes.6113077cd319e747875ec71227d2b5cb54e08c76 timestamp=1554861860 localtime=Apr 10 02:04:20 02:04:20 DEBUG| Persistent state client._record_indent now set to 1 02:04:20 DEBUG| Persistent state client.unexpected_reboot deleted 02:04:20 INFO | Invoking test: 63dd86fa79db737a50f47488e5249f24e5acebc1.sh 02:04:20 DEBUG| Test has timeout: 7200 sec. 02:04:20 INFO | START ubuntu_btrfs_kernel_fixes.63dd86fa79db737a50f47488e5249f24e5acebc1 ubuntu_btrfs_kernel_fixes.63dd86fa79db737a50f47488e5249f24e5acebc1 timestamp=1554861860 timeout=7200 localtime=Apr 10 02:04:20 02:04:20 DEBUG| Persistent state client._record_indent now set to 2 02:04:20 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.63dd86fa79db737a50f47488e5249f24e5acebc1', 'ubuntu_btrfs_kernel_fixes.63dd86fa79db737a50f47488e5249f24e5acebc1') 02:04:20 DEBUG| Waiting for pid 15461 for 7200 seconds 02:04:20 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/63dd86fa79db737a50f47488e5249f24e5acebc1.sh 2>&1' 02:04:20 DEBUG| [stdout] Invoking test 63dd86fa79db737a50f47488e5249f24e5acebc1 02:04:20 DEBUG| [stdout] 02:04:20 DEBUG| [stdout] fix 63dd86fa79db737a50f47488e5249f24e5acebc1 02:04:20 DEBUG| [stdout] 02:04:20 DEBUG| [stdout] btrfs: fix rw_devices miss match after seed replace 02:04:21 DEBUG| [stdout] 8+0 records in 02:04:21 DEBUG| [stdout] 8+0 records out 02:04:21 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.615634 s, 13.6 MB/s 02:04:21 DEBUG| [stdout] 8+0 records in 02:04:21 DEBUG| [stdout] 8+0 records out 02:04:21 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.61167 s, 13.7 MB/s 02:04:22 DEBUG| [stdout] 8+0 records in 02:04:22 DEBUG| [stdout] 8+0 records out 02:04:22 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.611238 s, 13.7 MB/s 02:04:23 DEBUG| [stdout] 8+0 records in 02:04:23 DEBUG| [stdout] 8+0 records out 02:04:23 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.519684 s, 16.1 MB/s 02:04:23 DEBUG| [stdout] 8+0 records in 02:04:23 DEBUG| [stdout] 8+0 records out 02:04:23 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.612668 s, 13.7 MB/s 02:04:24 DEBUG| [stdout] 8+0 records in 02:04:24 DEBUG| [stdout] 8+0 records out 02:04:24 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.633396 s, 13.2 MB/s 02:04:24 DEBUG| [stdout] 8+0 records in 02:04:24 DEBUG| [stdout] 8+0 records out 02:04:24 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.611168 s, 13.7 MB/s 02:04:25 DEBUG| [stdout] 8+0 records in 02:04:25 DEBUG| [stdout] 8+0 records out 02:04:25 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.614327 s, 13.7 MB/s 02:04:26 DEBUG| [stdout] 8+0 records in 02:04:26 DEBUG| [stdout] 8+0 records out 02:04:26 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.611932 s, 13.7 MB/s 02:04:26 DEBUG| [stdout] 8+0 records in 02:04:26 DEBUG| [stdout] 8+0 records out 02:04:26 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.503621 s, 16.7 MB/s 02:04:27 DEBUG| [stdout] 8+0 records in 02:04:27 DEBUG| [stdout] 8+0 records out 02:04:27 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.542753 s, 15.5 MB/s 02:04:27 DEBUG| [stdout] 8+0 records in 02:04:27 DEBUG| [stdout] 8+0 records out 02:04:27 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.612885 s, 13.7 MB/s 02:04:28 DEBUG| [stdout] 8+0 records in 02:04:28 DEBUG| [stdout] 8+0 records out 02:04:28 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.612579 s, 13.7 MB/s 02:04:29 DEBUG| [stdout] 8+0 records in 02:04:29 DEBUG| [stdout] 8+0 records out 02:04:29 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.614168 s, 13.7 MB/s 02:04:29 DEBUG| [stdout] 8+0 records in 02:04:29 DEBUG| [stdout] 8+0 records out 02:04:29 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.623428 s, 13.5 MB/s 02:04:30 DEBUG| [stdout] 8+0 records in 02:04:30 DEBUG| [stdout] 8+0 records out 02:04:30 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.612828 s, 13.7 MB/s 02:04:30 DEBUG| [stdout] 8+0 records in 02:04:30 DEBUG| [stdout] 8+0 records out 02:04:30 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.612598 s, 13.7 MB/s 02:04:31 DEBUG| [stdout] 8+0 records in 02:04:31 DEBUG| [stdout] 8+0 records out 02:04:31 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.613629 s, 13.7 MB/s 02:04:32 DEBUG| [stdout] 8+0 records in 02:04:32 DEBUG| [stdout] 8+0 records out 02:04:32 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.613127 s, 13.7 MB/s 02:04:32 DEBUG| [stdout] 8+0 records in 02:04:32 DEBUG| [stdout] 8+0 records out 02:04:32 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.613923 s, 13.7 MB/s 02:04:33 DEBUG| [stdout] 8+0 records in 02:04:33 DEBUG| [stdout] 8+0 records out 02:04:33 DEBUG| [stdout] 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.542745 s, 15.5 MB/s 02:04:34 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.22': No space left on device 02:04:34 DEBUG| [stdout] 8+0 records in 02:04:34 DEBUG| [stdout] 7+0 records out 02:04:34 DEBUG| [stdout] 7340032 bytes (7.3 MB, 7.0 MiB) copied, 0.7754 s, 9.5 MB/s 02:04:34 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.23': No space left on device 02:04:34 DEBUG| [stdout] 1+0 records in 02:04:34 DEBUG| [stdout] 0+0 records out 02:04:34 DEBUG| [stdout] 0 bytes copied, 0.118813 s, 0.0 kB/s 02:04:34 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.24': No space left on device 02:04:34 DEBUG| [stdout] 1+0 records in 02:04:34 DEBUG| [stdout] 0+0 records out 02:04:34 DEBUG| [stdout] 0 bytes copied, 0.127053 s, 0.0 kB/s 02:04:34 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.25': No space left on device 02:04:34 DEBUG| [stdout] 1+0 records in 02:04:34 DEBUG| [stdout] 0+0 records out 02:04:34 DEBUG| [stdout] 0 bytes copied, 0.114937 s, 0.0 kB/s 02:04:34 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.26': No space left on device 02:04:34 DEBUG| [stdout] 1+0 records in 02:04:34 DEBUG| [stdout] 0+0 records out 02:04:34 DEBUG| [stdout] 0 bytes copied, 0.115124 s, 0.0 kB/s 02:04:34 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.27': No space left on device 02:04:34 DEBUG| [stdout] 1+0 records in 02:04:34 DEBUG| [stdout] 0+0 records out 02:04:34 DEBUG| [stdout] 0 bytes copied, 0.115246 s, 0.0 kB/s 02:04:34 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.28': No space left on device 02:04:34 DEBUG| [stdout] 1+0 records in 02:04:34 DEBUG| [stdout] 0+0 records out 02:04:34 DEBUG| [stdout] 0 bytes copied, 0.11887 s, 0.0 kB/s 02:04:34 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.29': No space left on device 02:04:34 DEBUG| [stdout] 1+0 records in 02:04:34 DEBUG| [stdout] 0+0 records out 02:04:34 DEBUG| [stdout] 0 bytes copied, 0.118908 s, 0.0 kB/s 02:04:35 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.30': No space left on device 02:04:35 DEBUG| [stdout] 1+0 records in 02:04:35 DEBUG| [stdout] 0+0 records out 02:04:35 DEBUG| [stdout] 0 bytes copied, 0.118813 s, 0.0 kB/s 02:04:35 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.31': No space left on device 02:04:35 DEBUG| [stdout] 1+0 records in 02:04:35 DEBUG| [stdout] 0+0 records out 02:04:35 DEBUG| [stdout] 0 bytes copied, 0.119111 s, 0.0 kB/s 02:04:35 DEBUG| [stdout] dd: error writing '/tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1/random.32': No space left on device 02:04:35 DEBUG| [stdout] 1+0 records in 02:04:35 DEBUG| [stdout] 0+0 records out 02:04:35 DEBUG| [stdout] 0 bytes copied, 0.103049 s, 0.0 kB/s 02:04:35 DEBUG| [stdout] Filesystem 1K-blocks Used Available Use% Mounted on 02:04:35 DEBUG| [stdout] udev 4121632 0 4121632 0% /dev 02:04:35 DEBUG| [stdout] tmpfs 828208 8932 819276 2% /run 02:04:35 DEBUG| [stdout] /dev/sda1 287701364 6797916 266266392 3% / 02:04:35 DEBUG| [stdout] tmpfs 4141028 0 4141028 0% /dev/shm 02:04:35 DEBUG| [stdout] tmpfs 5120 0 5120 0% /run/lock 02:04:35 DEBUG| [stdout] tmpfs 4141028 0 4141028 0% /sys/fs/cgroup 02:04:35 DEBUG| [stdout] tmpfs 828208 0 828208 0% /run/user/1000 02:04:35 DEBUG| [stdout] /dev/loop0 262144 196384 0 100% /tmp/mnt-63dd86fa79db737a50f47488e5249f24e5acebc1 02:04:35 DEBUG| [stdout] 4 ./results 02:04:35 DEBUG| [stdout] 16 ./debug 02:04:35 DEBUG| [stdout] 4 ./profiling 02:04:35 DEBUG| [stdout] 36 ./sysinfo/iteration.1 02:04:35 DEBUG| [stdout] 40 ./sysinfo 02:04:35 DEBUG| [stdout] 76 . 02:04:35 DEBUG| [stdout] Performing full device TRIM (256.00MiB) ... 02:04:47 DEBUG| [stdout] 02:04:47 DEBUG| [stdout] PASS: 63dd86fa79db737a50f47488e5249f24e5acebc1 02:04:47 DEBUG| [stdout] 02:04:48 INFO | GOOD ubuntu_btrfs_kernel_fixes.63dd86fa79db737a50f47488e5249f24e5acebc1 ubuntu_btrfs_kernel_fixes.63dd86fa79db737a50f47488e5249f24e5acebc1 timestamp=1554861888 localtime=Apr 10 02:04:48 completed successfully 02:04:48 INFO | END GOOD ubuntu_btrfs_kernel_fixes.63dd86fa79db737a50f47488e5249f24e5acebc1 ubuntu_btrfs_kernel_fixes.63dd86fa79db737a50f47488e5249f24e5acebc1 timestamp=1554861888 localtime=Apr 10 02:04:48 02:04:48 DEBUG| Persistent state client._record_indent now set to 1 02:04:48 DEBUG| Persistent state client.unexpected_reboot deleted 02:04:48 INFO | Invoking test: 66c2689226ac322fbc9acd2e8e418b78dcd52f51.sh 02:04:48 DEBUG| Test has timeout: 7200 sec. 02:04:48 INFO | START ubuntu_btrfs_kernel_fixes.66c2689226ac322fbc9acd2e8e418b78dcd52f51 ubuntu_btrfs_kernel_fixes.66c2689226ac322fbc9acd2e8e418b78dcd52f51 timestamp=1554861888 timeout=7200 localtime=Apr 10 02:04:48 02:04:48 DEBUG| Persistent state client._record_indent now set to 2 02:04:48 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.66c2689226ac322fbc9acd2e8e418b78dcd52f51', 'ubuntu_btrfs_kernel_fixes.66c2689226ac322fbc9acd2e8e418b78dcd52f51') 02:04:48 DEBUG| Waiting for pid 15623 for 7200 seconds 02:04:48 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/66c2689226ac322fbc9acd2e8e418b78dcd52f51.sh 2>&1' 02:04:48 DEBUG| [stdout] Invoking test 66c2689226ac322fbc9acd2e8e418b78dcd52f51 02:04:48 DEBUG| [stdout] 02:04:48 DEBUG| [stdout] fix 66c2689226ac322fbc9acd2e8e418b78dcd52f51 02:04:48 DEBUG| [stdout] 02:04:48 DEBUG| [stdout] Btrfs: do not bother to defrag an extent if it is a big real extent 02:04:48 DEBUG| [stdout] 02:04:59 DEBUG| [stdout] 02:04:59 DEBUG| [stdout] PASS: 66c2689226ac322fbc9acd2e8e418b78dcd52f51 02:04:59 DEBUG| [stdout] 02:05:00 INFO | GOOD ubuntu_btrfs_kernel_fixes.66c2689226ac322fbc9acd2e8e418b78dcd52f51 ubuntu_btrfs_kernel_fixes.66c2689226ac322fbc9acd2e8e418b78dcd52f51 timestamp=1554861900 localtime=Apr 10 02:05:00 completed successfully 02:05:00 INFO | END GOOD ubuntu_btrfs_kernel_fixes.66c2689226ac322fbc9acd2e8e418b78dcd52f51 ubuntu_btrfs_kernel_fixes.66c2689226ac322fbc9acd2e8e418b78dcd52f51 timestamp=1554861900 localtime=Apr 10 02:05:00 02:05:00 DEBUG| Persistent state client._record_indent now set to 1 02:05:00 DEBUG| Persistent state client.unexpected_reboot deleted 02:05:00 INFO | Invoking test: 671415b7db49f62896f0b6d50fc4f312a0512983.sh 02:05:00 DEBUG| Test has timeout: 7200 sec. 02:05:00 INFO | START ubuntu_btrfs_kernel_fixes.671415b7db49f62896f0b6d50fc4f312a0512983 ubuntu_btrfs_kernel_fixes.671415b7db49f62896f0b6d50fc4f312a0512983 timestamp=1554861900 timeout=7200 localtime=Apr 10 02:05:00 02:05:00 DEBUG| Persistent state client._record_indent now set to 2 02:05:00 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.671415b7db49f62896f0b6d50fc4f312a0512983', 'ubuntu_btrfs_kernel_fixes.671415b7db49f62896f0b6d50fc4f312a0512983') 02:05:00 DEBUG| Waiting for pid 15714 for 7200 seconds 02:05:00 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/671415b7db49f62896f0b6d50fc4f312a0512983.sh 2>&1' 02:05:00 DEBUG| [stdout] Invoking test 671415b7db49f62896f0b6d50fc4f312a0512983 02:05:00 DEBUG| [stdout] 02:05:00 DEBUG| [stdout] fix 671415b7db49f62896f0b6d50fc4f312a0512983 02:05:00 DEBUG| [stdout] 02:05:00 DEBUG| [stdout] Btrfs: fix deadlock caused by the nested chunk allocation 02:05:00 DEBUG| [stdout] 02:05:00 DEBUG| [stdout] Steps to reproduce: 02:05:00 DEBUG| [stdout] # mkfs.btrfs -m raid1 02:05:00 DEBUG| [stdout] # btrfstune -S 1 02:05:00 DEBUG| [stdout] # mount 02:05:00 DEBUG| [stdout] # btrfs device add 02:05:00 DEBUG| [stdout] # mount -o remount,rw 02:05:00 DEBUG| [stdout] # dd if=/dev/zero of=/tmpfile bs=1M count=1 02:05:00 DEBUG| [stdout] Deadlock happened. 02:05:00 DEBUG| [stdout] 02:05:01 DEBUG| [stdout] btrfs-progs v4.4 02:05:01 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 02:05:01 DEBUG| [stdout] 02:05:01 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 02:05:01 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 02:05:01 DEBUG| [stdout] Label: (null) 02:05:01 DEBUG| [stdout] UUID: c01fb90c-b44b-45d0-959c-0535d13d3d28 02:05:01 DEBUG| [stdout] Node size: 16384 02:05:01 DEBUG| [stdout] Sector size: 4096 02:05:01 DEBUG| [stdout] Filesystem size: 2.00GiB 02:05:01 DEBUG| [stdout] Block group profiles: 02:05:01 DEBUG| [stdout] Data: RAID0 212.75MiB 02:05:01 DEBUG| [stdout] Metadata: RAID1 110.38MiB 02:05:01 DEBUG| [stdout] System: RAID1 12.00MiB 02:05:01 DEBUG| [stdout] SSD detected: no 02:05:01 DEBUG| [stdout] Incompat features: extref, skinny-metadata 02:05:01 DEBUG| [stdout] Number of devices: 2 02:05:01 DEBUG| [stdout] Devices: 02:05:01 DEBUG| [stdout] ID SIZE PATH 02:05:01 DEBUG| [stdout] 1 1.00GiB /dev/loop0 02:05:01 DEBUG| [stdout] 2 1.00GiB /dev/loop1 02:05:01 DEBUG| [stdout] 02:05:02 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 02:05:02 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 02:05:12 DEBUG| [stdout] 02:05:12 DEBUG| [stdout] PASS: 671415b7db49f62896f0b6d50fc4f312a0512983 02:05:12 DEBUG| [stdout] 02:05:12 INFO | GOOD ubuntu_btrfs_kernel_fixes.671415b7db49f62896f0b6d50fc4f312a0512983 ubuntu_btrfs_kernel_fixes.671415b7db49f62896f0b6d50fc4f312a0512983 timestamp=1554861912 localtime=Apr 10 02:05:12 completed successfully 02:05:12 INFO | END GOOD ubuntu_btrfs_kernel_fixes.671415b7db49f62896f0b6d50fc4f312a0512983 ubuntu_btrfs_kernel_fixes.671415b7db49f62896f0b6d50fc4f312a0512983 timestamp=1554861912 localtime=Apr 10 02:05:12 02:05:12 DEBUG| Persistent state client._record_indent now set to 1 02:05:12 DEBUG| Persistent state client.unexpected_reboot deleted 02:05:12 INFO | Invoking test: 6d07bcec969af335d4e35b3921131b7929bd634e.sh 02:05:12 DEBUG| Test has timeout: 7200 sec. 02:05:12 INFO | START ubuntu_btrfs_kernel_fixes.6d07bcec969af335d4e35b3921131b7929bd634e ubuntu_btrfs_kernel_fixes.6d07bcec969af335d4e35b3921131b7929bd634e timestamp=1554861912 timeout=7200 localtime=Apr 10 02:05:12 02:05:12 DEBUG| Persistent state client._record_indent now set to 2 02:05:13 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.6d07bcec969af335d4e35b3921131b7929bd634e', 'ubuntu_btrfs_kernel_fixes.6d07bcec969af335d4e35b3921131b7929bd634e') 02:05:13 DEBUG| Waiting for pid 15838 for 7200 seconds 02:05:13 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/6d07bcec969af335d4e35b3921131b7929bd634e.sh 2>&1' 02:05:13 DEBUG| [stdout] Invoking test 6d07bcec969af335d4e35b3921131b7929bd634e 02:05:13 DEBUG| [stdout] 02:05:13 DEBUG| [stdout] fix 6d07bcec969af335d4e35b3921131b7929bd634e 02:05:13 DEBUG| [stdout] 02:05:13 DEBUG| [stdout] btrfs: fix wrong free space information of btrfs 02:05:13 DEBUG| [stdout] 02:05:13 DEBUG| [stdout] When we store data by raid profile in btrfs with two or more different size 02:05:13 DEBUG| [stdout] disks, df command shows there is some free space in the filesystem, but the 02:05:13 DEBUG| [stdout] user can not write any data in fact, df command shows the wrong free space 02:05:13 DEBUG| [stdout] information of btrfs. 02:05:13 DEBUG| [stdout] 02:05:13 DEBUG| [stdout] Label: none uuid: 5fd9a50d-6166-4066-b082-790810cad47e 02:05:13 DEBUG| [stdout] Total devices 2 FS bytes used 112.00KiB 02:05:13 DEBUG| [stdout] devid 1 size 1.00GiB used 212.75MiB path /dev/loop0 02:05:13 DEBUG| [stdout] devid 2 size 1.00GiB used 212.75MiB path /dev/loop1 02:05:13 DEBUG| [stdout] 02:05:13 DEBUG| [stdout] Empty device: 02:05:13 DEBUG| [stdout] Scanning for Btrfs filesystems in '/dev/loop0' 02:05:13 DEBUG| [stdout] Scanning for Btrfs filesystems in '/dev/loop1' 02:05:13 DEBUG| [stdout] 02:05:24 DEBUG| [stdout] df reports: 02:05:24 DEBUG| [stdout] Filesystem 1K-blocks Used Available Use% Mounted on 02:05:24 DEBUG| [stdout] udev 4121632 0 4121632 0% /dev 02:05:24 DEBUG| [stdout] tmpfs 828208 8936 819272 2% /run 02:05:24 DEBUG| [stdout] /dev/sda1 287701364 8496848 264567460 4% / 02:05:24 DEBUG| [stdout] tmpfs 4141028 0 4141028 0% /dev/shm 02:05:24 DEBUG| [stdout] tmpfs 5120 0 5120 0% /run/lock 02:05:24 DEBUG| [stdout] tmpfs 4141028 0 4141028 0% /sys/fs/cgroup 02:05:24 DEBUG| [stdout] tmpfs 828208 0 828208 0% /run/user/1000 02:05:24 DEBUG| [stdout] /dev/loop0 1048576 952096 0 100% /tmp/mnt-6d07bcec969af335d4e35b3921131b7929bd634e 02:05:24 DEBUG| [stdout] 02:05:24 DEBUG| [stdout] Full device: 02:05:24 DEBUG| [stdout] Label: none uuid: 5fd9a50d-6166-4066-b082-790810cad47e 02:05:24 DEBUG| [stdout] Total devices 2 FS bytes used 913.78MiB 02:05:24 DEBUG| [stdout] devid 1 size 1.00GiB used 1023.00MiB path /dev/loop0 02:05:24 DEBUG| [stdout] devid 2 size 1.00GiB used 1023.00MiB path /dev/loop1 02:05:24 DEBUG| [stdout] 02:05:24 DEBUG| [stdout] 02:05:24 DEBUG| [stdout] Volume looks full or almost full according to df 02:05:24 DEBUG| [stdout] 02:05:35 DEBUG| [stdout] 02:05:35 DEBUG| [stdout] PASS: 6d07bcec969af335d4e35b3921131b7929bd634e 02:05:35 DEBUG| [stdout] 02:05:37 INFO | GOOD ubuntu_btrfs_kernel_fixes.6d07bcec969af335d4e35b3921131b7929bd634e ubuntu_btrfs_kernel_fixes.6d07bcec969af335d4e35b3921131b7929bd634e timestamp=1554861937 localtime=Apr 10 02:05:37 completed successfully 02:05:37 INFO | END GOOD ubuntu_btrfs_kernel_fixes.6d07bcec969af335d4e35b3921131b7929bd634e ubuntu_btrfs_kernel_fixes.6d07bcec969af335d4e35b3921131b7929bd634e timestamp=1554861937 localtime=Apr 10 02:05:37 02:05:37 DEBUG| Persistent state client._record_indent now set to 1 02:05:37 DEBUG| Persistent state client.unexpected_reboot deleted 02:05:37 INFO | Invoking test: 731e3d1b4348a96d53de6c084774424dedc64a3b.sh 02:05:37 DEBUG| Test has timeout: 7200 sec. 02:05:37 INFO | START ubuntu_btrfs_kernel_fixes.731e3d1b4348a96d53de6c084774424dedc64a3b ubuntu_btrfs_kernel_fixes.731e3d1b4348a96d53de6c084774424dedc64a3b timestamp=1554861937 timeout=7200 localtime=Apr 10 02:05:37 02:05:37 DEBUG| Persistent state client._record_indent now set to 2 02:05:37 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.731e3d1b4348a96d53de6c084774424dedc64a3b', 'ubuntu_btrfs_kernel_fixes.731e3d1b4348a96d53de6c084774424dedc64a3b') 02:05:37 DEBUG| Waiting for pid 15944 for 7200 seconds 02:05:37 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/731e3d1b4348a96d53de6c084774424dedc64a3b.sh 2>&1' 02:05:37 DEBUG| [stdout] Invoking test 731e3d1b4348a96d53de6c084774424dedc64a3b 02:05:37 DEBUG| [stdout] 02:05:37 DEBUG| [stdout] fix 731e3d1b4348a96d53de6c084774424dedc64a3b 02:05:37 DEBUG| [stdout] 02:05:37 DEBUG| [stdout] Btrfs: prohibit a operation of changing acl's mask when noacl mount option used 02:05:37 DEBUG| [stdout] 02:05:37 DEBUG| [stdout] when used Posix File System Test Suite(pjd-fstest) to test btrfs, 02:05:37 DEBUG| [stdout] some cases about setfacl failed when noacl mount option used. 02:05:37 DEBUG| [stdout] I simplified used commands in pjd-fstest, and the following steps 02:05:37 DEBUG| [stdout] can reproduce it. 02:05:37 DEBUG| [stdout] ------------------------ 02:05:37 DEBUG| [stdout] # cd btrfs-part/ 02:05:37 DEBUG| [stdout] # mkdir aaa 02:05:37 DEBUG| [stdout] # setfacl -m m::rw aaa <- successed, but not expected by pjd-fstest. 02:05:37 DEBUG| [stdout] ------------------------ 02:05:37 DEBUG| [stdout] 02:05:37 DEBUG| [stdout] setfacl: /tmp/mnt-731e3d1b4348a96d53de6c084774424dedc64a3b/test: Operation not supported 02:05:47 DEBUG| [stdout] 02:05:47 DEBUG| [stdout] PASS: 731e3d1b4348a96d53de6c084774424dedc64a3b 02:05:47 DEBUG| [stdout] 02:05:49 INFO | GOOD ubuntu_btrfs_kernel_fixes.731e3d1b4348a96d53de6c084774424dedc64a3b ubuntu_btrfs_kernel_fixes.731e3d1b4348a96d53de6c084774424dedc64a3b timestamp=1554861949 localtime=Apr 10 02:05:49 completed successfully 02:05:49 INFO | END GOOD ubuntu_btrfs_kernel_fixes.731e3d1b4348a96d53de6c084774424dedc64a3b ubuntu_btrfs_kernel_fixes.731e3d1b4348a96d53de6c084774424dedc64a3b timestamp=1554861949 localtime=Apr 10 02:05:49 02:05:49 DEBUG| Persistent state client._record_indent now set to 1 02:05:49 DEBUG| Persistent state client.unexpected_reboot deleted 02:05:49 INFO | Invoking test: 78a017a2c92df9b571db0a55a016280f9019c65e.sh 02:05:49 DEBUG| Test has timeout: 7200 sec. 02:05:49 INFO | START ubuntu_btrfs_kernel_fixes.78a017a2c92df9b571db0a55a016280f9019c65e ubuntu_btrfs_kernel_fixes.78a017a2c92df9b571db0a55a016280f9019c65e timestamp=1554861949 timeout=7200 localtime=Apr 10 02:05:49 02:05:49 DEBUG| Persistent state client._record_indent now set to 2 02:05:49 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.78a017a2c92df9b571db0a55a016280f9019c65e', 'ubuntu_btrfs_kernel_fixes.78a017a2c92df9b571db0a55a016280f9019c65e') 02:05:49 DEBUG| Waiting for pid 16028 for 7200 seconds 02:05:49 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/78a017a2c92df9b571db0a55a016280f9019c65e.sh 2>&1' 02:05:49 DEBUG| [stdout] Invoking test 78a017a2c92df9b571db0a55a016280f9019c65e 02:05:49 DEBUG| [stdout] 02:05:49 DEBUG| [stdout] fix 78a017a2c92df9b571db0a55a016280f9019c65e 02:05:49 DEBUG| [stdout] 02:05:49 DEBUG| [stdout] Btrfs: add missing compression property remove in btrfs_ioctl_setflags 02:05:49 DEBUG| [stdout] 02:05:49 DEBUG| [stdout] The behaviour of a 'chattr -c' consists of getting the current flags, 02:05:49 DEBUG| [stdout] clearing the FS_COMPR_FL bit and then sending the result to the set 02:05:49 DEBUG| [stdout] flags ioctl - this means the bit FS_NOCOMP_FL isn't set in the flags 02:05:49 DEBUG| [stdout] passed to the ioctl. This results in the compression property not being 02:05:49 DEBUG| [stdout] cleared from the inode - it was cleared only if the bit FS_NOCOMP_FL 02:05:49 DEBUG| [stdout] was set in the received flags. 02:05:49 DEBUG| [stdout] 02:05:59 DEBUG| [stdout] 02:05:59 DEBUG| [stdout] PASS: 78a017a2c92df9b571db0a55a016280f9019c65e 02:05:59 DEBUG| [stdout] 02:06:01 INFO | GOOD ubuntu_btrfs_kernel_fixes.78a017a2c92df9b571db0a55a016280f9019c65e ubuntu_btrfs_kernel_fixes.78a017a2c92df9b571db0a55a016280f9019c65e timestamp=1554861961 localtime=Apr 10 02:06:01 completed successfully 02:06:01 INFO | END GOOD ubuntu_btrfs_kernel_fixes.78a017a2c92df9b571db0a55a016280f9019c65e ubuntu_btrfs_kernel_fixes.78a017a2c92df9b571db0a55a016280f9019c65e timestamp=1554861961 localtime=Apr 10 02:06:01 02:06:01 DEBUG| Persistent state client._record_indent now set to 1 02:06:01 DEBUG| Persistent state client.unexpected_reboot deleted 02:06:01 INFO | Invoking test: 7b119a8b8998f17abd6caf928dee5bf203eef8c5.sh 02:06:01 DEBUG| Test has timeout: 7200 sec. 02:06:01 INFO | START ubuntu_btrfs_kernel_fixes.7b119a8b8998f17abd6caf928dee5bf203eef8c5 ubuntu_btrfs_kernel_fixes.7b119a8b8998f17abd6caf928dee5bf203eef8c5 timestamp=1554861961 timeout=7200 localtime=Apr 10 02:06:01 02:06:01 DEBUG| Persistent state client._record_indent now set to 2 02:06:01 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.7b119a8b8998f17abd6caf928dee5bf203eef8c5', 'ubuntu_btrfs_kernel_fixes.7b119a8b8998f17abd6caf928dee5bf203eef8c5') 02:06:01 DEBUG| Waiting for pid 16124 for 7200 seconds 02:06:01 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/7b119a8b8998f17abd6caf928dee5bf203eef8c5.sh 2>&1' 02:06:01 DEBUG| [stdout] Invoking test 7b119a8b8998f17abd6caf928dee5bf203eef8c5 02:06:01 DEBUG| [stdout] 02:06:01 DEBUG| [stdout] fix 7b119a8b8998f17abd6caf928dee5bf203eef8c5 02:06:01 DEBUG| [stdout] 02:06:01 DEBUG| [stdout] Btrfs: fix incremental send's decision to delay a dir move/rename 02:06:01 DEBUG| [stdout] 02:06:01 DEBUG| [stdout] It's possible to change the parent/child relationship between directories 02:06:01 DEBUG| [stdout] in such a way that if a child directory has a higher inode number than 02:06:01 DEBUG| [stdout] its parent, it doesn't necessarily means the child rename/move operation 02:06:01 DEBUG| [stdout] can be performed immediately. The parent migth have its own rename/move 02:06:01 DEBUG| [stdout] operation delayed, therefore in this case the child needs to have its 02:06:01 DEBUG| [stdout] rename/move operation delayed too, and be performed after its new parent's 02:06:01 DEBUG| [stdout] rename/move. 02:06:01 DEBUG| [stdout] 02:06:01 DEBUG| [stdout] btrfs-progs v4.4 02:06:01 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 02:06:01 DEBUG| [stdout] 02:06:01 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 02:06:01 DEBUG| [stdout] Label: (null) 02:06:01 DEBUG| [stdout] UUID: a3e03248-0140-4f47-9c24-14130269cd58 02:06:01 DEBUG| [stdout] Node size: 16384 02:06:01 DEBUG| [stdout] Sector size: 4096 02:06:01 DEBUG| [stdout] Filesystem size: 1.00GiB 02:06:01 DEBUG| [stdout] Block group profiles: 02:06:01 DEBUG| [stdout] Data: single 8.00MiB 02:06:01 DEBUG| [stdout] Metadata: DUP 59.19MiB 02:06:01 DEBUG| [stdout] System: DUP 12.00MiB 02:06:01 DEBUG| [stdout] SSD detected: no 02:06:01 DEBUG| [stdout] Incompat features: extref, skinny-metadata 02:06:01 DEBUG| [stdout] Number of devices: 1 02:06:01 DEBUG| [stdout] Devices: 02:06:01 DEBUG| [stdout] ID SIZE PATH 02:06:01 DEBUG| [stdout] 1 1.00GiB /dev/loop0 02:06:01 DEBUG| [stdout] 02:06:02 DEBUG| [stdout] btrfs-progs v4.4 02:06:02 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 02:06:02 DEBUG| [stdout] 02:06:02 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 02:06:02 DEBUG| [stdout] Label: (null) 02:06:02 DEBUG| [stdout] UUID: 8c8a1ff4-18aa-4175-a0ce-4fa3865ca14e 02:06:02 DEBUG| [stdout] Node size: 16384 02:06:02 DEBUG| [stdout] Sector size: 4096 02:06:02 DEBUG| [stdout] Filesystem size: 1.00GiB 02:06:02 DEBUG| [stdout] Block group profiles: 02:06:02 DEBUG| [stdout] Data: single 8.00MiB 02:06:02 DEBUG| [stdout] Metadata: DUP 59.19MiB 02:06:02 DEBUG| [stdout] System: DUP 12.00MiB 02:06:02 DEBUG| [stdout] SSD detected: no 02:06:02 DEBUG| [stdout] Incompat features: extref, skinny-metadata 02:06:02 DEBUG| [stdout] Number of devices: 1 02:06:02 DEBUG| [stdout] Devices: 02:06:02 DEBUG| [stdout] ID SIZE PATH 02:06:02 DEBUG| [stdout] 1 1.00GiB /dev/loop0 02:06:02 DEBUG| [stdout] 02:06:02 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-7b119a8b8998f17abd6caf928dee5bf203eef8c5' in '/tmp/mnt-7b119a8b8998f17abd6caf928dee5bf203eef8c5/snap1' 02:06:02 DEBUG| [stdout] At subvol /tmp/mnt-7b119a8b8998f17abd6caf928dee5bf203eef8c5/snap1 02:06:02 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-7b119a8b8998f17abd6caf928dee5bf203eef8c5' in '/tmp/mnt-7b119a8b8998f17abd6caf928dee5bf203eef8c5/snap2' 02:06:02 DEBUG| [stdout] At subvol /tmp/mnt-7b119a8b8998f17abd6caf928dee5bf203eef8c5/snap2 02:06:12 DEBUG| [stdout] 02:06:12 DEBUG| [stdout] PASS: 7b119a8b8998f17abd6caf928dee5bf203eef8c5 02:06:12 DEBUG| [stdout] 02:06:13 INFO | GOOD ubuntu_btrfs_kernel_fixes.7b119a8b8998f17abd6caf928dee5bf203eef8c5 ubuntu_btrfs_kernel_fixes.7b119a8b8998f17abd6caf928dee5bf203eef8c5 timestamp=1554861973 localtime=Apr 10 02:06:13 completed successfully 02:06:13 INFO | END GOOD ubuntu_btrfs_kernel_fixes.7b119a8b8998f17abd6caf928dee5bf203eef8c5 ubuntu_btrfs_kernel_fixes.7b119a8b8998f17abd6caf928dee5bf203eef8c5 timestamp=1554861973 localtime=Apr 10 02:06:13 02:06:13 DEBUG| Persistent state client._record_indent now set to 1 02:06:13 DEBUG| Persistent state client.unexpected_reboot deleted 02:06:13 INFO | Invoking test: 800ee2247f483b6d05ed47ef3bbc90b56451746c.sh 02:06:13 DEBUG| Test has timeout: 7200 sec. 02:06:13 INFO | START ubuntu_btrfs_kernel_fixes.800ee2247f483b6d05ed47ef3bbc90b56451746c ubuntu_btrfs_kernel_fixes.800ee2247f483b6d05ed47ef3bbc90b56451746c timestamp=1554861973 timeout=7200 localtime=Apr 10 02:06:13 02:06:13 DEBUG| Persistent state client._record_indent now set to 2 02:06:13 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.800ee2247f483b6d05ed47ef3bbc90b56451746c', 'ubuntu_btrfs_kernel_fixes.800ee2247f483b6d05ed47ef3bbc90b56451746c') 02:06:13 DEBUG| Waiting for pid 16252 for 7200 seconds 02:06:13 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/800ee2247f483b6d05ed47ef3bbc90b56451746c.sh 2>&1' 02:06:14 DEBUG| [stdout] Invoking test 800ee2247f483b6d05ed47ef3bbc90b56451746c 02:06:14 DEBUG| [stdout] 02:06:14 DEBUG| [stdout] fix 800ee2247f483b6d05ed47ef3bbc90b56451746c 02:06:14 DEBUG| [stdout] 02:06:14 DEBUG| [stdout] btrfs: fix crash in remount(thread_pool=) case 02:06:14 DEBUG| [stdout] 02:06:14 DEBUG| [stdout] Reproducer: 02:06:14 DEBUG| [stdout] mount /dev/ubda /mnt 02:06:14 DEBUG| [stdout] mount -oremount,thread_pool=42 /mnt 02:06:14 DEBUG| [stdout] 02:06:14 DEBUG| [stdout] Gives a crash: 02:06:14 DEBUG| [stdout] ? btrfs_workqueue_set_max+0x0/0x70 02:06:14 DEBUG| [stdout] btrfs_resize_thread_pool+0xe3/0xf0 02:06:14 DEBUG| [stdout] ? sync_filesystem+0x0/0xc0 02:06:14 DEBUG| [stdout] ? btrfs_resize_thread_pool+0x0/0xf0 02:06:14 DEBUG| [stdout] btrfs_remount+0x1d2/0x570 02:06:14 DEBUG| [stdout] ? kern_path+0x0/0x80 02:06:14 DEBUG| [stdout] do_remount_sb+0xd9/0x1c0 02:06:14 DEBUG| [stdout] do_mount+0x26a/0xbf0 02:06:14 DEBUG| [stdout] ? kfree+0x0/0x1b0 02:06:14 DEBUG| [stdout] SyS_mount+0xc4/0x110 02:06:14 DEBUG| [stdout] 02:06:14 DEBUG| [stdout] It's a call 02:06:14 DEBUG| [stdout] btrfs_workqueue_set_max(fs_info->scrub_wr_completion_workers, new_pool_size); 02:06:14 DEBUG| [stdout] with 02:06:14 DEBUG| [stdout] fs_info->scrub_wr_completion_workers = NULL; 02:06:14 DEBUG| [stdout] 02:06:14 DEBUG| [stdout] as scrub wqs get created only on user's demand. 02:06:14 DEBUG| [stdout] 02:06:27 DEBUG| [stdout] 02:06:27 DEBUG| [stdout] PASS: 800ee2247f483b6d05ed47ef3bbc90b56451746c 02:06:27 DEBUG| [stdout] 02:06:27 INFO | GOOD ubuntu_btrfs_kernel_fixes.800ee2247f483b6d05ed47ef3bbc90b56451746c ubuntu_btrfs_kernel_fixes.800ee2247f483b6d05ed47ef3bbc90b56451746c timestamp=1554861987 localtime=Apr 10 02:06:27 completed successfully 02:06:28 INFO | END GOOD ubuntu_btrfs_kernel_fixes.800ee2247f483b6d05ed47ef3bbc90b56451746c ubuntu_btrfs_kernel_fixes.800ee2247f483b6d05ed47ef3bbc90b56451746c timestamp=1554861987 localtime=Apr 10 02:06:27 02:06:28 DEBUG| Persistent state client._record_indent now set to 1 02:06:28 DEBUG| Persistent state client.unexpected_reboot deleted 02:06:28 INFO | Invoking test: 8185554d3eb09d23a805456b6fa98dcbb34aa518.sh 02:06:28 DEBUG| Test has timeout: 7200 sec. 02:06:28 INFO | START ubuntu_btrfs_kernel_fixes.8185554d3eb09d23a805456b6fa98dcbb34aa518 ubuntu_btrfs_kernel_fixes.8185554d3eb09d23a805456b6fa98dcbb34aa518 timestamp=1554861988 timeout=7200 localtime=Apr 10 02:06:28 02:06:28 DEBUG| Persistent state client._record_indent now set to 2 02:06:28 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.8185554d3eb09d23a805456b6fa98dcbb34aa518', 'ubuntu_btrfs_kernel_fixes.8185554d3eb09d23a805456b6fa98dcbb34aa518') 02:06:28 DEBUG| Waiting for pid 16849 for 7200 seconds 02:06:28 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/8185554d3eb09d23a805456b6fa98dcbb34aa518.sh 2>&1' 02:06:28 DEBUG| [stdout] Invoking test 8185554d3eb09d23a805456b6fa98dcbb34aa518 02:06:28 DEBUG| [stdout] 02:06:28 DEBUG| [stdout] fix 8185554d3eb09d23a805456b6fa98dcbb34aa518 02:06:28 DEBUG| [stdout] 02:06:28 DEBUG| [stdout] Btrfs: fix incorrect inode acl reset 02:06:28 DEBUG| [stdout] 02:06:28 DEBUG| [stdout] When a directory has a default ACL and a subdirectory is created 02:06:28 DEBUG| [stdout] under that directory, btrfs_init_acl() is called when the 02:06:28 DEBUG| [stdout] subdirectory's inode is created to initialize the inode's ACL 02:06:28 DEBUG| [stdout] (inherited from the parent directory) but it was clearing the ACL 02:06:28 DEBUG| [stdout] from the inode after setting it if posix_acl_create() returned 02:06:28 DEBUG| [stdout] success, instead of clearing it only if it returned an error. 02:06:28 DEBUG| [stdout] 02:06:28 DEBUG| [stdout] getfacl: Removing leading '/' from absolute path names 02:06:28 DEBUG| [stdout] # file: tmp/mnt-8185554d3eb09d23a805456b6fa98dcbb34aa518/acl 02:06:28 DEBUG| [stdout] # owner: root 02:06:28 DEBUG| [stdout] # group: root 02:06:28 DEBUG| [stdout] user::rwx 02:06:28 DEBUG| [stdout] group::r-x 02:06:28 DEBUG| [stdout] other::r-x 02:06:28 DEBUG| [stdout] default:user::rwx 02:06:28 DEBUG| [stdout] default:group::rwx 02:06:28 DEBUG| [stdout] default:other::--- 02:06:28 DEBUG| [stdout] 02:06:28 DEBUG| [stdout] getfacl: Removing leading '/' from absolute path names 02:06:28 DEBUG| [stdout] # file: tmp/mnt-8185554d3eb09d23a805456b6fa98dcbb34aa518/acl/dir1 02:06:28 DEBUG| [stdout] # owner: root 02:06:28 DEBUG| [stdout] # group: root 02:06:28 DEBUG| [stdout] user::rwx 02:06:28 DEBUG| [stdout] group::rwx 02:06:28 DEBUG| [stdout] other::--- 02:06:28 DEBUG| [stdout] default:user::rwx 02:06:28 DEBUG| [stdout] default:group::rwx 02:06:28 DEBUG| [stdout] default:other::--- 02:06:28 DEBUG| [stdout] 02:06:28 DEBUG| [stdout] getfacl: Removing leading '/' from absolute path names 02:06:28 DEBUG| [stdout] # file: tmp/mnt-8185554d3eb09d23a805456b6fa98dcbb34aa518/acl/dir1 02:06:28 DEBUG| [stdout] # owner: root 02:06:28 DEBUG| [stdout] # group: root 02:06:28 DEBUG| [stdout] user::rwx 02:06:28 DEBUG| [stdout] group::rwx 02:06:28 DEBUG| [stdout] other::--- 02:06:28 DEBUG| [stdout] default:user::rwx 02:06:28 DEBUG| [stdout] default:group::rwx 02:06:28 DEBUG| [stdout] default:other::--- 02:06:28 DEBUG| [stdout] 02:06:28 DEBUG| [stdout] getfacl: Removing leading '/' from absolute path names 02:06:38 DEBUG| [stdout] 02:06:38 DEBUG| [stdout] PASS: 8185554d3eb09d23a805456b6fa98dcbb34aa518 02:06:38 DEBUG| [stdout] 02:06:40 INFO | GOOD ubuntu_btrfs_kernel_fixes.8185554d3eb09d23a805456b6fa98dcbb34aa518 ubuntu_btrfs_kernel_fixes.8185554d3eb09d23a805456b6fa98dcbb34aa518 timestamp=1554862000 localtime=Apr 10 02:06:40 completed successfully 02:06:40 INFO | END GOOD ubuntu_btrfs_kernel_fixes.8185554d3eb09d23a805456b6fa98dcbb34aa518 ubuntu_btrfs_kernel_fixes.8185554d3eb09d23a805456b6fa98dcbb34aa518 timestamp=1554862000 localtime=Apr 10 02:06:40 02:06:40 DEBUG| Persistent state client._record_indent now set to 1 02:06:40 DEBUG| Persistent state client.unexpected_reboot deleted 02:06:40 INFO | Invoking test: 84471e2429ed82fdbac0c56d5b2a18d450f99f6a.sh 02:06:40 DEBUG| Test has timeout: 7200 sec. 02:06:40 INFO | START ubuntu_btrfs_kernel_fixes.84471e2429ed82fdbac0c56d5b2a18d450f99f6a ubuntu_btrfs_kernel_fixes.84471e2429ed82fdbac0c56d5b2a18d450f99f6a timestamp=1554862000 timeout=7200 localtime=Apr 10 02:06:40 02:06:40 DEBUG| Persistent state client._record_indent now set to 2 02:06:40 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.84471e2429ed82fdbac0c56d5b2a18d450f99f6a', 'ubuntu_btrfs_kernel_fixes.84471e2429ed82fdbac0c56d5b2a18d450f99f6a') 02:06:40 DEBUG| Waiting for pid 16970 for 7200 seconds 02:06:40 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/84471e2429ed82fdbac0c56d5b2a18d450f99f6a.sh 2>&1' 02:06:40 DEBUG| [stdout] Invoking test 84471e2429ed82fdbac0c56d5b2a18d450f99f6a 02:06:40 DEBUG| [stdout] 02:06:40 DEBUG| [stdout] + cat 02:06:40 DEBUG| [stdout] fix 84471e2429ed82fdbac0c56d5b2a18d450f99f6a 02:06:40 DEBUG| [stdout] 02:06:40 DEBUG| [stdout] Btrfs: incremental send, don't rename a directory too soon 02:06:40 DEBUG| [stdout] 02:06:40 DEBUG| [stdout] There's one more case where we can't issue a rename operation for a 02:06:40 DEBUG| [stdout] directory as soon as we process it. We used to delay directory renames 02:06:40 DEBUG| [stdout] only if they have some ancestor directory with a higher inode number 02:06:40 DEBUG| [stdout] that got renamed too, but there's another case where we need to delay 02:06:40 DEBUG| [stdout] the rename too - when a directory A is renamed to the old name of a 02:06:40 DEBUG| [stdout] directory B but that directory B has its rename delayed because it 02:06:40 DEBUG| [stdout] has now (in the send root) an ancestor with a higher inode number that 02:06:40 DEBUG| [stdout] was renamed. If we don't delay the directory rename in this case, the 02:06:40 DEBUG| [stdout] receiving end of the send stream will attempt to rename A to the old 02:06:40 DEBUG| [stdout] name of B before B got renamed to its new name, which results in a 02:06:40 DEBUG| [stdout] "directory not empty" error. So fix this by delaying directory renames 02:06:40 DEBUG| [stdout] for this case too. 02:06:40 DEBUG| [stdout] 02:06:40 DEBUG| [stdout] + TMPIMG0=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/test0.img 02:06:40 DEBUG| [stdout] + TMPIMG1=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/test1.img 02:06:40 DEBUG| [stdout] + MNT0=/tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0 02:06:40 DEBUG| [stdout] + MNT1=/tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/1 02:06:40 DEBUG| [stdout] + rm -rf /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0 /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/1 02:06:40 DEBUG| [stdout] + mkdir /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0 /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/1 02:06:40 DEBUG| [stdout] + truncate --size 1G /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/test0.img 02:06:40 DEBUG| [stdout] + truncate --size 1G /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/test1.img 02:06:40 DEBUG| [stdout] ++ losetup -f 02:06:40 DEBUG| [stdout] + DEV0=/dev/loop0 02:06:40 DEBUG| [stdout] + losetup /dev/loop0 /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/test0.img 02:06:40 DEBUG| [stdout] ++ losetup -f 02:06:40 DEBUG| [stdout] + DEV1=/dev/loop1 02:06:40 DEBUG| [stdout] + losetup /dev/loop1 /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/test1.img 02:06:40 DEBUG| [stdout] + mkfs.btrfs -f /dev/loop0 02:06:40 DEBUG| [stdout] + '[' 0 -ne 0 ']' 02:06:40 DEBUG| [stdout] + mkfs.btrfs -f /dev/loop1 02:06:40 DEBUG| [stdout] + '[' 0 -ne 0 ']' 02:06:40 DEBUG| [stdout] + mount /dev/loop0 /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0 02:06:40 DEBUG| [stdout] + mount /dev/loop1 /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/1 02:06:40 DEBUG| [stdout] + mkdir /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/a 02:06:40 DEBUG| [stdout] + mkdir /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/b 02:06:40 DEBUG| [stdout] + mkdir /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/c 02:06:40 DEBUG| [stdout] + mkdir /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/a/file 02:06:40 DEBUG| [stdout] + btrfs subvolume snapshot -r /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0 /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/snap1 02:06:41 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0' in '/tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/snap1' 02:06:41 DEBUG| [stdout] + mv /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/c /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/x 02:06:41 DEBUG| [stdout] + mv /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/a /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/x/y 02:06:41 DEBUG| [stdout] + mv /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/b /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/q 02:06:41 DEBUG| [stdout] + btrfs subvolume snapshot -r /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0 /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/snap2 02:06:41 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0' in '/tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/snap2' 02:06:41 DEBUG| [stdout] + btrfs send -f /tmp/1.send /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/snap1 02:06:41 DEBUG| [stdout] At subvol /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/snap1 02:06:41 DEBUG| [stdout] + btrfs send -p /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/snap1 -f /tmp/2.send /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/snap2 02:06:41 DEBUG| [stdout] At subvol /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0/snap2 02:06:41 DEBUG| [stdout] + btrfs receive -f /tmp/1.send /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/1 02:06:41 DEBUG| [stdout] At subvol snap1 02:06:41 DEBUG| [stdout] + btrfs receive -f /tmp/2.send /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/1 02:06:41 DEBUG| [stdout] At snapshot snap2 02:06:41 DEBUG| [stdout] + rc=0 02:06:41 DEBUG| [stdout] + '[' 0 -ne 0 ']' 02:06:41 DEBUG| [stdout] + umount /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0 02:06:41 DEBUG| [stdout] + umount /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/1 02:06:41 DEBUG| [stdout] + rm -rf /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/0 /tmp/mnt-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/1 02:06:41 DEBUG| [stdout] + losetup -d /dev/loop0 02:06:41 DEBUG| [stdout] + losetup -d /dev/loop1 02:06:41 DEBUG| [stdout] + rm -f /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/test0.img /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/tmp-84471e2429ed82fdbac0c56d5b2a18d450f99f6a/test1.img 02:06:41 DEBUG| [stdout] + exit 0 02:06:51 DEBUG| [stdout] 02:06:51 DEBUG| [stdout] PASS: 84471e2429ed82fdbac0c56d5b2a18d450f99f6a 02:06:51 DEBUG| [stdout] 02:06:52 INFO | GOOD ubuntu_btrfs_kernel_fixes.84471e2429ed82fdbac0c56d5b2a18d450f99f6a ubuntu_btrfs_kernel_fixes.84471e2429ed82fdbac0c56d5b2a18d450f99f6a timestamp=1554862012 localtime=Apr 10 02:06:52 completed successfully 02:06:52 INFO | END GOOD ubuntu_btrfs_kernel_fixes.84471e2429ed82fdbac0c56d5b2a18d450f99f6a ubuntu_btrfs_kernel_fixes.84471e2429ed82fdbac0c56d5b2a18d450f99f6a timestamp=1554862012 localtime=Apr 10 02:06:52 02:06:52 DEBUG| Persistent state client._record_indent now set to 1 02:06:52 DEBUG| Persistent state client.unexpected_reboot deleted 02:06:52 INFO | Invoking test: 848cce0d4102b5b4b26b0987b43e1919d462afe2.sh 02:06:52 DEBUG| Test has timeout: 7200 sec. 02:06:52 INFO | START ubuntu_btrfs_kernel_fixes.848cce0d4102b5b4b26b0987b43e1919d462afe2 ubuntu_btrfs_kernel_fixes.848cce0d4102b5b4b26b0987b43e1919d462afe2 timestamp=1554862012 timeout=7200 localtime=Apr 10 02:06:52 02:06:52 DEBUG| Persistent state client._record_indent now set to 2 02:06:52 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.848cce0d4102b5b4b26b0987b43e1919d462afe2', 'ubuntu_btrfs_kernel_fixes.848cce0d4102b5b4b26b0987b43e1919d462afe2') 02:06:52 DEBUG| Waiting for pid 17109 for 7200 seconds 02:06:52 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/848cce0d4102b5b4b26b0987b43e1919d462afe2.sh 2>&1' 02:06:52 DEBUG| [stdout] Invoking test 848cce0d4102b5b4b26b0987b43e1919d462afe2 02:06:52 DEBUG| [stdout] 02:06:52 DEBUG| [stdout] fix 848cce0d4102b5b4b26b0987b43e1919d462afe2 02:06:52 DEBUG| [stdout] 02:06:52 DEBUG| [stdout] Btrfs: avoid setting ->d_op twice 02:06:52 DEBUG| [stdout] 02:06:52 DEBUG| [stdout] Follow those instructions, and you'll trigger a warning in the 02:06:52 DEBUG| [stdout] beginning of d_set_d_op(): 02:06:52 DEBUG| [stdout] 02:06:52 DEBUG| [stdout] # mkfs.btrfs /dev/loop3 02:06:52 DEBUG| [stdout] # mount /dev/loop3 /mnt 02:06:52 DEBUG| [stdout] # btrfs sub create /mnt/sub 02:06:52 DEBUG| [stdout] # btrfs sub snap /mnt /mnt/snap 02:06:52 DEBUG| [stdout] # touch /mnt/snap/sub 02:06:52 DEBUG| [stdout] touch: cannot touch 'tmp': Permission denied 02:06:52 DEBUG| [stdout] 02:06:52 DEBUG| [stdout] __d_alloc() set d_op to sb->s_d_op (btrfs_dentry_operations), and 02:06:52 DEBUG| [stdout] then simple_lookup() reset it to simple_dentry_operations, which 02:06:52 DEBUG| [stdout] triggered the warning. 02:06:52 DEBUG| [stdout] 02:06:52 DEBUG| [stdout] Create subvolume '/tmp/mnt-848cce0d4102b5b4b26b0987b43e1919d462afe2/sub' 02:06:53 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-848cce0d4102b5b4b26b0987b43e1919d462afe2' in '/tmp/mnt-848cce0d4102b5b4b26b0987b43e1919d462afe2/snap' 02:07:03 DEBUG| [stdout] 02:07:03 DEBUG| [stdout] PASS: 848cce0d4102b5b4b26b0987b43e1919d462afe2 02:07:03 DEBUG| [stdout] 02:07:04 INFO | GOOD ubuntu_btrfs_kernel_fixes.848cce0d4102b5b4b26b0987b43e1919d462afe2 ubuntu_btrfs_kernel_fixes.848cce0d4102b5b4b26b0987b43e1919d462afe2 timestamp=1554862024 localtime=Apr 10 02:07:04 completed successfully 02:07:04 INFO | END GOOD ubuntu_btrfs_kernel_fixes.848cce0d4102b5b4b26b0987b43e1919d462afe2 ubuntu_btrfs_kernel_fixes.848cce0d4102b5b4b26b0987b43e1919d462afe2 timestamp=1554862024 localtime=Apr 10 02:07:04 02:07:04 DEBUG| Persistent state client._record_indent now set to 1 02:07:04 DEBUG| Persistent state client.unexpected_reboot deleted 02:07:04 INFO | Invoking test: 87fa3bb0786f37dff0b92f2c38421dd56d8902a9.sh 02:07:04 DEBUG| Test has timeout: 7200 sec. 02:07:04 INFO | START ubuntu_btrfs_kernel_fixes.87fa3bb0786f37dff0b92f2c38421dd56d8902a9 ubuntu_btrfs_kernel_fixes.87fa3bb0786f37dff0b92f2c38421dd56d8902a9 timestamp=1554862024 timeout=7200 localtime=Apr 10 02:07:04 02:07:04 DEBUG| Persistent state client._record_indent now set to 2 02:07:04 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.87fa3bb0786f37dff0b92f2c38421dd56d8902a9', 'ubuntu_btrfs_kernel_fixes.87fa3bb0786f37dff0b92f2c38421dd56d8902a9') 02:07:04 DEBUG| Waiting for pid 17199 for 7200 seconds 02:07:04 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/87fa3bb0786f37dff0b92f2c38421dd56d8902a9.sh 2>&1' 02:07:05 DEBUG| [stdout] Invoking test 87fa3bb0786f37dff0b92f2c38421dd56d8902a9 02:07:05 DEBUG| [stdout] 02:07:05 DEBUG| [stdout] fix 87fa3bb0786f37dff0b92f2c38421dd56d8902a 02:07:05 DEBUG| [stdout] 02:07:05 DEBUG| [stdout] Btrfs: fix regression of btrfs device replace 02:07:05 DEBUG| [stdout] 02:07:05 DEBUG| [stdout] Commit 49c6f736f34f901117c20960ebd7d5e60f12fcac( 02:07:05 DEBUG| [stdout] btrfs: dev replace should replace the sysfs entry) added the missing sysfs entry 02:07:05 DEBUG| [stdout] in the process of device replace, but didn't take missing devices into account, 02:07:05 DEBUG| [stdout] so now we have 02:07:05 DEBUG| [stdout] 02:07:05 DEBUG| [stdout] BUG: unable to handle kernel NULL pointer dereference at 0000000000000088 02:07:05 DEBUG| [stdout] IP: [] btrfs_kobj_rm_device+0x21/0x40 [btrfs] 02:07:05 DEBUG| [stdout] ... 02:07:05 DEBUG| [stdout] 02:07:05 DEBUG| [stdout] To reproduce it, 02:07:05 DEBUG| [stdout] 1. mkfs.btrfs -f disk1 disk2 02:07:05 DEBUG| [stdout] 2. mkfs.ext4 disk1 02:07:05 DEBUG| [stdout] 3. mount disk2 /mnt -odegraded 02:07:05 DEBUG| [stdout] 4. btrfs replace start -B 1 disk3 /mnt 02:07:05 DEBUG| [stdout] 02:07:05 DEBUG| [stdout] mke2fs 1.42.13 (17-May-2015) 02:07:05 DEBUG| [stdout] The file /dev//dev/loop0 does not exist and no size was specified. 02:07:16 DEBUG| [stdout] 02:07:16 DEBUG| [stdout] PASS: 87fa3bb0786f37dff0b92f2c38421dd56d8902a9 02:07:16 DEBUG| [stdout] 02:07:16 INFO | GOOD ubuntu_btrfs_kernel_fixes.87fa3bb0786f37dff0b92f2c38421dd56d8902a9 ubuntu_btrfs_kernel_fixes.87fa3bb0786f37dff0b92f2c38421dd56d8902a9 timestamp=1554862036 localtime=Apr 10 02:07:16 completed successfully 02:07:17 INFO | END GOOD ubuntu_btrfs_kernel_fixes.87fa3bb0786f37dff0b92f2c38421dd56d8902a9 ubuntu_btrfs_kernel_fixes.87fa3bb0786f37dff0b92f2c38421dd56d8902a9 timestamp=1554862036 localtime=Apr 10 02:07:16 02:07:17 DEBUG| Persistent state client._record_indent now set to 1 02:07:17 DEBUG| Persistent state client.unexpected_reboot deleted 02:07:17 INFO | Invoking test: 93fd63c2f001ca6797c6b15b696a484b165b4800.sh 02:07:17 DEBUG| Test has timeout: 7200 sec. 02:07:17 INFO | START ubuntu_btrfs_kernel_fixes.93fd63c2f001ca6797c6b15b696a484b165b4800 ubuntu_btrfs_kernel_fixes.93fd63c2f001ca6797c6b15b696a484b165b4800 timestamp=1554862037 timeout=7200 localtime=Apr 10 02:07:17 02:07:17 DEBUG| Persistent state client._record_indent now set to 2 02:07:17 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.93fd63c2f001ca6797c6b15b696a484b165b4800', 'ubuntu_btrfs_kernel_fixes.93fd63c2f001ca6797c6b15b696a484b165b4800') 02:07:17 DEBUG| Waiting for pid 17316 for 7200 seconds 02:07:17 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/93fd63c2f001ca6797c6b15b696a484b165b4800.sh 2>&1' 02:07:17 DEBUG| [stdout] Invoking test 93fd63c2f001ca6797c6b15b696a484b165b4800 02:07:17 DEBUG| [stdout] 02:07:17 DEBUG| [stdout] fix 93fd63c2f001ca6797c6b15b696a484b165b4800 02:07:17 DEBUG| [stdout] 02:07:17 DEBUG| [stdout] Commit 2bc5565286121d2a77ccd728eb3484dff2035b58 (Btrfs: don't update atime on 02:07:17 DEBUG| [stdout] RO subvolumes) ensures that the access time of an inode is not updated when 02:07:17 DEBUG| [stdout] the inode lives in a read-only subvolume. 02:07:17 DEBUG| [stdout] However, if a directory on a read-only subvolume is accessed, the atime is 02:07:17 DEBUG| [stdout] updated. This results in a write operation to a read-only subvolume. I 02:07:17 DEBUG| [stdout] believe that access times should never be updated on read-only subvolumes. 02:07:17 DEBUG| [stdout] 02:07:17 DEBUG| [stdout] Create subvolume '/tmp/mnt-93fd63c2f001ca6797c6b15b696a484b165b4800/sub' 02:07:17 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-93fd63c2f001ca6797c6b15b696a484b165b4800/sub' in '/tmp/mnt-93fd63c2f001ca6797c6b15b696a484b165b4800/rosnap' 02:07:18 DEBUG| [stdout] file 02:07:18 DEBUG| [stdout] 02:07:18 DEBUG| [stdout] Before access of file: 02:07:18 DEBUG| [stdout] File: '/tmp/mnt-93fd63c2f001ca6797c6b15b696a484b165b4800/rosnap/dir' 02:07:18 DEBUG| [stdout] Size: 8 Blocks: 0 IO Block: 4096 directory 02:07:18 DEBUG| [stdout] Device: 2bh/43d Inode: 257 Links: 1 02:07:18 DEBUG| [stdout] Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) 02:07:18 DEBUG| [stdout] Access: 2019-04-10 02:07:17.511897539 +0000 02:07:18 DEBUG| [stdout] Modify: 2019-04-10 02:07:17.511897539 +0000 02:07:18 DEBUG| [stdout] Change: 2019-04-10 02:07:17.511897539 +0000 02:07:18 DEBUG| [stdout] Birth: - 02:07:18 DEBUG| [stdout] 02:07:18 DEBUG| [stdout] After access of file: 02:07:18 DEBUG| [stdout] File: '/tmp/mnt-93fd63c2f001ca6797c6b15b696a484b165b4800/rosnap/dir' 02:07:18 DEBUG| [stdout] Size: 8 Blocks: 0 IO Block: 4096 directory 02:07:18 DEBUG| [stdout] Device: 2bh/43d Inode: 257 Links: 1 02:07:18 DEBUG| [stdout] Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) 02:07:18 DEBUG| [stdout] Access: 2019-04-10 02:07:17.511897539 +0000 02:07:18 DEBUG| [stdout] Modify: 2019-04-10 02:07:17.511897539 +0000 02:07:18 DEBUG| [stdout] Change: 2019-04-10 02:07:17.511897539 +0000 02:07:18 DEBUG| [stdout] Birth: - 02:07:18 DEBUG| [stdout] 02:07:18 DEBUG| [stdout] access time on read-only subvolume was not updated as expected 02:07:28 DEBUG| [stdout] 02:07:28 DEBUG| [stdout] PASS: 93fd63c2f001ca6797c6b15b696a484b165b4800 02:07:28 DEBUG| [stdout] 02:07:29 INFO | GOOD ubuntu_btrfs_kernel_fixes.93fd63c2f001ca6797c6b15b696a484b165b4800 ubuntu_btrfs_kernel_fixes.93fd63c2f001ca6797c6b15b696a484b165b4800 timestamp=1554862049 localtime=Apr 10 02:07:29 completed successfully 02:07:29 INFO | END GOOD ubuntu_btrfs_kernel_fixes.93fd63c2f001ca6797c6b15b696a484b165b4800 ubuntu_btrfs_kernel_fixes.93fd63c2f001ca6797c6b15b696a484b165b4800 timestamp=1554862049 localtime=Apr 10 02:07:29 02:07:29 DEBUG| Persistent state client._record_indent now set to 1 02:07:29 DEBUG| Persistent state client.unexpected_reboot deleted 02:07:29 INFO | Invoking test: 9a40f1222a372de77344d85d31f8fe0e1c0e60e7.sh 02:07:29 DEBUG| Test has timeout: 7200 sec. 02:07:29 INFO | START ubuntu_btrfs_kernel_fixes.9a40f1222a372de77344d85d31f8fe0e1c0e60e7 ubuntu_btrfs_kernel_fixes.9a40f1222a372de77344d85d31f8fe0e1c0e60e7 timestamp=1554862049 timeout=7200 localtime=Apr 10 02:07:29 02:07:29 DEBUG| Persistent state client._record_indent now set to 2 02:07:29 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.9a40f1222a372de77344d85d31f8fe0e1c0e60e7', 'ubuntu_btrfs_kernel_fixes.9a40f1222a372de77344d85d31f8fe0e1c0e60e7') 02:07:29 DEBUG| Waiting for pid 17408 for 7200 seconds 02:07:29 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/9a40f1222a372de77344d85d31f8fe0e1c0e60e7.sh 2>&1' 02:07:29 DEBUG| [stdout] Invoking test 9a40f1222a372de77344d85d31f8fe0e1c0e60e7 02:07:29 DEBUG| [stdout] 02:07:29 DEBUG| [stdout] fix 9a40f1222a372de77344d85d31f8fe0e1c0e60e7 02:07:29 DEBUG| [stdout] 02:07:29 DEBUG| [stdout] btrfs: filter invalid arg for btrfs resize 02:07:29 DEBUG| [stdout] 02:07:29 DEBUG| [stdout] Originally following cmds will work: 02:07:29 DEBUG| [stdout] # btrfs fi resize -10A 02:07:29 DEBUG| [stdout] # btrfs fi resize -10Gaha 02:07:29 DEBUG| [stdout] Filter the arg by checking the return pointer of memparse. 02:07:29 DEBUG| [stdout] 02:07:39 DEBUG| [stdout] 02:07:39 DEBUG| [stdout] PASS: 9a40f1222a372de77344d85d31f8fe0e1c0e60e7 02:07:39 DEBUG| [stdout] 02:07:41 INFO | GOOD ubuntu_btrfs_kernel_fixes.9a40f1222a372de77344d85d31f8fe0e1c0e60e7 ubuntu_btrfs_kernel_fixes.9a40f1222a372de77344d85d31f8fe0e1c0e60e7 timestamp=1554862061 localtime=Apr 10 02:07:41 completed successfully 02:07:41 INFO | END GOOD ubuntu_btrfs_kernel_fixes.9a40f1222a372de77344d85d31f8fe0e1c0e60e7 ubuntu_btrfs_kernel_fixes.9a40f1222a372de77344d85d31f8fe0e1c0e60e7 timestamp=1554862061 localtime=Apr 10 02:07:41 02:07:41 DEBUG| Persistent state client._record_indent now set to 1 02:07:41 DEBUG| Persistent state client.unexpected_reboot deleted 02:07:41 INFO | Invoking test: 9ba1f6e44ed7a1fa52d3f292508bf921b5054172.sh 02:07:41 DEBUG| Test has timeout: 7200 sec. 02:07:41 INFO | START ubuntu_btrfs_kernel_fixes.9ba1f6e44ed7a1fa52d3f292508bf921b5054172 ubuntu_btrfs_kernel_fixes.9ba1f6e44ed7a1fa52d3f292508bf921b5054172 timestamp=1554862061 timeout=7200 localtime=Apr 10 02:07:41 02:07:41 DEBUG| Persistent state client._record_indent now set to 2 02:07:41 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.9ba1f6e44ed7a1fa52d3f292508bf921b5054172', 'ubuntu_btrfs_kernel_fixes.9ba1f6e44ed7a1fa52d3f292508bf921b5054172') 02:07:41 DEBUG| Waiting for pid 17492 for 7200 seconds 02:07:41 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/9ba1f6e44ed7a1fa52d3f292508bf921b5054172.sh 2>&1' 02:07:41 DEBUG| [stdout] Invoking test 9ba1f6e44ed7a1fa52d3f292508bf921b5054172 02:07:41 DEBUG| [stdout] 02:07:41 DEBUG| [stdout] fix 9ba1f6e44ed7a1fa52d3f292508bf921b5054172 02:07:41 DEBUG| [stdout] 02:07:41 DEBUG| [stdout] Btrfs: do not do balance in readonly mode 02:07:41 DEBUG| [stdout] 02:07:41 DEBUG| [stdout] In normal cases, we would not be allowed to do balance in RO mode. 02:07:41 DEBUG| [stdout] However, when we're using a seeding device and adding another device to sprout, 02:07:41 DEBUG| [stdout] things will change: 02:07:41 DEBUG| [stdout] 02:07:41 DEBUG| [stdout] $ mkfs.btrfs /dev/sdb7 02:07:41 DEBUG| [stdout] $ btrfstune -S 1 /dev/sdb7 02:07:41 DEBUG| [stdout] $ mount /dev/sdb7 /mnt/btrfs -o ro 02:07:41 DEBUG| [stdout] $ btrfs fi bal /mnt/btrfs -----------------------> fail. 02:07:41 DEBUG| [stdout] $ btrfs dev add /dev/sdb8 /mnt/btrfs 02:07:41 DEBUG| [stdout] $ btrfs fi bal /mnt/btrfs -----------------------> works! 02:07:41 DEBUG| [stdout] 02:07:41 DEBUG| [stdout] It should not be designed as an exception, and we'd better add another check for 02:07:41 DEBUG| [stdout] mnt flags. 02:07:41 DEBUG| [stdout] 02:07:41 DEBUG| [stdout] passed, not allowed to rebalance read only filesystem 02:07:41 DEBUG| [stdout] 02:07:42 DEBUG| [stdout] Performing full device TRIM (512.00MiB) ... 02:07:42 DEBUG| [stdout] passed, not allowed to rebalance read only filesystem after r/w device added 02:07:52 DEBUG| [stdout] 02:07:52 DEBUG| [stdout] PASS: 9ba1f6e44ed7a1fa52d3f292508bf921b5054172 02:07:52 DEBUG| [stdout] 02:07:53 INFO | GOOD ubuntu_btrfs_kernel_fixes.9ba1f6e44ed7a1fa52d3f292508bf921b5054172 ubuntu_btrfs_kernel_fixes.9ba1f6e44ed7a1fa52d3f292508bf921b5054172 timestamp=1554862073 localtime=Apr 10 02:07:53 completed successfully 02:07:53 INFO | END GOOD ubuntu_btrfs_kernel_fixes.9ba1f6e44ed7a1fa52d3f292508bf921b5054172 ubuntu_btrfs_kernel_fixes.9ba1f6e44ed7a1fa52d3f292508bf921b5054172 timestamp=1554862073 localtime=Apr 10 02:07:53 02:07:53 DEBUG| Persistent state client._record_indent now set to 1 02:07:53 DEBUG| Persistent state client.unexpected_reboot deleted 02:07:53 INFO | Invoking test: 9dc442143b9874ba677fc83bf8c60744ec642998.sh 02:07:53 DEBUG| Test has timeout: 7200 sec. 02:07:53 INFO | START ubuntu_btrfs_kernel_fixes.9dc442143b9874ba677fc83bf8c60744ec642998 ubuntu_btrfs_kernel_fixes.9dc442143b9874ba677fc83bf8c60744ec642998 timestamp=1554862073 timeout=7200 localtime=Apr 10 02:07:53 02:07:53 DEBUG| Persistent state client._record_indent now set to 2 02:07:53 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.9dc442143b9874ba677fc83bf8c60744ec642998', 'ubuntu_btrfs_kernel_fixes.9dc442143b9874ba677fc83bf8c60744ec642998') 02:07:53 DEBUG| Waiting for pid 17592 for 7200 seconds 02:07:53 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/9dc442143b9874ba677fc83bf8c60744ec642998.sh 2>&1' 02:07:53 DEBUG| [stdout] Invoking test 9dc442143b9874ba677fc83bf8c60744ec642998 02:07:53 DEBUG| [stdout] 02:07:53 DEBUG| [stdout] fix 9dc442143b9874ba677fc83bf8c60744ec642998 02:07:53 DEBUG| [stdout] 02:07:53 DEBUG| [stdout] Btrfs: fix send attempting to rmdir non-empty directories 02:07:53 DEBUG| [stdout] 02:07:53 DEBUG| [stdout] The incremental send algorithm assumed that it was possible to issue 02:07:53 DEBUG| [stdout] a directory remove (rmdir) if the the inode number it was currently 02:07:53 DEBUG| [stdout] processing was greater than (or equal) to any inode that referenced 02:07:53 DEBUG| [stdout] the directory's inode. This wasn't a valid assumption because any such 02:07:53 DEBUG| [stdout] inode might be a child directory that is pending a move/rename operation, 02:07:53 DEBUG| [stdout] because it was moved into a directory that has a higher inode number and 02:07:53 DEBUG| [stdout] was moved/renamed too - in other words, the case the following commit 02:07:53 DEBUG| [stdout] addressed: 02:07:53 DEBUG| [stdout] 02:07:53 DEBUG| [stdout] 9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 02:07:53 DEBUG| [stdout] (Btrfs: fix infinite path build loops in incremental send) 02:07:53 DEBUG| [stdout] 02:07:53 DEBUG| [stdout] This made an incremental send issue an rmdir operation before the 02:07:53 DEBUG| [stdout] target directory was actually empty, which made btrfs receive fail. 02:07:53 DEBUG| [stdout] Therefore it needs to wait for all pending child directory inodes to 02:07:53 DEBUG| [stdout] 02:07:54 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-9dc442143b9874ba677fc83bf8c60744ec642998' in '/tmp/mnt-9dc442143b9874ba677fc83bf8c60744ec642998/snap1' 02:07:54 DEBUG| [stdout] At subvol /tmp/mnt-9dc442143b9874ba677fc83bf8c60744ec642998/snap1 02:07:54 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-9dc442143b9874ba677fc83bf8c60744ec642998' in '/tmp/mnt-9dc442143b9874ba677fc83bf8c60744ec642998/snap2' 02:07:54 DEBUG| [stdout] At subvol /tmp/mnt-9dc442143b9874ba677fc83bf8c60744ec642998/snap2 02:07:54 DEBUG| [stdout] btrfs-progs v4.4 02:07:54 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 02:07:54 DEBUG| [stdout] 02:07:54 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 02:07:54 DEBUG| [stdout] Label: (null) 02:07:54 DEBUG| [stdout] UUID: 633dee72-bc04-4f9a-b06e-dac7e835c0c9 02:07:54 DEBUG| [stdout] Node size: 16384 02:07:54 DEBUG| [stdout] Sector size: 4096 02:07:54 DEBUG| [stdout] Filesystem size: 1.00GiB 02:07:54 DEBUG| [stdout] Block group profiles: 02:07:54 DEBUG| [stdout] Data: single 8.00MiB 02:07:54 DEBUG| [stdout] Metadata: DUP 59.19MiB 02:07:54 DEBUG| [stdout] System: DUP 12.00MiB 02:07:54 DEBUG| [stdout] SSD detected: no 02:07:54 DEBUG| [stdout] Incompat features: extref, skinny-metadata 02:07:54 DEBUG| [stdout] Number of devices: 1 02:07:54 DEBUG| [stdout] Devices: 02:07:54 DEBUG| [stdout] ID SIZE PATH 02:07:54 DEBUG| [stdout] 1 1.00GiB /dev/loop0 02:07:54 DEBUG| [stdout] 02:07:54 DEBUG| [stdout] At subvol snap1 02:07:54 DEBUG| [stdout] At snapshot snap2 02:08:04 DEBUG| [stdout] 02:08:04 DEBUG| [stdout] PASS: 9dc442143b9874ba677fc83bf8c60744ec642998 02:08:04 DEBUG| [stdout] 02:08:05 INFO | GOOD ubuntu_btrfs_kernel_fixes.9dc442143b9874ba677fc83bf8c60744ec642998 ubuntu_btrfs_kernel_fixes.9dc442143b9874ba677fc83bf8c60744ec642998 timestamp=1554862085 localtime=Apr 10 02:08:05 completed successfully 02:08:05 INFO | END GOOD ubuntu_btrfs_kernel_fixes.9dc442143b9874ba677fc83bf8c60744ec642998 ubuntu_btrfs_kernel_fixes.9dc442143b9874ba677fc83bf8c60744ec642998 timestamp=1554862085 localtime=Apr 10 02:08:05 02:08:05 DEBUG| Persistent state client._record_indent now set to 1 02:08:05 DEBUG| Persistent state client.unexpected_reboot deleted 02:08:05 INFO | Invoking test: 9dced186f934648bb7796ad3301cfc2563e2ad6e.sh 02:08:06 DEBUG| Test has timeout: 7200 sec. 02:08:06 INFO | START ubuntu_btrfs_kernel_fixes.9dced186f934648bb7796ad3301cfc2563e2ad6e ubuntu_btrfs_kernel_fixes.9dced186f934648bb7796ad3301cfc2563e2ad6e timestamp=1554862086 timeout=7200 localtime=Apr 10 02:08:06 02:08:06 DEBUG| Persistent state client._record_indent now set to 2 02:08:06 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.9dced186f934648bb7796ad3301cfc2563e2ad6e', 'ubuntu_btrfs_kernel_fixes.9dced186f934648bb7796ad3301cfc2563e2ad6e') 02:08:06 DEBUG| Waiting for pid 17718 for 7200 seconds 02:08:06 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/9dced186f934648bb7796ad3301cfc2563e2ad6e.sh 2>&1' 02:08:06 DEBUG| [stdout] Invoking test 9dced186f934648bb7796ad3301cfc2563e2ad6e 02:08:06 DEBUG| [stdout] 02:08:06 DEBUG| [stdout] fix 9dced186f934648bb7796ad3301cfc2563e2ad6e 02:08:06 DEBUG| [stdout] 02:08:06 DEBUG| [stdout] Btrfs: fix the free space write out failure when there is no data space 02:08:06 DEBUG| [stdout] 02:08:06 DEBUG| [stdout] After running space balance on a new fs, the fs check program outputed the 02:08:06 DEBUG| [stdout] following warning message: 02:08:06 DEBUG| [stdout] free space inode generation (0) did not match free space cache generation (20) 02:08:06 DEBUG| [stdout] 02:08:06 DEBUG| [stdout] Steps to reproduce: 02:08:06 DEBUG| [stdout] # mkfs.btrfs -f 02:08:06 DEBUG| [stdout] # mount 02:08:06 DEBUG| [stdout] # btrfs balance start 02:08:06 DEBUG| [stdout] # umount 02:08:06 DEBUG| [stdout] # btrfs check 02:08:06 DEBUG| [stdout] 02:08:06 DEBUG| [stdout] [...] 02:08:06 DEBUG| [stdout] 02:08:07 DEBUG| [stdout] Done, had to relocate 3 out of 3 chunks 02:08:07 DEBUG| [stdout] checking extents 02:08:07 DEBUG| [stdout] checking free space cache 02:08:07 DEBUG| [stdout] checking fs roots 02:08:07 DEBUG| [stdout] checking csums 02:08:07 DEBUG| [stdout] checking root refs 02:08:17 DEBUG| [stdout] 02:08:17 DEBUG| [stdout] PASS: 9dced186f934648bb7796ad3301cfc2563e2ad6e 02:08:17 DEBUG| [stdout] 02:08:18 INFO | GOOD ubuntu_btrfs_kernel_fixes.9dced186f934648bb7796ad3301cfc2563e2ad6e ubuntu_btrfs_kernel_fixes.9dced186f934648bb7796ad3301cfc2563e2ad6e timestamp=1554862098 localtime=Apr 10 02:08:18 completed successfully 02:08:18 INFO | END GOOD ubuntu_btrfs_kernel_fixes.9dced186f934648bb7796ad3301cfc2563e2ad6e ubuntu_btrfs_kernel_fixes.9dced186f934648bb7796ad3301cfc2563e2ad6e timestamp=1554862098 localtime=Apr 10 02:08:18 02:08:18 DEBUG| Persistent state client._record_indent now set to 1 02:08:18 DEBUG| Persistent state client.unexpected_reboot deleted 02:08:18 INFO | Invoking test: 9e622d6bea0202e9fe267955362c01918562c09b.sh 02:08:18 DEBUG| Test has timeout: 7200 sec. 02:08:18 INFO | START ubuntu_btrfs_kernel_fixes.9e622d6bea0202e9fe267955362c01918562c09b ubuntu_btrfs_kernel_fixes.9e622d6bea0202e9fe267955362c01918562c09b timestamp=1554862098 timeout=7200 localtime=Apr 10 02:08:18 02:08:18 DEBUG| Persistent state client._record_indent now set to 2 02:08:18 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.9e622d6bea0202e9fe267955362c01918562c09b', 'ubuntu_btrfs_kernel_fixes.9e622d6bea0202e9fe267955362c01918562c09b') 02:08:18 DEBUG| Waiting for pid 17805 for 7200 seconds 02:08:18 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/9e622d6bea0202e9fe267955362c01918562c09b.sh 2>&1' 02:08:18 DEBUG| [stdout] Invoking test 9e622d6bea0202e9fe267955362c01918562c09b 02:08:18 DEBUG| [stdout] 02:08:18 DEBUG| [stdout] fix 9e622d6bea0202e9fe267955362c01918562c09b 02:08:18 DEBUG| [stdout] 02:08:18 DEBUG| [stdout] Btrfs: fix enospc error caused by wrong checks of the chunk 02:08:18 DEBUG| [stdout] 02:08:18 DEBUG| [stdout] When we did sysbench test for inline files, enospc error happened easily though 02:08:18 DEBUG| [stdout] there was lots of free disk space which could be allocated for new chunks. 02:08:18 DEBUG| [stdout] 02:08:18 DEBUG| [stdout] total 8 02:08:18 DEBUG| [stdout] drwxr-xr-x 2 root root 4096 Apr 10 02:08 . 02:08:18 DEBUG| [stdout] drwxrwxrwt 8 root root 4096 Apr 10 02:08 .. 02:08:18 DEBUG| [stdout] /tmp/mnt-9e622d6bea0202e9fe267955362c01918562c09b 02:08:18 DEBUG| [stdout] sysbench 0.4.12: multi-threaded system evaluation benchmark 02:08:18 DEBUG| [stdout] 02:08:18 DEBUG| [stdout] 81920 files, 1Kb each, 80Mb total 02:08:18 DEBUG| [stdout] Creating files for the test... 03:09:03 DEBUG| [stdout] /home/ubuntu/autotest/client/results/default/ubuntu_btrfs_kernel_fixes.9e622d6bea0202e9fe267955362c01918562c09b 03:09:14 DEBUG| [stdout] 03:09:14 DEBUG| [stdout] PASS: 9e622d6bea0202e9fe267955362c01918562c09b 03:09:14 DEBUG| [stdout] 03:09:15 INFO | GOOD ubuntu_btrfs_kernel_fixes.9e622d6bea0202e9fe267955362c01918562c09b ubuntu_btrfs_kernel_fixes.9e622d6bea0202e9fe267955362c01918562c09b timestamp=1554865755 localtime=Apr 10 03:09:15 completed successfully 03:09:15 INFO | END GOOD ubuntu_btrfs_kernel_fixes.9e622d6bea0202e9fe267955362c01918562c09b ubuntu_btrfs_kernel_fixes.9e622d6bea0202e9fe267955362c01918562c09b timestamp=1554865755 localtime=Apr 10 03:09:15 03:09:15 DEBUG| Persistent state client._record_indent now set to 1 03:09:15 DEBUG| Persistent state client.unexpected_reboot deleted 03:09:15 INFO | Invoking test: 9f03740a956d7ac6a1b8f8c455da6fa5cae11c22.sh 03:09:15 DEBUG| Test has timeout: 7200 sec. 03:09:15 INFO | START ubuntu_btrfs_kernel_fixes.9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 ubuntu_btrfs_kernel_fixes.9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 timestamp=1554865755 timeout=7200 localtime=Apr 10 03:09:15 03:09:15 DEBUG| Persistent state client._record_indent now set to 2 03:09:15 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.9f03740a956d7ac6a1b8f8c455da6fa5cae11c22', 'ubuntu_btrfs_kernel_fixes.9f03740a956d7ac6a1b8f8c455da6fa5cae11c22') 03:09:15 DEBUG| Waiting for pid 17910 for 7200 seconds 03:09:15 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/9f03740a956d7ac6a1b8f8c455da6fa5cae11c22.sh 2>&1' 03:09:15 DEBUG| [stdout] Invoking test 9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 03:09:15 DEBUG| [stdout] 03:09:15 DEBUG| [stdout] fix 9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 03:09:15 DEBUG| [stdout] 03:09:15 DEBUG| [stdout] Btrfs: fix infinite path build loops in incremental send 03:09:15 DEBUG| [stdout] 03:09:15 DEBUG| [stdout] The send operation processes inodes by their ascending number, and assumes 03:09:15 DEBUG| [stdout] that any rename/move operation can be successfully performed (sent to the 03:09:15 DEBUG| [stdout] caller) once all previous inodes (those with a smaller inode number than the 03:09:15 DEBUG| [stdout] one we're currently processing) were processed. 03:09:15 DEBUG| [stdout] 03:09:15 DEBUG| [stdout] [ .... ] 03:09:15 DEBUG| [stdout] 03:09:15 DEBUG| [stdout] Even without this loop, the incremental send couldn't succeed, because it would attempt 03:09:15 DEBUG| [stdout] to send a rename/move operation for the lower inode before the highest inode number was 03:09:15 DEBUG| [stdout] renamed/move. This issue is easy to trigger with the following steps: 03:09:15 DEBUG| [stdout] 03:09:15 DEBUG| [stdout] $ mkfs.btrfs -f /dev/sdb3 03:09:15 DEBUG| [stdout] $ mount /dev/sdb3 /mnt/btrfs 03:09:15 DEBUG| [stdout] $ mkdir -p /mnt/btrfs/a/b/c/d 03:09:15 DEBUG| [stdout] $ mkdir /mnt/btrfs/a/b/c2 03:09:15 DEBUG| [stdout] $ btrfs subvol snapshot -r /mnt/btrfs /mnt/btrfs/snap1 03:09:15 DEBUG| [stdout] $ mv /mnt/btrfs/a/b/c/d /mnt/btrfs/a/b/c2/d2 03:09:15 DEBUG| [stdout] $ mv /mnt/btrfs/a/b/c /mnt/btrfs/a/b/c2/d2/cc 03:09:15 DEBUG| [stdout] $ btrfs subvol snapshot -r /mnt/btrfs /mnt/btrfs/snap2 03:09:15 DEBUG| [stdout] $ btrfs send -p /mnt/btrfs/snap1 /mnt/btrfs/snap2 > /tmp/incremental.send 03:09:15 DEBUG| [stdout] 03:09:15 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-9f03740a956d7ac6a1b8f8c455da6fa5cae11c22/btrfs' in '/tmp/mnt-9f03740a956d7ac6a1b8f8c455da6fa5cae11c22/btrfs/snap1' 03:09:15 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-9f03740a956d7ac6a1b8f8c455da6fa5cae11c22/btrfs' in '/tmp/mnt-9f03740a956d7ac6a1b8f8c455da6fa5cae11c22/btrfs/snap2' 03:09:15 DEBUG| [stdout] At subvol /tmp/mnt-9f03740a956d7ac6a1b8f8c455da6fa5cae11c22/btrfs/snap2 03:09:25 DEBUG| [stdout] 03:09:25 DEBUG| [stdout] PASS: 9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 03:09:25 DEBUG| [stdout] 03:09:27 INFO | GOOD ubuntu_btrfs_kernel_fixes.9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 ubuntu_btrfs_kernel_fixes.9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 timestamp=1554865767 localtime=Apr 10 03:09:27 completed successfully 03:09:27 INFO | END GOOD ubuntu_btrfs_kernel_fixes.9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 ubuntu_btrfs_kernel_fixes.9f03740a956d7ac6a1b8f8c455da6fa5cae11c22 timestamp=1554865767 localtime=Apr 10 03:09:27 03:09:27 DEBUG| Persistent state client._record_indent now set to 1 03:09:27 DEBUG| Persistent state client.unexpected_reboot deleted 03:09:27 INFO | Invoking test: a39f75214358d715efa21e2bccf5a709d8649144.sh 03:09:27 DEBUG| Test has timeout: 7200 sec. 03:09:27 INFO | START ubuntu_btrfs_kernel_fixes.a39f75214358d715efa21e2bccf5a709d8649144 ubuntu_btrfs_kernel_fixes.a39f75214358d715efa21e2bccf5a709d8649144 timestamp=1554865767 timeout=7200 localtime=Apr 10 03:09:27 03:09:27 DEBUG| Persistent state client._record_indent now set to 2 03:09:27 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.a39f75214358d715efa21e2bccf5a709d8649144', 'ubuntu_btrfs_kernel_fixes.a39f75214358d715efa21e2bccf5a709d8649144') 03:09:27 DEBUG| Waiting for pid 18002 for 7200 seconds 03:09:27 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/a39f75214358d715efa21e2bccf5a709d8649144.sh 2>&1' 03:09:27 DEBUG| [stdout] Invoking test a39f75214358d715efa21e2bccf5a709d8649144 03:09:27 DEBUG| [stdout] 03:09:27 DEBUG| [stdout] fix a39f75214358d715efa21e2bccf5a709d8649144 03:09:27 DEBUG| [stdout] 03:09:27 DEBUG| [stdout] Btrfs: fix wrong nbytes information of the inode 03:09:27 DEBUG| [stdout] 03:09:27 DEBUG| [stdout] If we write some data into the data hole of the file(no preallocation for this 03:09:27 DEBUG| [stdout] hole), Btrfs will allocate some disk space, and update nbytes of the inode, but 03:09:27 DEBUG| [stdout] the other element--disk_i_size needn't be updated. At this condition, we must 03:09:27 DEBUG| [stdout] update inode metadata though disk_i_size is not changed(btrfs_ordered_update_i_size() 03:09:27 DEBUG| [stdout] return 1). 03:09:27 DEBUG| [stdout] 03:09:27 DEBUG| [stdout] # mkfs.btrfs /dev/sdb1 03:09:27 DEBUG| [stdout] # mount /dev/sdb1 /mnt 03:09:27 DEBUG| [stdout] # touch /mnt/a 03:09:27 DEBUG| [stdout] # truncate -s 856002 /mnt/a 03:09:27 DEBUG| [stdout] # dd if=/dev/zero of=/mnt/a bs=4K count=1 conv=nocreat,notrunc 03:09:27 DEBUG| [stdout] # umount /mnt 03:09:27 DEBUG| [stdout] # btrfsck /dev/sdb1 03:09:27 DEBUG| [stdout] root 5 inode 257 errors 400 03:09:27 DEBUG| [stdout] found 32768 bytes used err is 1 03:09:27 DEBUG| [stdout] 03:09:28 DEBUG| [stdout] checking extents 03:09:28 DEBUG| [stdout] checking free space cache 03:09:28 DEBUG| [stdout] checking fs roots 03:09:28 DEBUG| [stdout] checking csums 03:09:28 DEBUG| [stdout] checking root refs 03:09:38 DEBUG| [stdout] 03:09:38 DEBUG| [stdout] PASS: a39f75214358d715efa21e2bccf5a709d8649144 03:09:38 DEBUG| [stdout] 03:09:39 INFO | GOOD ubuntu_btrfs_kernel_fixes.a39f75214358d715efa21e2bccf5a709d8649144 ubuntu_btrfs_kernel_fixes.a39f75214358d715efa21e2bccf5a709d8649144 timestamp=1554865779 localtime=Apr 10 03:09:39 completed successfully 03:09:39 INFO | END GOOD ubuntu_btrfs_kernel_fixes.a39f75214358d715efa21e2bccf5a709d8649144 ubuntu_btrfs_kernel_fixes.a39f75214358d715efa21e2bccf5a709d8649144 timestamp=1554865779 localtime=Apr 10 03:09:39 03:09:39 DEBUG| Persistent state client._record_indent now set to 1 03:09:39 DEBUG| Persistent state client.unexpected_reboot deleted 03:09:39 INFO | Invoking test: a7e252af5a819eb71c9494e62b2bfca982e92f84.sh 03:09:39 DEBUG| Test has timeout: 7200 sec. 03:09:39 INFO | START ubuntu_btrfs_kernel_fixes.a7e252af5a819eb71c9494e62b2bfca982e92f84 ubuntu_btrfs_kernel_fixes.a7e252af5a819eb71c9494e62b2bfca982e92f84 timestamp=1554865779 timeout=7200 localtime=Apr 10 03:09:39 03:09:39 DEBUG| Persistent state client._record_indent now set to 2 03:09:39 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.a7e252af5a819eb71c9494e62b2bfca982e92f84', 'ubuntu_btrfs_kernel_fixes.a7e252af5a819eb71c9494e62b2bfca982e92f84') 03:09:39 DEBUG| Waiting for pid 18090 for 7200 seconds 03:09:39 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/a7e252af5a819eb71c9494e62b2bfca982e92f84.sh 2>&1' 03:09:39 DEBUG| [stdout] Invoking test a7e252af5a819eb71c9494e62b2bfca982e92f84 03:09:39 DEBUG| [stdout] 03:09:39 DEBUG| [stdout] fix a7e252af5a819eb71c9494e62b2bfca982e92f84 03:09:39 DEBUG| [stdout] 03:09:39 DEBUG| [stdout] Btrfs: don't clear the default compression type 03:09:39 DEBUG| [stdout] 03:09:39 DEBUG| [stdout] [...] 03:09:39 DEBUG| [stdout] 03:09:39 DEBUG| [stdout] Steps to reproduce: 03:09:39 DEBUG| [stdout] # mkfs.btrfs -f 03:09:39 DEBUG| [stdout] # mount -o nodatacow 03:09:39 DEBUG| [stdout] # touch / 03:09:39 DEBUG| [stdout] # chattr =c / 03:09:39 DEBUG| [stdout] # dd if=/dev/zero of=/ bs=1M count=10 03:09:39 DEBUG| [stdout] 03:09:39 DEBUG| [stdout] It is because we cleared the default compression type when setting the 03:09:39 DEBUG| [stdout] nodatacow. In fact, we needn't do it because we have used COMPRESS flag to 03:09:39 DEBUG| [stdout] indicate if we need compressed the file data or not, needn't use the 03:09:39 DEBUG| [stdout] variant -- compress_type -- in btrfs_info to do the same thing, and just 03:09:39 DEBUG| [stdout] use it to hold the default compression type. Or we would get a wrong compress 03:09:39 DEBUG| [stdout] type for a file whose own compress flag is set but the compress flag of its 03:09:39 DEBUG| [stdout] filesystem is not set. 03:09:39 DEBUG| [stdout] 03:09:50 DEBUG| [stdout] 03:09:50 DEBUG| [stdout] PASS: a7e252af5a819eb71c9494e62b2bfca982e92f84 03:09:50 DEBUG| [stdout] 03:09:51 INFO | GOOD ubuntu_btrfs_kernel_fixes.a7e252af5a819eb71c9494e62b2bfca982e92f84 ubuntu_btrfs_kernel_fixes.a7e252af5a819eb71c9494e62b2bfca982e92f84 timestamp=1554865791 localtime=Apr 10 03:09:51 completed successfully 03:09:51 INFO | END GOOD ubuntu_btrfs_kernel_fixes.a7e252af5a819eb71c9494e62b2bfca982e92f84 ubuntu_btrfs_kernel_fixes.a7e252af5a819eb71c9494e62b2bfca982e92f84 timestamp=1554865791 localtime=Apr 10 03:09:51 03:09:51 DEBUG| Persistent state client._record_indent now set to 1 03:09:51 DEBUG| Persistent state client.unexpected_reboot deleted 03:09:51 INFO | Invoking test: aa9ddcd4b5557102fa25695c11904f249b4dec49.sh 03:09:51 DEBUG| Test has timeout: 7200 sec. 03:09:51 INFO | START ubuntu_btrfs_kernel_fixes.aa9ddcd4b5557102fa25695c11904f249b4dec49 ubuntu_btrfs_kernel_fixes.aa9ddcd4b5557102fa25695c11904f249b4dec49 timestamp=1554865791 timeout=7200 localtime=Apr 10 03:09:51 03:09:52 DEBUG| Persistent state client._record_indent now set to 2 03:09:52 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.aa9ddcd4b5557102fa25695c11904f249b4dec49', 'ubuntu_btrfs_kernel_fixes.aa9ddcd4b5557102fa25695c11904f249b4dec49') 03:09:52 DEBUG| Waiting for pid 18180 for 7200 seconds 03:09:52 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/aa9ddcd4b5557102fa25695c11904f249b4dec49.sh 2>&1' 03:09:52 DEBUG| [stdout] Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49 03:09:52 DEBUG| [stdout] 03:09:52 DEBUG| [stdout] fix aa9ddcd4b5557102fa25695c11904f249b4dec49 03:09:52 DEBUG| [stdout] 03:09:52 DEBUG| [stdout] Btrfs: do not use missing devices when showing devname 03:09:52 DEBUG| [stdout] 03:09:52 DEBUG| [stdout] If you do the following 03:09:52 DEBUG| [stdout] 03:09:52 DEBUG| [stdout] mkfs.btrfs /dev/sdb /dev/sdc 03:09:52 DEBUG| [stdout] rmmod btrfs 03:09:52 DEBUG| [stdout] dd if=/dev/zero of=/dev/sdb bs=1M count=1 03:09:52 DEBUG| [stdout] mount -o degraded /dev/sdc /mnt/btrfs-test 03:09:52 DEBUG| [stdout] 03:09:52 DEBUG| [stdout] the box will panic trying to deref the name for the missing dev since it is 03:09:52 DEBUG| [stdout] the lower numbered devid. So fix show_devname to not use missing devices. 03:09:52 DEBUG| [stdout] 03:10:03 DEBUG| [stdout] 03:10:03 DEBUG| [stdout] Found kernel issue: 03:10:03 DEBUG| [stdout] 03:10:03 DEBUG| [stdout] [ 9771.755313] Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49 03:10:03 DEBUG| [stdout] [ 9771.918664] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 1 transid 3 /dev/loop0 03:10:03 DEBUG| [stdout] [ 9771.922639] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 2 transid 3 /dev/loop1 03:10:03 DEBUG| [stdout] [ 9772.104893] ============================================================================= 03:10:03 DEBUG| [stdout] [ 9772.202901] BUG btrfs_extent_map (Not tainted): Objects remaining in btrfs_extent_map on kmem_cache_close() 03:10:03 DEBUG| [stdout] [ 9772.319559] ----------------------------------------------------------------------------- 03:10:03 DEBUG| [stdout] 03:10:03 DEBUG| [stdout] [ 9772.435108] Disabling lock debugging due to kernel taint 03:10:03 DEBUG| [stdout] [ 9772.435110] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c29d8 flags=0x2800080 03:10:03 DEBUG| [stdout] [ 9772.524662] CPU: 0 PID: 18215 Comm: rmmod Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:10:03 DEBUG| [stdout] [ 9772.524663] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:10:03 DEBUG| [stdout] [ 9772.524665] c1b13967 dee4a90b 00000286 dfbb3ddc c13c0a9f f7369650 dfbb3dfc dfbb3e70 03:10:03 DEBUG| [stdout] [ 9772.524668] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c29d8 02800080 656a624f 03:10:03 DEBUG| [stdout] [ 9772.524674] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 03:10:03 DEBUG| [stdout] [ 9772.524678] Call Trace: 03:10:03 DEBUG| [stdout] [ 9772.524684] [] dump_stack+0x58/0x79 03:10:03 DEBUG| [stdout] [ 9772.524687] [] slab_err+0x82/0xa0 03:10:03 DEBUG| [stdout] [ 9772.524690] [] ? __kmalloc+0x22d/0x240 03:10:03 DEBUG| [stdout] [ 9772.524692] [] ? __free_slab+0xa0/0x130 03:10:03 DEBUG| [stdout] [ 9772.524694] [] ? free_partial+0xa9/0x1b0 03:10:03 DEBUG| [stdout] [ 9772.524695] [] ? free_partial+0xa9/0x1b0 03:10:03 DEBUG| [stdout] [ 9772.524697] [] free_partial+0xce/0x1b0 03:10:03 DEBUG| [stdout] [ 9772.524699] [] ? __flush_cpu_slab+0x40/0x40 03:10:03 DEBUG| [stdout] [ 9772.524702] [] __kmem_cache_shutdown+0x42/0x80 03:10:03 DEBUG| [stdout] [ 9772.524705] [] kmem_cache_destroy+0x162/0x1e0 03:10:03 DEBUG| [stdout] [ 9772.524726] [] extent_map_exit+0x16/0x20 [btrfs] 03:10:03 DEBUG| [stdout] [ 9772.524746] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:10:03 DEBUG| [stdout] [ 9772.524755] [] SyS_delete_module+0x1af/0x200 03:10:03 DEBUG| [stdout] [ 9772.524760] [] ? ____fput+0xd/0x10 03:10:03 DEBUG| [stdout] [ 9772.524767] [] ? task_work_run+0x8f/0xa0 03:10:03 DEBUG| [stdout] [ 9772.524773] [] ? exit_to_usermode_loop+0xb6/0xe0 03:10:03 DEBUG| [stdout] [ 9772.524775] [] do_fast_syscall_32+0x9f/0x160 03:10:03 DEBUG| [stdout] [ 9772.524779] [] sysenter_past_esp+0x3d/0x61 03:10:03 DEBUG| [stdout] [ 9772.524783] INFO: Object 0xe91c20f0 @offset=240 03:10:03 DEBUG| [stdout] [ 9772.579057] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects 03:10:03 DEBUG| [stdout] [ 9772.664531] CPU: 0 PID: 18215 Comm: rmmod Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:10:03 DEBUG| [stdout] [ 9772.664533] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:10:03 DEBUG| [stdout] [ 9772.664534] c1b13967 dee4a90b 00000286 dfbb3ed4 c13c0a9f f57d3240 f57d32b4 dfbb3f0c 03:10:03 DEBUG| [stdout] [ 9772.664539] c119e9a0 c1a1b0a4 ecc53780 dfbb3f04 000d992b dfbb3eec dfbb3eec dfbb3ef4 03:10:03 DEBUG| [stdout] [ 9772.664543] dfbb3ef4 dee4a90b 02171d44 f8cfa880 dfbb2000 dfbb3f14 f8c72f86 dfbb3f1c 03:10:03 DEBUG| [stdout] [ 9772.664546] Call Trace: 03:10:03 DEBUG| [stdout] [ 9772.664549] [] dump_stack+0x58/0x79 03:10:03 DEBUG| [stdout] [ 9772.664551] [] kmem_cache_destroy+0x1b0/0x1e0 03:10:03 DEBUG| [stdout] [ 9772.664566] [] extent_map_exit+0x16/0x20 [btrfs] 03:10:03 DEBUG| [stdout] [ 9772.664582] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:10:03 DEBUG| [stdout] [ 9772.664585] [] SyS_delete_module+0x1af/0x200 03:10:03 DEBUG| [stdout] [ 9772.664588] [] ? ____fput+0xd/0x10 03:10:03 DEBUG| [stdout] [ 9772.664590] [] ? task_work_run+0x8f/0xa0 03:10:03 DEBUG| [stdout] [ 9772.664592] [] ? exit_to_usermode_loop+0xb6/0xe0 03:10:03 DEBUG| [stdout] [ 9772.664593] [] do_fast_syscall_32+0x9f/0x160 03:10:03 DEBUG| [stdout] [ 9772.664595] [] sysenter_past_esp+0x3d/0x61 03:10:03 DEBUG| [stdout] [ 9772.802610] Btrfs loaded 03:10:03 DEBUG| [stdout] [ 9772.812820] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 2 transid 5 /dev/loop1 03:10:03 DEBUG| [stdout] [ 9772.837121] BTRFS info (device loop1): allowing degraded mounts 03:10:03 DEBUG| [stdout] [ 9772.837127] BTRFS info (device loop1): disk space caching is enabled 03:10:03 DEBUG| [stdout] [ 9772.837128] BTRFS: has skinny extents 03:10:03 DEBUG| [stdout] [ 9772.837129] BTRFS: flagging fs with big metadata feature 03:10:03 DEBUG| [stdout] [ 9772.838474] BTRFS warning (device loop1): devid 1 uuid a0aa7582-0cf7-4cad-b78a-869f0f244998 is missing 03:10:03 DEBUG| [stdout] [ 9772.838831] BTRFS: creating UUID tree 03:10:03 DEBUG| [stdout] [ 9773.051977] Test aa9ddcd4b5557102fa25695c11904f249b4dec49 returned 0 03:10:03 DEBUG| [stdout] 03:10:03 DEBUG| [stdout] FAIL: aa9ddcd4b5557102fa25695c11904f249b4dec49 (ret=1) 03:10:03 DEBUG| [stdout] 03:10:03 ERROR| Exception escaping from test: Traceback (most recent call last): File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec _call_test_function(self.execute, *p_args, **p_dargs) File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function return func(*args, **dargs) File "/home/ubuntu/autotest/client/shared/test.py", line 291, in execute postprocess_profiled_run, args, dargs) File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once self.run_once(*args, **dargs) File "/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.py", line 73, in run_once self.results = utils.system_output(cmd, retain_output=True) File "/home/ubuntu/autotest/client/shared/utils.py", line 1267, in system_output verbose=verbose, args=args).stdout File "/home/ubuntu/autotest/client/shared/utils.py", line 918, in run "Command returned non-zero exit status") CmdError: Command &1> failed, rc=1, Command returned non-zero exit status * Command: BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home /ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kerne l_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fi xes/aa9ddcd4b5557102fa25695c11904f249b4dec49.sh 2>&1 Exit status: 1 Duration: 11.3235070705 stdout: Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49 fix aa9ddcd4b5557102fa25695c11904f249b4dec49 Btrfs: do not use missing devices when showing devname If you do the following mkfs.btrfs /dev/sdb /dev/sdc rmmod btrfs dd if=/dev/zero of=/dev/sdb bs=1M count=1 mount -o degraded /dev/sdc /mnt/btrfs-test the box will panic trying to deref the name for the missing dev since it is the lower numbered devid. So fix show_devname to not use missing devices. Found kernel issue: [ 9771.755313] Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49 [ 9771.918664] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 1 transid 3 /dev/loop0 [ 9771.922639] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 2 transid 3 /dev/loop1 [ 9772.104893] ============================================================================= [ 9772.202901] BUG btrfs_extent_map (Not tainted): Objects remaining in btrfs_extent_map on kmem_cache_close() [ 9772.319559] ----------------------------------------------------------------------------- [ 9772.435108] Disabling lock debugging due to kernel taint [ 9772.435110] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c29d8 flags=0x2800080 [ 9772.524662] CPU: 0 PID: 18215 Comm: rmmod Tainted: G B 4.4.0-146-generic #172-Ubuntu [ 9772.524663] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [ 9772.524665] c1b13967 dee4a90b 00000286 dfbb3ddc c13c0a9f f7369650 dfbb3dfc dfbb3e70 [ 9772.524668] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c29d8 02800080 656a624f [ 9772.524674] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 [ 9772.524678] Call Trace: [ 9772.524684] [] dump_stack+0x58/0x79 [ 9772.524687] [] slab_err+0x82/0xa0 [ 9772.524690] [] ? __kmalloc+0x22d/0x240 [ 9772.524692] [] ? __free_slab+0xa0/0x130 [ 9772.524694] [] ? free_partial+0xa9/0x1b0 [ 9772.524695] [] ? free_partial+0xa9/0x1b0 [ 9772.524697] [] free_partial+0xce/0x1b0 [ 9772.524699] [] ? __flush_cpu_slab+0x40/0x40 [ 9772.524702] [] __kmem_cache_shutdown+0x42/0x80 [ 9772.524705] [] kmem_cache_destroy+0x162/0x1e0 [ 9772.524726] [] extent_map_exit+0x16/0x20 [btrfs] [ 9772.524746] [] exit_btrfs_fs+0x26/0x9c [btrfs] [ 9772.524755] [] SyS_delete_module+0x1af/0x200 [ 9772.524760] [] ? ____fput+0xd/0x10 [ 9772.524767] [] ? task_work_run+0x8f/0xa0 [ 9772.524773] [] ? exit_to_usermode_loop+0xb6/0xe0 [ 9772.524775] [] do_fast_syscall_32+0x9f/0x160 [ 9772.524779] [] sysenter_past_esp+0x3d/0x61 [ 9772.524783] INFO: Object 0xe91c20f0 @offset=240 [ 9772.579057] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects [ 9772.664531] CPU: 0 PID: 18215 Comm: rmmod Tainted: G B 4.4.0-146-generic #172-Ubuntu [ 9772.664533] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [ 9772.664534] c1b13967 dee4a90b 00000286 dfbb3ed4 c13c0a9f f57d3240 f57d32b4 dfbb3f0c [ 9772.664539] c119e9a0 c1a1b0a4 ecc53780 dfbb3f04 000d992b dfbb3eec dfbb3eec dfbb3ef4 [ 9772.664543] dfbb3ef4 dee4a90b 02171d44 f8cfa880 dfbb2000 dfbb3f14 f8c72f86 dfbb3f1c [ 9772.664546] Call Trace: [ 9772.664549] [] dump_stack+0x58/0x79 [ 9772.664551] [] kmem_cache_destroy+0x1b0/0x1e0 [ 9772.664566] [] extent_map_exit+0x16/0x20 [btrfs] [ 9772.664582] [] exit_btrfs_fs+0x26/0x9c [btrfs] [ 9772.664585] [] SyS_delete_module+0x1af/0x200 [ 9772.664588] [] ? ____fput+0xd/0x10 [ 9772.664590] [] ? task_work_run+0x8f/0xa0 [ 9772.664592] [] ? exit_to_usermode_loop+0xb6/0xe0 [ 9772.664593] [] do_fast_syscall_32+0x9f/0x160 [ 9772.664595] [] sysenter_past_esp+0x3d/0x61 [ 9772.802610] Btrfs loaded [ 9772.812820] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 2 transid 5 /dev/loop1 [ 9772.837121] BTRFS info (device loop1): allowing degraded mounts [ 9772.837127] BTRFS info (device loop1): disk space caching is enabled [ 9772.837128] BTRFS: has skinny extents [ 9772.837129] BTRFS: flagging fs with big metadata feature [ 9772.838474] BTRFS warning (device loop1): devid 1 uuid a0aa7582-0cf7-4cad-b78a-869f0f244998 is missing [ 9772.838831] BTRFS: creating UUID tree [ 9773.051977] Test aa9ddcd4b5557102fa25695c11904f249b4dec49 returned 0 FAIL: aa9ddcd4b5557102fa25695c11904f249b4dec49 (ret=1) 03:10:03 ERROR| child process failed 03:10:03 DEBUG| Traceback (most recent call last): 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/parallel.py", line 25, in fork_start 03:10:03 DEBUG| l() 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/job.py", line 505, in 03:10:03 DEBUG| l = lambda: test.runtest(self, url, tag, args, dargs) 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/test.py", line 125, in runtest 03:10:03 DEBUG| job.sysinfo.log_after_each_iteration) 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 913, in runtest 03:10:03 DEBUG| mytest._exec(args, dargs) 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec 03:10:03 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs) 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function 03:10:03 DEBUG| return func(*args, **dargs) 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 291, in execute 03:10:03 DEBUG| postprocess_profiled_run, args, dargs) 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once 03:10:03 DEBUG| self.run_once(*args, **dargs) 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.py", line 73, in run_once 03:10:03 DEBUG| self.results = utils.system_output(cmd, retain_output=True) 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 1267, in system_output 03:10:03 DEBUG| verbose=verbose, args=args).stdout 03:10:03 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 918, in run 03:10:03 DEBUG| "Command returned non-zero exit status") 03:10:03 DEBUG| CmdError: Command &1> failed, rc=1, Command returned non-zero exit status 03:10:03 DEBUG| * Command: 03:10:03 DEBUG| BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home 03:10:03 DEBUG| /ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kerne 03:10:03 DEBUG| l_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fi 03:10:03 DEBUG| xes/aa9ddcd4b5557102fa25695c11904f249b4dec49.sh 2>&1 03:10:03 DEBUG| Exit status: 1 03:10:03 DEBUG| Duration: 11.3235070705 03:10:03 DEBUG| 03:10:03 DEBUG| stdout: 03:10:03 DEBUG| Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49 03:10:03 DEBUG| 03:10:03 DEBUG| fix aa9ddcd4b5557102fa25695c11904f249b4dec49 03:10:03 DEBUG| 03:10:03 DEBUG| Btrfs: do not use missing devices when showing devname 03:10:03 DEBUG| 03:10:03 DEBUG| If you do the following 03:10:03 DEBUG| 03:10:03 DEBUG| mkfs.btrfs /dev/sdb /dev/sdc 03:10:03 DEBUG| rmmod btrfs 03:10:03 DEBUG| dd if=/dev/zero of=/dev/sdb bs=1M count=1 03:10:03 DEBUG| mount -o degraded /dev/sdc /mnt/btrfs-test 03:10:03 DEBUG| 03:10:03 DEBUG| the box will panic trying to deref the name for the missing dev since it is 03:10:03 DEBUG| the lower numbered devid. So fix show_devname to not use missing devices. 03:10:03 DEBUG| 03:10:03 DEBUG| 03:10:03 DEBUG| Found kernel issue: 03:10:03 DEBUG| 03:10:03 DEBUG| [ 9771.755313] Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49 03:10:03 DEBUG| [ 9771.918664] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 1 transid 3 /dev/loop0 03:10:03 DEBUG| [ 9771.922639] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 2 transid 3 /dev/loop1 03:10:03 DEBUG| [ 9772.104893] ============================================================================= 03:10:03 DEBUG| [ 9772.202901] BUG btrfs_extent_map (Not tainted): Objects remaining in btrfs_extent_map on kmem_cache_close() 03:10:03 DEBUG| [ 9772.319559] ----------------------------------------------------------------------------- 03:10:03 DEBUG| 03:10:03 DEBUG| [ 9772.435108] Disabling lock debugging due to kernel taint 03:10:03 DEBUG| [ 9772.435110] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c29d8 flags=0x2800080 03:10:03 DEBUG| [ 9772.524662] CPU: 0 PID: 18215 Comm: rmmod Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:10:03 DEBUG| [ 9772.524663] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:10:03 DEBUG| [ 9772.524665] c1b13967 dee4a90b 00000286 dfbb3ddc c13c0a9f f7369650 dfbb3dfc dfbb3e70 03:10:03 DEBUG| [ 9772.524668] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c29d8 02800080 656a624f 03:10:03 DEBUG| [ 9772.524674] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 03:10:03 DEBUG| [ 9772.524678] Call Trace: 03:10:03 DEBUG| [ 9772.524684] [] dump_stack+0x58/0x79 03:10:03 DEBUG| [ 9772.524687] [] slab_err+0x82/0xa0 03:10:03 DEBUG| [ 9772.524690] [] ? __kmalloc+0x22d/0x240 03:10:03 DEBUG| [ 9772.524692] [] ? __free_slab+0xa0/0x130 03:10:03 DEBUG| [ 9772.524694] [] ? free_partial+0xa9/0x1b0 03:10:03 DEBUG| [ 9772.524695] [] ? free_partial+0xa9/0x1b0 03:10:03 DEBUG| [ 9772.524697] [] free_partial+0xce/0x1b0 03:10:03 DEBUG| [ 9772.524699] [] ? __flush_cpu_slab+0x40/0x40 03:10:03 DEBUG| [ 9772.524702] [] __kmem_cache_shutdown+0x42/0x80 03:10:03 DEBUG| [ 9772.524705] [] kmem_cache_destroy+0x162/0x1e0 03:10:03 DEBUG| [ 9772.524726] [] extent_map_exit+0x16/0x20 [btrfs] 03:10:03 DEBUG| [ 9772.524746] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:10:03 DEBUG| [ 9772.524755] [] SyS_delete_module+0x1af/0x200 03:10:03 DEBUG| [ 9772.524760] [] ? ____fput+0xd/0x10 03:10:03 DEBUG| [ 9772.524767] [] ? task_work_run+0x8f/0xa0 03:10:03 DEBUG| [ 9772.524773] [] ? exit_to_usermode_loop+0xb6/0xe0 03:10:03 DEBUG| [ 9772.524775] [] do_fast_syscall_32+0x9f/0x160 03:10:03 DEBUG| [ 9772.524779] [] sysenter_past_esp+0x3d/0x61 03:10:03 DEBUG| [ 9772.524783] INFO: Object 0xe91c20f0 @offset=240 03:10:03 DEBUG| [ 9772.579057] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects 03:10:03 DEBUG| [ 9772.664531] CPU: 0 PID: 18215 Comm: rmmod Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:10:03 DEBUG| [ 9772.664533] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:10:03 DEBUG| [ 9772.664534] c1b13967 dee4a90b 00000286 dfbb3ed4 c13c0a9f f57d3240 f57d32b4 dfbb3f0c 03:10:03 DEBUG| [ 9772.664539] c119e9a0 c1a1b0a4 ecc53780 dfbb3f04 000d992b dfbb3eec dfbb3eec dfbb3ef4 03:10:03 DEBUG| [ 9772.664543] dfbb3ef4 dee4a90b 02171d44 f8cfa880 dfbb2000 dfbb3f14 f8c72f86 dfbb3f1c 03:10:03 DEBUG| [ 9772.664546] Call Trace: 03:10:03 DEBUG| [ 9772.664549] [] dump_stack+0x58/0x79 03:10:03 DEBUG| [ 9772.664551] [] kmem_cache_destroy+0x1b0/0x1e0 03:10:03 DEBUG| [ 9772.664566] [] extent_map_exit+0x16/0x20 [btrfs] 03:10:03 DEBUG| [ 9772.664582] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:10:03 DEBUG| [ 9772.664585] [] SyS_delete_module+0x1af/0x200 03:10:03 DEBUG| [ 9772.664588] [] ? ____fput+0xd/0x10 03:10:03 DEBUG| [ 9772.664590] [] ? task_work_run+0x8f/0xa0 03:10:03 DEBUG| [ 9772.664592] [] ? exit_to_usermode_loop+0xb6/0xe0 03:10:03 DEBUG| [ 9772.664593] [] do_fast_syscall_32+0x9f/0x160 03:10:03 DEBUG| [ 9772.664595] [] sysenter_past_esp+0x3d/0x61 03:10:03 DEBUG| [ 9772.802610] Btrfs loaded 03:10:03 DEBUG| [ 9772.812820] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 2 transid 5 /dev/loop1 03:10:03 DEBUG| [ 9772.837121] BTRFS info (device loop1): allowing degraded mounts 03:10:03 DEBUG| [ 9772.837127] BTRFS info (device loop1): disk space caching is enabled 03:10:03 DEBUG| [ 9772.837128] BTRFS: has skinny extents 03:10:03 DEBUG| [ 9772.837129] BTRFS: flagging fs with big metadata feature 03:10:03 DEBUG| [ 9772.838474] BTRFS warning (device loop1): devid 1 uuid a0aa7582-0cf7-4cad-b78a-869f0f244998 is missing 03:10:03 DEBUG| [ 9772.838831] BTRFS: creating UUID tree 03:10:03 DEBUG| [ 9773.051977] Test aa9ddcd4b5557102fa25695c11904f249b4dec49 returned 0 03:10:03 DEBUG| 03:10:03 DEBUG| FAIL: aa9ddcd4b5557102fa25695c11904f249b4dec49 (ret=1) 03:10:04 INFO | ERROR ubuntu_btrfs_kernel_fixes.aa9ddcd4b5557102fa25695c11904f249b4dec49 ubuntu_btrfs_kernel_fixes.aa9ddcd4b5557102fa25695c11904f249b4dec49 timestamp=1554865804 localtime=Apr 10 03:10:04 Command &1> failed, rc=1, Command returned non-zero exit status * Command: BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home /ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kerne l_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fi xes/aa9ddcd4b5557102fa25695c11904f249b4dec49.sh 2>&1 Exit status: 1 Duration: 11.3235070705 stdout: Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49 fix aa9ddcd4b5557102fa25695c11904f249b4dec49 Btrfs: do not use missing devices when showing devname If you do the following mkfs.btrfs /dev/sdb /dev/sdc rmmod btrfs dd if=/dev/zero of=/dev/sdb bs=1M count=1 mount -o degraded /dev/sdc /mnt/btrfs-test the box will panic trying to deref the name for the missing dev since it is the lower numbered devid. So fix show_devname to not use missing devices. Found kernel issue: [ 9771.755313] Invoking test aa9ddcd4b5557102fa25695c11904f249b4dec49 [ 9771.918664] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 1 transid 3 /dev/loop0 [ 9771.922639] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 2 transid 3 /dev/loop1 [ 9772.104893] ============================================================================= [ 9772.202901] BUG btrfs_extent_map (Not tainted): Objects remaining in btrfs_extent_map on kmem_cache_close() [ 9772.319559] ----------------------------------------------------------------------------- [ 9772.435108] Disabling lock debugging due to kernel taint [ 9772.435110] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c29d8 flags=0x2800080 [ 9772.524662] CPU: 0 PID: 18215 Comm: rmmod Tainted: G B 4.4.0-146-generic #172-Ubuntu [ 9772.524663] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [ 9772.524665] c1b13967 dee4a90b 00000286 dfbb3ddc c13c0a9f f7369650 dfbb3dfc dfbb3e70 [ 9772.524668] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c29d8 02800080 656a624f [ 9772.524674] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 [ 9772.524678] Call Trace: [ 9772.524684] [] dump_stack+0x58/0x79 [ 9772.524687] [] slab_err+0x82/0xa0 [ 9772.524690] [] ? __kmalloc+0x22d/0x240 [ 9772.524692] [] ? __free_slab+0xa0/0x130 [ 9772.524694] [] ? free_partial+0xa9/0x1b0 [ 9772.524695] [] ? free_partial+0xa9/0x1b0 [ 9772.524697] [] free_partial+0xce/0x1b0 [ 9772.524699] [] ? __flush_cpu_slab+0x40/0x40 [ 9772.524702] [] __kmem_cache_shutdown+0x42/0x80 [ 9772.524705] [] kmem_cache_destroy+0x162/0x1e0 [ 9772.524726] [] extent_map_exit+0x16/0x20 [btrfs] [ 9772.524746] [] exit_btrfs_fs+0x26/0x9c [btrfs] [ 9772.524755] [] SyS_delete_module+0x1af/0x200 [ 9772.524760] [] ? ____fput+0xd/0x10 [ 9772.524767] [] ? task_work_run+0x8f/0xa0 [ 9772.524773] [] ? exit_to_usermode_loop+0xb6/0xe0 [ 9772.524775] [] do_fast_syscall_32+0x9f/0x160 [ 9772.524779] [] sysenter_past_esp+0x3d/0x61 [ 9772.524783] INFO: Object 0xe91c20f0 @offset=240 [ 9772.579057] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects [ 9772.664531] CPU: 0 PID: 18215 Comm: rmmod Tainted: G B 4.4.0-146-generic #172-Ubuntu [ 9772.664533] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [ 9772.664534] c1b13967 dee4a90b 00000286 dfbb3ed4 c13c0a9f f57d3240 f57d32b4 dfbb3f0c [ 9772.664539] c119e9a0 c1a1b0a4 ecc53780 dfbb3f04 000d992b dfbb3eec dfbb3eec dfbb3ef4 [ 9772.664543] dfbb3ef4 dee4a90b 02171d44 f8cfa880 dfbb2000 dfbb3f14 f8c72f86 dfbb3f1c [ 9772.664546] Call Trace: [ 9772.664549] [] dump_stack+0x58/0x79 [ 9772.664551] [] kmem_cache_destroy+0x1b0/0x1e0 [ 9772.664566] [] extent_map_exit+0x16/0x20 [btrfs] [ 9772.664582] [] exit_btrfs_fs+0x26/0x9c [btrfs] [ 9772.664585] [] SyS_delete_module+0x1af/0x200 [ 9772.664588] [] ? ____fput+0xd/0x10 [ 9772.664590] [] ? task_work_run+0x8f/0xa0 [ 9772.664592] [] ? exit_to_usermode_loop+0xb6/0xe0 [ 9772.664593] [] do_fast_syscall_32+0x9f/0x160 [ 9772.664595] [] sysenter_past_esp+0x3d/0x61 [ 9772.802610] Btrfs loaded [ 9772.812820] BTRFS: device fsid 47354b7b-394f-4bf6-8091-e8aa005dd669 devid 2 transid 5 /dev/loop1 [ 9772.837121] BTRFS info (device loop1): allowing degraded mounts [ 9772.837127] BTRFS info (device loop1): disk space caching is enabled [ 9772.837128] BTRFS: has skinny extents [ 9772.837129] BTRFS: flagging fs with big metadata feature [ 9772.838474] BTRFS warning (device loop1): devid 1 uuid a0aa7582-0cf7-4cad-b78a-869f0f244998 is missing [ 9772.838831] BTRFS: creating UUID tree [ 9773.051977] Test aa9ddcd4b5557102fa25695c11904f249b4dec49 returned 0 FAIL: aa9ddcd4b5557102fa25695c11904f249b4dec49 (ret=1) 03:10:04 INFO | END ERROR ubuntu_btrfs_kernel_fixes.aa9ddcd4b5557102fa25695c11904f249b4dec49 ubuntu_btrfs_kernel_fixes.aa9ddcd4b5557102fa25695c11904f249b4dec49 timestamp=1554865804 localtime=Apr 10 03:10:04 03:10:04 DEBUG| Persistent state client._record_indent now set to 1 03:10:04 DEBUG| Persistent state client.unexpected_reboot deleted 03:10:04 INFO | Invoking test: b2373f255cacdc1ea4da25e75a5a78949ffd9d66.sh 03:10:04 DEBUG| Test has timeout: 7200 sec. 03:10:04 INFO | START ubuntu_btrfs_kernel_fixes.b2373f255cacdc1ea4da25e75a5a78949ffd9d66 ubuntu_btrfs_kernel_fixes.b2373f255cacdc1ea4da25e75a5a78949ffd9d66 timestamp=1554865804 timeout=7200 localtime=Apr 10 03:10:04 03:10:04 DEBUG| Persistent state client._record_indent now set to 2 03:10:04 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.b2373f255cacdc1ea4da25e75a5a78949ffd9d66', 'ubuntu_btrfs_kernel_fixes.b2373f255cacdc1ea4da25e75a5a78949ffd9d66') 03:10:04 DEBUG| Waiting for pid 18296 for 7200 seconds 03:10:04 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/b2373f255cacdc1ea4da25e75a5a78949ffd9d66.sh 2>&1' 03:10:04 DEBUG| [stdout] Invoking test b2373f255cacdc1ea4da25e75a5a78949ffd9d66 03:10:04 DEBUG| [stdout] 03:10:04 DEBUG| [stdout] fix b2373f255cacdc1ea4da25e75a5a78949ffd9d66 03:10:04 DEBUG| [stdout] 03:10:04 DEBUG| [stdout] btrfs: create sprout should rename fsid on the sysfs as well 03:10:04 DEBUG| [stdout] 03:10:04 DEBUG| [stdout] Creating sprout will change the fsid of the mounted root. 03:10:04 DEBUG| [stdout] do the same on the sysfs as well. 03:10:04 DEBUG| [stdout] 03:10:04 DEBUG| [stdout] reproducer: 03:10:04 DEBUG| [stdout] mount /dev/sdb /btrfs (seed disk) 03:10:04 DEBUG| [stdout] btrfs dev add /dev/sdc /btrfs 03:10:04 DEBUG| [stdout] mount -o rw,remount /btrfs 03:10:04 DEBUG| [stdout] btrfs dev del /dev/sdb /btrfs 03:10:04 DEBUG| [stdout] mount /dev/sdb /btrfs 03:10:04 DEBUG| [stdout] 03:10:04 DEBUG| [stdout] Error: 03:10:04 DEBUG| [stdout] kobject_add_internal failed for fe350492-dc28-4051-a601-e017b17e6145 with -EEXIST, don't try to register things with the same name in the same directory. 03:10:04 DEBUG| [stdout] 03:10:04 DEBUG| [stdout] Performing full device TRIM (2.00GiB) ... 03:10:05 DEBUG| [stdout] mount: /dev/loop0 is already mounted or /tmp/mnt-b2373f255cacdc1ea4da25e75a5a78949ffd9d66 busy 03:10:15 DEBUG| [stdout] 03:10:15 DEBUG| [stdout] PASS: b2373f255cacdc1ea4da25e75a5a78949ffd9d66 03:10:15 DEBUG| [stdout] 03:10:16 INFO | GOOD ubuntu_btrfs_kernel_fixes.b2373f255cacdc1ea4da25e75a5a78949ffd9d66 ubuntu_btrfs_kernel_fixes.b2373f255cacdc1ea4da25e75a5a78949ffd9d66 timestamp=1554865816 localtime=Apr 10 03:10:16 completed successfully 03:10:16 INFO | END GOOD ubuntu_btrfs_kernel_fixes.b2373f255cacdc1ea4da25e75a5a78949ffd9d66 ubuntu_btrfs_kernel_fixes.b2373f255cacdc1ea4da25e75a5a78949ffd9d66 timestamp=1554865816 localtime=Apr 10 03:10:16 03:10:16 DEBUG| Persistent state client._record_indent now set to 1 03:10:16 DEBUG| Persistent state client.unexpected_reboot deleted 03:10:16 INFO | Invoking test: b772a86ea6d932ac29d5e50e67c977653c832f8a.sh 03:10:16 DEBUG| Test has timeout: 7200 sec. 03:10:16 INFO | START ubuntu_btrfs_kernel_fixes.b772a86ea6d932ac29d5e50e67c977653c832f8a ubuntu_btrfs_kernel_fixes.b772a86ea6d932ac29d5e50e67c977653c832f8a timestamp=1554865816 timeout=7200 localtime=Apr 10 03:10:16 03:10:16 DEBUG| Persistent state client._record_indent now set to 2 03:10:16 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.b772a86ea6d932ac29d5e50e67c977653c832f8a', 'ubuntu_btrfs_kernel_fixes.b772a86ea6d932ac29d5e50e67c977653c832f8a') 03:10:16 DEBUG| Waiting for pid 18399 for 7200 seconds 03:10:16 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/b772a86ea6d932ac29d5e50e67c977653c832f8a.sh 2>&1' 03:10:16 DEBUG| [stdout] Invoking test b772a86ea6d932ac29d5e50e67c977653c832f8a 03:10:16 DEBUG| [stdout] 03:10:16 DEBUG| [stdout] fix b772a86ea6d932ac29d5e50e67c977653c832f8a 03:10:16 DEBUG| [stdout] 03:10:16 DEBUG| [stdout] Btrfs: fix oops when calling statfs on readonly device 03:10:16 DEBUG| [stdout] 03:10:16 DEBUG| [stdout] To reproduce this bug: 03:10:16 DEBUG| [stdout] 03:10:16 DEBUG| [stdout] # dd if=/dev/zero of=img bs=1M count=256 03:10:16 DEBUG| [stdout] # mkfs.btrfs img 03:10:16 DEBUG| [stdout] # losetup -r /dev/loop1 img 03:10:16 DEBUG| [stdout] # mount /dev/loop1 /mnt 03:10:16 DEBUG| [stdout] OOPS!! 03:10:16 DEBUG| [stdout] 03:10:16 DEBUG| [stdout] It triggered BUG_ON(!nr_devices) in btrfs_calc_avail_data_space(). 03:10:16 DEBUG| [stdout] [ ... ] 03:10:16 DEBUG| [stdout] 03:10:17 DEBUG| [stdout] 256+0 records in 03:10:17 DEBUG| [stdout] 256+0 records out 03:10:17 DEBUG| [stdout] 268435456 bytes (268 MB, 256 MiB) copied, 1.09421 s, 245 MB/s 03:10:28 DEBUG| [stdout] 03:10:28 DEBUG| [stdout] PASS: b772a86ea6d932ac29d5e50e67c977653c832f8a 03:10:28 DEBUG| [stdout] 03:10:28 INFO | GOOD ubuntu_btrfs_kernel_fixes.b772a86ea6d932ac29d5e50e67c977653c832f8a ubuntu_btrfs_kernel_fixes.b772a86ea6d932ac29d5e50e67c977653c832f8a timestamp=1554865828 localtime=Apr 10 03:10:28 completed successfully 03:10:28 INFO | END GOOD ubuntu_btrfs_kernel_fixes.b772a86ea6d932ac29d5e50e67c977653c832f8a ubuntu_btrfs_kernel_fixes.b772a86ea6d932ac29d5e50e67c977653c832f8a timestamp=1554865828 localtime=Apr 10 03:10:28 03:10:28 DEBUG| Persistent state client._record_indent now set to 1 03:10:28 DEBUG| Persistent state client.unexpected_reboot deleted 03:10:28 INFO | Invoking test: b7fef4f593007d52ba7fe4427e099bd71c63c521.sh 03:10:28 DEBUG| Test has timeout: 7200 sec. 03:10:28 INFO | START ubuntu_btrfs_kernel_fixes.b7fef4f593007d52ba7fe4427e099bd71c63c521 ubuntu_btrfs_kernel_fixes.b7fef4f593007d52ba7fe4427e099bd71c63c521 timestamp=1554865828 timeout=7200 localtime=Apr 10 03:10:28 03:10:28 DEBUG| Persistent state client._record_indent now set to 2 03:10:28 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.b7fef4f593007d52ba7fe4427e099bd71c63c521', 'ubuntu_btrfs_kernel_fixes.b7fef4f593007d52ba7fe4427e099bd71c63c521') 03:10:28 DEBUG| Waiting for pid 18483 for 7200 seconds 03:10:28 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/b7fef4f593007d52ba7fe4427e099bd71c63c521.sh 2>&1' 03:10:28 DEBUG| [stdout] Invoking test b7fef4f593007d52ba7fe4427e099bd71c63c521 03:10:28 DEBUG| [stdout] 03:10:28 DEBUG| [stdout] fix b7fef4f593007d52ba7fe4427e099bd71c63c521 03:10:28 DEBUG| [stdout] 03:10:28 DEBUG| [stdout] Btrfs: fix missing check before creating a qgroup relation 03:10:28 DEBUG| [stdout] 03:10:28 DEBUG| [stdout] Step to reproduce: 03:10:28 DEBUG| [stdout] mkfs.btrfs 03:10:28 DEBUG| [stdout] mount 03:10:28 DEBUG| [stdout] btrfs quota enable 03:10:28 DEBUG| [stdout] btrfs qgroup assign 0/1 1/1 03:10:28 DEBUG| [stdout] umount 03:10:28 DEBUG| [stdout] btrfs-debug-tree | grep QGROUP 03:10:28 DEBUG| [stdout] If we want to add a qgroup relation, we should gurantee that 03:10:28 DEBUG| [stdout] 'src' and 'dst' exist, otherwise, such qgroup relation should 03:10:28 DEBUG| [stdout] not be allowed to create. 03:10:28 DEBUG| [stdout] 03:10:29 DEBUG| [stdout] ERROR: unable to assign quota group: Invalid argument 03:10:29 DEBUG| [stdout] btrfs qgroup relationship assignemnt for a non-existing src/dst failed as expected 03:10:29 DEBUG| [stdout] item 0 key (0 QGROUP_STATUS 0) itemoff 16251 itemsize 32 03:10:29 DEBUG| [stdout] item 1 key (0 QGROUP_INFO 0/5) itemoff 16211 itemsize 40 03:10:29 DEBUG| [stdout] item 2 key (0 QGROUP_LIMIT 0/5) itemoff 16171 itemsize 40 03:10:39 DEBUG| [stdout] 03:10:39 DEBUG| [stdout] PASS: b7fef4f593007d52ba7fe4427e099bd71c63c521 03:10:39 DEBUG| [stdout] 03:10:40 INFO | GOOD ubuntu_btrfs_kernel_fixes.b7fef4f593007d52ba7fe4427e099bd71c63c521 ubuntu_btrfs_kernel_fixes.b7fef4f593007d52ba7fe4427e099bd71c63c521 timestamp=1554865840 localtime=Apr 10 03:10:40 completed successfully 03:10:40 INFO | END GOOD ubuntu_btrfs_kernel_fixes.b7fef4f593007d52ba7fe4427e099bd71c63c521 ubuntu_btrfs_kernel_fixes.b7fef4f593007d52ba7fe4427e099bd71c63c521 timestamp=1554865840 localtime=Apr 10 03:10:40 03:10:40 DEBUG| Persistent state client._record_indent now set to 1 03:10:40 DEBUG| Persistent state client.unexpected_reboot deleted 03:10:40 INFO | Invoking test: b9a8cc5bef963b76c5b6c3016b7e91988a3e758b.sh 03:10:40 DEBUG| Test has timeout: 7200 sec. 03:10:40 INFO | START ubuntu_btrfs_kernel_fixes.b9a8cc5bef963b76c5b6c3016b7e91988a3e758b ubuntu_btrfs_kernel_fixes.b9a8cc5bef963b76c5b6c3016b7e91988a3e758b timestamp=1554865840 timeout=7200 localtime=Apr 10 03:10:40 03:10:40 DEBUG| Persistent state client._record_indent now set to 2 03:10:40 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.b9a8cc5bef963b76c5b6c3016b7e91988a3e758b', 'ubuntu_btrfs_kernel_fixes.b9a8cc5bef963b76c5b6c3016b7e91988a3e758b') 03:10:40 DEBUG| Waiting for pid 18569 for 7200 seconds 03:10:41 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/b9a8cc5bef963b76c5b6c3016b7e91988a3e758b.sh 2>&1' 03:10:41 DEBUG| [stdout] Invoking test b9a8cc5bef963b76c5b6c3016b7e91988a3e758b 03:10:41 DEBUG| [stdout] 03:10:41 DEBUG| [stdout] fix b9a8cc5bef963b76c5b6c3016b7e91988a3e758b 03:10:41 DEBUG| [stdout] 03:10:41 DEBUG| [stdout] Btrfs: fix file extent discount problem in the, snapshot 03:10:41 DEBUG| [stdout] 03:10:41 DEBUG| [stdout] If a snapshot is created while we are writing some data into the file, 03:10:41 DEBUG| [stdout] the i_size of the corresponding file in the snapshot will be wrong, it will 03:10:41 DEBUG| [stdout] be beyond the end of the last file extent. And btrfsck will report: 03:10:41 DEBUG| [stdout] root 256 inode 257 errors 100 03:10:41 DEBUG| [stdout] 03:10:41 DEBUG| [stdout] Steps to reproduce: 03:10:41 DEBUG| [stdout] # mkfs.btrfs 03:10:41 DEBUG| [stdout] # mount 03:10:41 DEBUG| [stdout] # cd 03:10:41 DEBUG| [stdout] # dd if=/dev/zero of=tmpfile bs=4M count=1024 & 03:10:41 DEBUG| [stdout] # for ((i=0; i<4; i++)) 03:10:41 DEBUG| [stdout] > do 03:10:41 DEBUG| [stdout] > btrfs sub snap . 03:10:41 DEBUG| [stdout] > done 03:10:41 DEBUG| [stdout] 03:10:41 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-b9a8cc5bef963b76c5b6c3016b7e91988a3e758b' in '/tmp/mnt-b9a8cc5bef963b76c5b6c3016b7e91988a3e758b/0' 03:10:42 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-b9a8cc5bef963b76c5b6c3016b7e91988a3e758b' in '/tmp/mnt-b9a8cc5bef963b76c5b6c3016b7e91988a3e758b/1' 03:10:43 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-b9a8cc5bef963b76c5b6c3016b7e91988a3e758b' in '/tmp/mnt-b9a8cc5bef963b76c5b6c3016b7e91988a3e758b/2' 03:10:43 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-b9a8cc5bef963b76c5b6c3016b7e91988a3e758b' in '/tmp/mnt-b9a8cc5bef963b76c5b6c3016b7e91988a3e758b/3' 03:10:44 DEBUG| [stdout] /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/b9a8cc5bef963b76c5b6c3016b7e91988a3e758b.sh: line 54: 18620 Killed dd if=/dev/zero of=$MNT/tmpfile bs=4M count=1024 03:10:44 DEBUG| [stdout] checking extents 03:10:44 DEBUG| [stdout] checking free space cache 03:10:44 DEBUG| [stdout] checking fs roots 03:10:44 DEBUG| [stdout] checking csums 03:10:44 DEBUG| [stdout] checking root refs 03:10:44 DEBUG| [stdout] /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/b9a8cc5bef963b76c5b6c3016b7e91988a3e758b.sh: line 58: [: -gt: unary operator expected 03:10:54 DEBUG| [stdout] 03:10:54 DEBUG| [stdout] PASS: b9a8cc5bef963b76c5b6c3016b7e91988a3e758b 03:10:54 DEBUG| [stdout] 03:10:55 INFO | GOOD ubuntu_btrfs_kernel_fixes.b9a8cc5bef963b76c5b6c3016b7e91988a3e758b ubuntu_btrfs_kernel_fixes.b9a8cc5bef963b76c5b6c3016b7e91988a3e758b timestamp=1554865855 localtime=Apr 10 03:10:55 completed successfully 03:10:55 INFO | END GOOD ubuntu_btrfs_kernel_fixes.b9a8cc5bef963b76c5b6c3016b7e91988a3e758b ubuntu_btrfs_kernel_fixes.b9a8cc5bef963b76c5b6c3016b7e91988a3e758b timestamp=1554865855 localtime=Apr 10 03:10:55 03:10:55 DEBUG| Persistent state client._record_indent now set to 1 03:10:55 DEBUG| Persistent state client.unexpected_reboot deleted 03:10:55 INFO | Invoking test: bf0d1f441d1679136c25e6141dd7e66cc7a14218.sh 03:10:55 DEBUG| Test has timeout: 7200 sec. 03:10:55 INFO | START ubuntu_btrfs_kernel_fixes.bf0d1f441d1679136c25e6141dd7e66cc7a14218 ubuntu_btrfs_kernel_fixes.bf0d1f441d1679136c25e6141dd7e66cc7a14218 timestamp=1554865855 timeout=7200 localtime=Apr 10 03:10:55 03:10:55 DEBUG| Persistent state client._record_indent now set to 2 03:10:55 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.bf0d1f441d1679136c25e6141dd7e66cc7a14218', 'ubuntu_btrfs_kernel_fixes.bf0d1f441d1679136c25e6141dd7e66cc7a14218') 03:10:55 DEBUG| Waiting for pid 18665 for 7200 seconds 03:10:55 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/bf0d1f441d1679136c25e6141dd7e66cc7a14218.sh 2>&1' 03:10:55 DEBUG| [stdout] Invoking test bf0d1f441d1679136c25e6141dd7e66cc7a14218 03:10:55 DEBUG| [stdout] 03:10:55 DEBUG| [stdout] fix bf0d1f441d1679136c25e6141dd7e66cc7a14218 03:10:55 DEBUG| [stdout] 03:10:55 DEBUG| [stdout] Btrfs: fix send issuing outdated paths for utimes, chown and chmod 03:10:55 DEBUG| [stdout] 03:10:55 DEBUG| [stdout] When doing an incremental send, if we had a directory pending a move/rename 03:10:55 DEBUG| [stdout] operation and none of its parents, except for the immediate parent, were 03:10:55 DEBUG| [stdout] pending a move/rename, after processing the directory's references, we would 03:10:55 DEBUG| [stdout] be issuing utimes, chown and chmod intructions against am outdated path - a 03:10:55 DEBUG| [stdout] path which matched the one in the parent root. 03:10:55 DEBUG| [stdout] 03:10:55 DEBUG| [stdout] This change also simplifies a bit the code that deals with building a path 03:10:55 DEBUG| [stdout] for a directory which has a move/rename operation delayed. 03:10:55 DEBUG| [stdout] 03:10:55 DEBUG| [stdout] chmod: cannot access '/tmp/mnt-bf0d1f441d1679136c25e6141dd7e66cc7a14218/b/c/d/e': No such file or directory 03:10:55 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-bf0d1f441d1679136c25e6141dd7e66cc7a14218' in '/tmp/mnt-bf0d1f441d1679136c25e6141dd7e66cc7a14218/snap1' 03:10:55 DEBUG| [stdout] At subvol /tmp/mnt-bf0d1f441d1679136c25e6141dd7e66cc7a14218/snap1 03:10:55 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-bf0d1f441d1679136c25e6141dd7e66cc7a14218' in '/tmp/mnt-bf0d1f441d1679136c25e6141dd7e66cc7a14218/snap2' 03:10:55 DEBUG| [stdout] At subvol /tmp/mnt-bf0d1f441d1679136c25e6141dd7e66cc7a14218/snap2 03:10:55 DEBUG| [stdout] btrfs-progs v4.4 03:10:55 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 03:10:55 DEBUG| [stdout] 03:10:55 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 03:10:55 DEBUG| [stdout] Label: (null) 03:10:55 DEBUG| [stdout] UUID: 0e71cc0d-e651-410b-b6b6-e2b8d83655f7 03:10:55 DEBUG| [stdout] Node size: 16384 03:10:55 DEBUG| [stdout] Sector size: 4096 03:10:55 DEBUG| [stdout] Filesystem size: 1.00GiB 03:10:55 DEBUG| [stdout] Block group profiles: 03:10:55 DEBUG| [stdout] Data: single 8.00MiB 03:10:55 DEBUG| [stdout] Metadata: DUP 59.19MiB 03:10:55 DEBUG| [stdout] System: DUP 12.00MiB 03:10:55 DEBUG| [stdout] SSD detected: no 03:10:55 DEBUG| [stdout] Incompat features: extref, skinny-metadata 03:10:55 DEBUG| [stdout] Number of devices: 1 03:10:55 DEBUG| [stdout] Devices: 03:10:55 DEBUG| [stdout] ID SIZE PATH 03:10:55 DEBUG| [stdout] 1 1.00GiB /dev/loop0 03:10:55 DEBUG| [stdout] 03:10:55 DEBUG| [stdout] At subvol snap1 03:10:56 DEBUG| [stdout] At snapshot snap2 03:11:06 DEBUG| [stdout] 03:11:06 DEBUG| [stdout] PASS: bf0d1f441d1679136c25e6141dd7e66cc7a14218 03:11:06 DEBUG| [stdout] 03:11:07 INFO | GOOD ubuntu_btrfs_kernel_fixes.bf0d1f441d1679136c25e6141dd7e66cc7a14218 ubuntu_btrfs_kernel_fixes.bf0d1f441d1679136c25e6141dd7e66cc7a14218 timestamp=1554865867 localtime=Apr 10 03:11:07 completed successfully 03:11:07 INFO | END GOOD ubuntu_btrfs_kernel_fixes.bf0d1f441d1679136c25e6141dd7e66cc7a14218 ubuntu_btrfs_kernel_fixes.bf0d1f441d1679136c25e6141dd7e66cc7a14218 timestamp=1554865867 localtime=Apr 10 03:11:07 03:11:07 DEBUG| Persistent state client._record_indent now set to 1 03:11:07 DEBUG| Persistent state client.unexpected_reboot deleted 03:11:07 INFO | Invoking test: bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138.sh 03:11:07 DEBUG| Test has timeout: 7200 sec. 03:11:07 INFO | START ubuntu_btrfs_kernel_fixes.bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 ubuntu_btrfs_kernel_fixes.bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 timestamp=1554865867 timeout=7200 localtime=Apr 10 03:11:07 03:11:07 DEBUG| Persistent state client._record_indent now set to 2 03:11:07 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138', 'ubuntu_btrfs_kernel_fixes.bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138') 03:11:07 DEBUG| Waiting for pid 18794 for 7200 seconds 03:11:07 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138.sh 2>&1' 03:11:07 DEBUG| [stdout] Invoking test bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 03:11:07 DEBUG| [stdout] 03:11:07 DEBUG| [stdout] fix bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 03:11:07 DEBUG| [stdout] 03:11:07 DEBUG| [stdout] Btrfs: send, don't delay dir move if there's a new parent inode 03:11:07 DEBUG| [stdout] 03:11:07 DEBUG| [stdout] If between two snapshots we rename an existing directory named X to Y and 03:11:07 DEBUG| [stdout] make it a child (direct or not) of a new inode named X, we were delaying 03:11:07 DEBUG| [stdout] the move/rename of the former directory unnecessarily, which would result 03:11:07 DEBUG| [stdout] in attempting to rename the new directory from its orphan name to name X 03:11:07 DEBUG| [stdout] prematurely. 03:11:07 DEBUG| [stdout] 03:11:08 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138/0' in '/tmp/mnt-bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138/0/mysnap1' 03:11:08 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138/0' in '/tmp/mnt-bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138/0/mysnap2' 03:11:08 DEBUG| [stdout] At subvol /tmp/mnt-bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138/0/mysnap1 03:11:08 DEBUG| [stdout] At subvol /tmp/mnt-bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138/0/mysnap2 03:11:08 DEBUG| [stdout] At subvol mysnap1 03:11:08 DEBUG| [stdout] At snapshot mysnap2 03:11:18 DEBUG| [stdout] 03:11:18 DEBUG| [stdout] PASS: bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 03:11:18 DEBUG| [stdout] 03:11:19 INFO | GOOD ubuntu_btrfs_kernel_fixes.bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 ubuntu_btrfs_kernel_fixes.bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 timestamp=1554865879 localtime=Apr 10 03:11:19 completed successfully 03:11:19 INFO | END GOOD ubuntu_btrfs_kernel_fixes.bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 ubuntu_btrfs_kernel_fixes.bf8e8ca6fd4ac6e8edc58b92cffb2ffd51933138 timestamp=1554865879 localtime=Apr 10 03:11:19 03:11:19 DEBUG| Persistent state client._record_indent now set to 1 03:11:19 DEBUG| Persistent state client.unexpected_reboot deleted 03:11:19 INFO | Invoking test: bfa7e1f8be4bd7118e485a42cc8889530d415d05.sh 03:11:19 DEBUG| Test has timeout: 7200 sec. 03:11:19 INFO | START ubuntu_btrfs_kernel_fixes.bfa7e1f8be4bd7118e485a42cc8889530d415d05 ubuntu_btrfs_kernel_fixes.bfa7e1f8be4bd7118e485a42cc8889530d415d05 timestamp=1554865879 timeout=7200 localtime=Apr 10 03:11:19 03:11:19 DEBUG| Persistent state client._record_indent now set to 2 03:11:19 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.bfa7e1f8be4bd7118e485a42cc8889530d415d05', 'ubuntu_btrfs_kernel_fixes.bfa7e1f8be4bd7118e485a42cc8889530d415d05') 03:11:19 DEBUG| Waiting for pid 18930 for 7200 seconds 03:11:19 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/bfa7e1f8be4bd7118e485a42cc8889530d415d05.sh 2>&1' 03:11:19 DEBUG| [stdout] Invoking test bfa7e1f8be4bd7118e485a42cc8889530d415d05 03:11:19 DEBUG| [stdout] 03:11:19 DEBUG| [stdout] fix bfa7e1f8be4bd7118e485a42cc8889530d415d05 03:11:19 DEBUG| [stdout] 03:11:19 DEBUG| [stdout] Btrfs: part 2, fix incremental send's decision to delay a dir move/rename 03:11:19 DEBUG| [stdout] 03:11:19 DEBUG| [stdout] For an incremental send, fix the process of determining whether the directory 03:11:19 DEBUG| [stdout] inode we're currently processing needs to have its move/rename operation delayed. 03:11:19 DEBUG| [stdout] 03:11:19 DEBUG| [stdout] We were ignoring the fact that if the inode's new immediate ancestor has a higher 03:11:19 DEBUG| [stdout] inode number than ours but wasn't renamed/moved, we might still need to delay our 03:11:19 DEBUG| [stdout] move/rename, because some other ancestor directory higher in the hierarchy might 03:11:19 DEBUG| [stdout] have an inode number higher than ours *and* was renamed/moved too - in this case 03:11:19 DEBUG| [stdout] we have to wait for rename/move of that ancestor to happen before our current 03:11:19 DEBUG| [stdout] directory's rename/move operation. 03:11:19 DEBUG| [stdout] 03:11:19 DEBUG| [stdout] btrfs-progs v4.4 03:11:19 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 03:11:19 DEBUG| [stdout] 03:11:19 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 03:11:19 DEBUG| [stdout] Label: (null) 03:11:19 DEBUG| [stdout] UUID: 81700bf4-b954-4f83-ba6a-46f8972a16a2 03:11:19 DEBUG| [stdout] Node size: 16384 03:11:19 DEBUG| [stdout] Sector size: 4096 03:11:19 DEBUG| [stdout] Filesystem size: 1.00GiB 03:11:19 DEBUG| [stdout] Block group profiles: 03:11:19 DEBUG| [stdout] Data: single 8.00MiB 03:11:19 DEBUG| [stdout] Metadata: DUP 59.19MiB 03:11:19 DEBUG| [stdout] System: DUP 12.00MiB 03:11:19 DEBUG| [stdout] SSD detected: no 03:11:19 DEBUG| [stdout] Incompat features: extref, skinny-metadata 03:11:19 DEBUG| [stdout] Number of devices: 1 03:11:19 DEBUG| [stdout] Devices: 03:11:19 DEBUG| [stdout] ID SIZE PATH 03:11:19 DEBUG| [stdout] 1 1.00GiB /dev/loop0 03:11:19 DEBUG| [stdout] 03:11:20 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-bfa7e1f8be4bd7118e485a42cc8889530d415d05' in '/tmp/mnt-bfa7e1f8be4bd7118e485a42cc8889530d415d05/snap1' 03:11:20 DEBUG| [stdout] At subvol /tmp/mnt-bfa7e1f8be4bd7118e485a42cc8889530d415d05/snap1 03:11:20 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-bfa7e1f8be4bd7118e485a42cc8889530d415d05' in '/tmp/mnt-bfa7e1f8be4bd7118e485a42cc8889530d415d05/snap2' 03:11:20 DEBUG| [stdout] At subvol /tmp/mnt-bfa7e1f8be4bd7118e485a42cc8889530d415d05/snap2 03:11:30 DEBUG| [stdout] 03:11:30 DEBUG| [stdout] PASS: bfa7e1f8be4bd7118e485a42cc8889530d415d05 03:11:30 DEBUG| [stdout] 03:11:31 INFO | GOOD ubuntu_btrfs_kernel_fixes.bfa7e1f8be4bd7118e485a42cc8889530d415d05 ubuntu_btrfs_kernel_fixes.bfa7e1f8be4bd7118e485a42cc8889530d415d05 timestamp=1554865891 localtime=Apr 10 03:11:31 completed successfully 03:11:31 INFO | END GOOD ubuntu_btrfs_kernel_fixes.bfa7e1f8be4bd7118e485a42cc8889530d415d05 ubuntu_btrfs_kernel_fixes.bfa7e1f8be4bd7118e485a42cc8889530d415d05 timestamp=1554865891 localtime=Apr 10 03:11:31 03:11:31 DEBUG| Persistent state client._record_indent now set to 1 03:11:31 DEBUG| Persistent state client.unexpected_reboot deleted 03:11:31 INFO | Invoking test: c1895442be01c58449e3bf9272f22062a670e08f.sh 03:11:31 DEBUG| Test has timeout: 7200 sec. 03:11:31 INFO | START ubuntu_btrfs_kernel_fixes.c1895442be01c58449e3bf9272f22062a670e08f ubuntu_btrfs_kernel_fixes.c1895442be01c58449e3bf9272f22062a670e08f timestamp=1554865891 timeout=7200 localtime=Apr 10 03:11:31 03:11:31 DEBUG| Persistent state client._record_indent now set to 2 03:11:31 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.c1895442be01c58449e3bf9272f22062a670e08f', 'ubuntu_btrfs_kernel_fixes.c1895442be01c58449e3bf9272f22062a670e08f') 03:11:31 DEBUG| Waiting for pid 19023 for 7200 seconds 03:11:31 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/c1895442be01c58449e3bf9272f22062a670e08f.sh 2>&1' 03:11:31 DEBUG| [stdout] Invoking test c1895442be01c58449e3bf9272f22062a670e08f 03:11:31 DEBUG| [stdout] 03:11:31 DEBUG| [stdout] fix c1895442be01c58449e3bf9272f22062a670e08f. 03:11:31 DEBUG| [stdout] 03:11:31 DEBUG| [stdout] Btrfs: send, don't error in the presence of subvols/snapshots 03:11:31 DEBUG| [stdout] 03:11:31 DEBUG| [stdout] If we are doing an incremental send and the base snapshot has a 03:11:31 DEBUG| [stdout] directory with name X that doesn't exist anymore in the second 03:11:31 DEBUG| [stdout] snapshot and a new subvolume/snapshot exists in the second snapshot 03:11:31 DEBUG| [stdout] that has the same name as the directory (name X), the incremental 03:11:31 DEBUG| [stdout] send would fail with -ENOENT error. This is because it attempts 03:11:31 DEBUG| [stdout] to lookup for an inode with a number matching the objectid of a 03:11:31 DEBUG| [stdout] root, which doesn't exist. 03:11:31 DEBUG| [stdout] 03:11:31 DEBUG| [stdout] Steps to reproduce: 03:11:31 DEBUG| [stdout] 03:11:31 DEBUG| [stdout] mkfs.btrfs -f /dev/sdd 03:11:31 DEBUG| [stdout] mount /dev/sdd /mnt 03:11:31 DEBUG| [stdout] 03:11:31 DEBUG| [stdout] mkdir /mnt/testdir 03:11:31 DEBUG| [stdout] btrfs subvolume snapshot -r /mnt /mnt/mysnap1 03:11:31 DEBUG| [stdout] 03:11:31 DEBUG| [stdout] rmdir /mnt/testdir 03:11:31 DEBUG| [stdout] btrfs subvolume create /mnt/testdir 03:11:31 DEBUG| [stdout] btrfs subvolume snapshot -r /mnt /mnt/mysnap2 03:11:31 DEBUG| [stdout] 03:11:31 DEBUG| [stdout] btrfs send -p /mnt/mysnap1 /mnt/mysnap2 -f /tmp/send.data 03:11:31 DEBUG| [stdout] 03:11:32 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-c1895442be01c58449e3bf9272f22062a670e08f' in '/tmp/mnt-c1895442be01c58449e3bf9272f22062a670e08f/mysnap1' 03:11:32 DEBUG| [stdout] Create subvolume '/tmp/mnt-c1895442be01c58449e3bf9272f22062a670e08f/testdir' 03:11:32 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-c1895442be01c58449e3bf9272f22062a670e08f' in '/tmp/mnt-c1895442be01c58449e3bf9272f22062a670e08f/mysnap2' 03:11:32 DEBUG| [stdout] At subvol /tmp/mnt-c1895442be01c58449e3bf9272f22062a670e08f/mysnap2 03:11:42 DEBUG| [stdout] 03:11:42 DEBUG| [stdout] PASS: c1895442be01c58449e3bf9272f22062a670e08f 03:11:42 DEBUG| [stdout] 03:11:43 INFO | GOOD ubuntu_btrfs_kernel_fixes.c1895442be01c58449e3bf9272f22062a670e08f ubuntu_btrfs_kernel_fixes.c1895442be01c58449e3bf9272f22062a670e08f timestamp=1554865903 localtime=Apr 10 03:11:43 completed successfully 03:11:43 INFO | END GOOD ubuntu_btrfs_kernel_fixes.c1895442be01c58449e3bf9272f22062a670e08f ubuntu_btrfs_kernel_fixes.c1895442be01c58449e3bf9272f22062a670e08f timestamp=1554865903 localtime=Apr 10 03:11:43 03:11:44 DEBUG| Persistent state client._record_indent now set to 1 03:11:44 DEBUG| Persistent state client.unexpected_reboot deleted 03:11:44 INFO | Invoking test: c55bfa67e94e22ec0449fe7c55b3ef20fbe13348.sh 03:11:44 DEBUG| Test has timeout: 7200 sec. 03:11:44 INFO | START ubuntu_btrfs_kernel_fixes.c55bfa67e94e22ec0449fe7c55b3ef20fbe13348 ubuntu_btrfs_kernel_fixes.c55bfa67e94e22ec0449fe7c55b3ef20fbe13348 timestamp=1554865904 timeout=7200 localtime=Apr 10 03:11:44 03:11:44 DEBUG| Persistent state client._record_indent now set to 2 03:11:44 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.c55bfa67e94e22ec0449fe7c55b3ef20fbe13348', 'ubuntu_btrfs_kernel_fixes.c55bfa67e94e22ec0449fe7c55b3ef20fbe13348') 03:11:44 DEBUG| Waiting for pid 19112 for 7200 seconds 03:11:44 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/c55bfa67e94e22ec0449fe7c55b3ef20fbe13348.sh 2>&1' 03:11:44 DEBUG| [stdout] Invoking test c55bfa67e94e22ec0449fe7c55b3ef20fbe13348 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] fix c55bfa67e94e22ec0449fe7c55b3ef20fbe13348 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] Btrfs: set dead flag on the right root when destroying snapshot 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] We were setting the BTRFS_ROOT_SUBVOL_DEAD flag on the root of the 03:11:44 DEBUG| [stdout] parent of our target snapshot, instead of setting it in the target 03:11:44 DEBUG| [stdout] snapshot's root. 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] This is easy to observe by running the following scenario: 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] mkfs.btrfs -f /dev/sdd 03:11:44 DEBUG| [stdout] mount /dev/sdd /mnt 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] btrfs subvolume create /mnt/first_subvol 03:11:44 DEBUG| [stdout] btrfs subvolume snapshot -r /mnt /mnt/mysnap1 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] btrfs subvolume delete /mnt/first_subvol 03:11:44 DEBUG| [stdout] btrfs subvolume snapshot -r /mnt /mnt/mysnap2 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] btrfs send -p /mnt/mysnap1 /mnt/mysnap2 -f /tmp/send.data 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] The send command failed because the send ioctl returned -EPERM. 03:11:44 DEBUG| [stdout] 03:11:44 DEBUG| [stdout] Create subvolume '/tmp/mnt-c55bfa67e94e22ec0449fe7c55b3ef20fbe13348/first_subvol' 03:11:44 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-c55bfa67e94e22ec0449fe7c55b3ef20fbe13348' in '/tmp/mnt-c55bfa67e94e22ec0449fe7c55b3ef20fbe13348/mysnap1' 03:11:44 DEBUG| [stdout] Delete subvolume (no-commit): '/tmp/mnt-c55bfa67e94e22ec0449fe7c55b3ef20fbe13348/first_subvol' 03:11:44 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-c55bfa67e94e22ec0449fe7c55b3ef20fbe13348' in '/tmp/mnt-c55bfa67e94e22ec0449fe7c55b3ef20fbe13348/mysnap2' 03:11:44 DEBUG| [stdout] At subvol /tmp/mnt-c55bfa67e94e22ec0449fe7c55b3ef20fbe13348/mysnap2 03:11:54 DEBUG| [stdout] 03:11:54 DEBUG| [stdout] PASS: c55bfa67e94e22ec0449fe7c55b3ef20fbe13348 03:11:54 DEBUG| [stdout] 03:11:56 INFO | GOOD ubuntu_btrfs_kernel_fixes.c55bfa67e94e22ec0449fe7c55b3ef20fbe13348 ubuntu_btrfs_kernel_fixes.c55bfa67e94e22ec0449fe7c55b3ef20fbe13348 timestamp=1554865916 localtime=Apr 10 03:11:56 completed successfully 03:11:56 INFO | END GOOD ubuntu_btrfs_kernel_fixes.c55bfa67e94e22ec0449fe7c55b3ef20fbe13348 ubuntu_btrfs_kernel_fixes.c55bfa67e94e22ec0449fe7c55b3ef20fbe13348 timestamp=1554865916 localtime=Apr 10 03:11:56 03:11:56 DEBUG| Persistent state client._record_indent now set to 1 03:11:56 DEBUG| Persistent state client.unexpected_reboot deleted 03:11:56 INFO | Invoking test: c55f13964008bfea7c5bee268f28b699cbad7f00.sh 03:11:56 DEBUG| Test has timeout: 7200 sec. 03:11:56 INFO | START ubuntu_btrfs_kernel_fixes.c55f13964008bfea7c5bee268f28b699cbad7f00 ubuntu_btrfs_kernel_fixes.c55f13964008bfea7c5bee268f28b699cbad7f00 timestamp=1554865916 timeout=7200 localtime=Apr 10 03:11:56 03:11:56 DEBUG| Persistent state client._record_indent now set to 2 03:11:56 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.c55f13964008bfea7c5bee268f28b699cbad7f00', 'ubuntu_btrfs_kernel_fixes.c55f13964008bfea7c5bee268f28b699cbad7f00') 03:11:56 DEBUG| Waiting for pid 19200 for 7200 seconds 03:11:56 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/c55f13964008bfea7c5bee268f28b699cbad7f00.sh 2>&1' 03:11:56 DEBUG| [stdout] Invoking test c55f13964008bfea7c5bee268f28b699cbad7f00 03:11:56 DEBUG| [stdout] 03:11:56 DEBUG| [stdout] /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/c55f13964008bfea7c5bee268f28b699cbad7f00.sh: command substitution: line 2: syntax error near unexpected token `newline' 03:11:56 DEBUG| [stdout] /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/c55f13964008bfea7c5bee268f28b699cbad7f00.sh: command substitution: line 2: `basename ' 03:11:56 DEBUG| [stdout] fix c55f13964008bfea7c5bee268f28b699cbad7f00 03:11:56 DEBUG| [stdout] 03:11:56 DEBUG| [stdout] Btrfs: fix deadlock when mounting a degraded fs 03:11:56 DEBUG| [stdout] 03:11:56 DEBUG| [stdout] The deadlock happened when we mount degraded filesystem, the reproduced 03:11:56 DEBUG| [stdout] steps are following: 03:11:56 DEBUG| [stdout] # mkfs.btrfs -f -m raid1 -d raid1 03:11:56 DEBUG| [stdout] # echo 1 > /sys/block//device/delete 03:11:56 DEBUG| [stdout] # mount -o degraded 03:11:56 DEBUG| [stdout] 03:11:56 DEBUG| [stdout] The reason was that the counter -- bi_remaining was wrong. If the missing 03:11:56 DEBUG| [stdout] or unwriteable device was the last device in the mapping array, we would 03:11:56 DEBUG| [stdout] not submit the original bio, so we shouldn't increase bi_remaining of it 03:11:56 DEBUG| [stdout] in btrfs_end_bio(), or we would skip the final endio handle. 03:11:56 DEBUG| [stdout] 03:11:56 DEBUG| [stdout] Fix this problem by adding a flag into btrfs bio structure. If we submit 03:11:56 DEBUG| [stdout] the original bio, we will set the flag, and we increase bi_remaining counter, 03:11:56 DEBUG| [stdout] or we don't. 03:11:56 DEBUG| [stdout] 03:11:56 DEBUG| [stdout] Though there is another way to fix it -- decrease bi_remaining counter of the 03:11:56 DEBUG| [stdout] original bio when we make sure the original bio is not submitted, this method 03:11:56 DEBUG| [stdout] need add more check and is easy to make mistake. 03:11:56 DEBUG| [stdout] 03:12:06 DEBUG| [stdout] 03:12:06 DEBUG| [stdout] PASS: c55f13964008bfea7c5bee268f28b699cbad7f00 03:12:06 DEBUG| [stdout] 03:12:08 INFO | GOOD ubuntu_btrfs_kernel_fixes.c55f13964008bfea7c5bee268f28b699cbad7f00 ubuntu_btrfs_kernel_fixes.c55f13964008bfea7c5bee268f28b699cbad7f00 timestamp=1554865928 localtime=Apr 10 03:12:08 completed successfully 03:12:08 INFO | END GOOD ubuntu_btrfs_kernel_fixes.c55f13964008bfea7c5bee268f28b699cbad7f00 ubuntu_btrfs_kernel_fixes.c55f13964008bfea7c5bee268f28b699cbad7f00 timestamp=1554865928 localtime=Apr 10 03:12:08 03:12:08 DEBUG| Persistent state client._record_indent now set to 1 03:12:08 DEBUG| Persistent state client.unexpected_reboot deleted 03:12:08 INFO | Invoking test: c7c144db531fda414e532adac56e965ce332e2a5.sh 03:12:08 DEBUG| Test has timeout: 7200 sec. 03:12:08 INFO | START ubuntu_btrfs_kernel_fixes.c7c144db531fda414e532adac56e965ce332e2a5 ubuntu_btrfs_kernel_fixes.c7c144db531fda414e532adac56e965ce332e2a5 timestamp=1554865928 timeout=7200 localtime=Apr 10 03:12:08 03:12:08 DEBUG| Persistent state client._record_indent now set to 2 03:12:08 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.c7c144db531fda414e532adac56e965ce332e2a5', 'ubuntu_btrfs_kernel_fixes.c7c144db531fda414e532adac56e965ce332e2a5') 03:12:08 DEBUG| Waiting for pid 19296 for 7200 seconds 03:12:08 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/c7c144db531fda414e532adac56e965ce332e2a5.sh 2>&1' 03:12:08 DEBUG| [stdout] Invoking test c7c144db531fda414e532adac56e965ce332e2a5 03:12:08 DEBUG| [stdout] 03:12:08 DEBUG| [stdout] fix c7c144db531fda414e532adac56e965ce332e2a5 03:12:08 DEBUG| [stdout] 03:12:08 DEBUG| [stdout] Btrfs: update global block_rsv when creating a new block group 03:12:08 DEBUG| [stdout] 03:12:08 DEBUG| [stdout] A bug was triggered while using seed device: 03:12:08 DEBUG| [stdout] 03:12:08 DEBUG| [stdout] # mkfs.btrfs /dev/loop1 03:12:08 DEBUG| [stdout] # btrfstune -S 1 /dev/loop1 03:12:08 DEBUG| [stdout] # mount -o /dev/loop1 /mnt 03:12:08 DEBUG| [stdout] # btrfs dev add /dev/loop2 /mnt 03:12:08 DEBUG| [stdout] 03:12:08 DEBUG| [stdout] btrfs: block rsv returned -28 03:12:08 DEBUG| [stdout] ------------[ cut here ]------------ 03:12:08 DEBUG| [stdout] WARNING: at fs/btrfs/extent-tree.c:5969 btrfs_alloc_free_block+0x166/0x396 [btrfs]() 03:12:08 DEBUG| [stdout] 03:12:09 DEBUG| [stdout] Performing full device TRIM (256.00MiB) ... 03:12:19 DEBUG| [stdout] 03:12:19 DEBUG| [stdout] PASS: c7c144db531fda414e532adac56e965ce332e2a5 03:12:19 DEBUG| [stdout] 03:12:20 INFO | GOOD ubuntu_btrfs_kernel_fixes.c7c144db531fda414e532adac56e965ce332e2a5 ubuntu_btrfs_kernel_fixes.c7c144db531fda414e532adac56e965ce332e2a5 timestamp=1554865940 localtime=Apr 10 03:12:20 completed successfully 03:12:20 INFO | END GOOD ubuntu_btrfs_kernel_fixes.c7c144db531fda414e532adac56e965ce332e2a5 ubuntu_btrfs_kernel_fixes.c7c144db531fda414e532adac56e965ce332e2a5 timestamp=1554865940 localtime=Apr 10 03:12:20 03:12:20 DEBUG| Persistent state client._record_indent now set to 1 03:12:20 DEBUG| Persistent state client.unexpected_reboot deleted 03:12:20 INFO | Invoking test: c992ec94f24c3e7135d6c23860615f269f0b1d87.sh 03:12:20 DEBUG| Test has timeout: 7200 sec. 03:12:20 INFO | START ubuntu_btrfs_kernel_fixes.c992ec94f24c3e7135d6c23860615f269f0b1d87 ubuntu_btrfs_kernel_fixes.c992ec94f24c3e7135d6c23860615f269f0b1d87 timestamp=1554865940 timeout=7200 localtime=Apr 10 03:12:20 03:12:20 DEBUG| Persistent state client._record_indent now set to 2 03:12:20 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.c992ec94f24c3e7135d6c23860615f269f0b1d87', 'ubuntu_btrfs_kernel_fixes.c992ec94f24c3e7135d6c23860615f269f0b1d87') 03:12:20 DEBUG| Waiting for pid 19394 for 7200 seconds 03:12:20 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/c992ec94f24c3e7135d6c23860615f269f0b1d87.sh 2>&1' 03:12:20 DEBUG| [stdout] Invoking test c992ec94f24c3e7135d6c23860615f269f0b1d87 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] fix c992ec94f24c3e7135d6c23860615f269f0b1d87 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] Btrfs: send, account for orphan directories when building path strings 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] If we have directories with a pending move/rename operation, we must take into 03:12:20 DEBUG| [stdout] account any orphan directories that got created before executing the pending 03:12:20 DEBUG| [stdout] move/rename. Those orphan directories are directories with an inode number higher 03:12:20 DEBUG| [stdout] then the current send progress and that don't exist in the parent snapshot, they 03:12:20 DEBUG| [stdout] are created before current progress reaches their inode number, with a generated 03:12:20 DEBUG| [stdout] name of the form oN-M-I and at the root of the filesystem tree, and later when 03:12:20 DEBUG| [stdout] progress matches their inode number, moved/renamed to their final location. 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] Reproducer: 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] $ mkfs.btrfs -f /dev/sdd 03:12:20 DEBUG| [stdout] $ mount /dev/sdd /mnt 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] $ mkdir -p /mnt/a/b/c/d 03:12:20 DEBUG| [stdout] $ mkdir /mnt/a/b/e 03:12:20 DEBUG| [stdout] $ mv /mnt/a/b/c /mnt/a/b/e/CC 03:12:20 DEBUG| [stdout] $ mkdir /mnt/a/b/e/CC/d/f 03:12:20 DEBUG| [stdout] $ mkdir /mnt/a/g 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] $ btrfs subvolume snapshot -r /mnt /mnt/snap1 03:12:20 DEBUG| [stdout] $ btrfs send /mnt/snap1 -f /tmp/base.send 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] $ mkdir /mnt/a/g/h 03:12:20 DEBUG| [stdout] $ mv /mnt/a/b/e /mnt/a/g/h/EE 03:12:20 DEBUG| [stdout] $ mv /mnt/a/g/h/EE/CC/d /mnt/a/g/h/EE/DD 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] $ btrfs subvolume snapshot -r /mnt /mnt/snap2 03:12:20 DEBUG| [stdout] $ btrfs send -p /mnt/snap1 /mnt/snap2 -f /tmp/incremental.send 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] The second receive command failed with the following error: 03:12:20 DEBUG| [stdout] 03:12:20 DEBUG| [stdout] ERROR: rename a/b/e/CC/d -> o264-7-0/EE/DD failed. No such file or directory 03:12:20 DEBUG| [stdout] 03:12:21 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-c992ec94f24c3e7135d6c23860615f269f0b1d87' in '/tmp/mnt-c992ec94f24c3e7135d6c23860615f269f0b1d87/mysnap1' 03:12:21 DEBUG| [stdout] At subvol /tmp/mnt-c992ec94f24c3e7135d6c23860615f269f0b1d87/mysnap1 03:12:21 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-c992ec94f24c3e7135d6c23860615f269f0b1d87' in '/tmp/mnt-c992ec94f24c3e7135d6c23860615f269f0b1d87/mysnap2' 03:12:21 DEBUG| [stdout] At subvol /tmp/mnt-c992ec94f24c3e7135d6c23860615f269f0b1d87/mysnap2 03:12:31 DEBUG| [stdout] 03:12:31 DEBUG| [stdout] PASS: c992ec94f24c3e7135d6c23860615f269f0b1d87 03:12:31 DEBUG| [stdout] 03:12:32 INFO | GOOD ubuntu_btrfs_kernel_fixes.c992ec94f24c3e7135d6c23860615f269f0b1d87 ubuntu_btrfs_kernel_fixes.c992ec94f24c3e7135d6c23860615f269f0b1d87 timestamp=1554865952 localtime=Apr 10 03:12:32 completed successfully 03:12:32 INFO | END GOOD ubuntu_btrfs_kernel_fixes.c992ec94f24c3e7135d6c23860615f269f0b1d87 ubuntu_btrfs_kernel_fixes.c992ec94f24c3e7135d6c23860615f269f0b1d87 timestamp=1554865952 localtime=Apr 10 03:12:32 03:12:32 DEBUG| Persistent state client._record_indent now set to 1 03:12:32 DEBUG| Persistent state client.unexpected_reboot deleted 03:12:32 INFO | Invoking test: c9a9dbf2cbd1641af49bf081ca3bbe4101df3991.sh 03:12:32 DEBUG| Test has timeout: 7200 sec. 03:12:33 INFO | START ubuntu_btrfs_kernel_fixes.c9a9dbf2cbd1641af49bf081ca3bbe4101df3991 ubuntu_btrfs_kernel_fixes.c9a9dbf2cbd1641af49bf081ca3bbe4101df3991 timestamp=1554865952 timeout=7200 localtime=Apr 10 03:12:32 03:12:33 DEBUG| Persistent state client._record_indent now set to 2 03:12:33 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.c9a9dbf2cbd1641af49bf081ca3bbe4101df3991', 'ubuntu_btrfs_kernel_fixes.c9a9dbf2cbd1641af49bf081ca3bbe4101df3991') 03:12:33 DEBUG| Waiting for pid 19490 for 7200 seconds 03:12:33 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/c9a9dbf2cbd1641af49bf081ca3bbe4101df3991.sh 2>&1' 03:12:33 DEBUG| [stdout] Invoking test c9a9dbf2cbd1641af49bf081ca3bbe4101df3991 03:12:33 DEBUG| [stdout] 03:12:33 DEBUG| [stdout] fix c9a9dbf2cbd1641af49bf081ca3bbe4101df3991 03:12:33 DEBUG| [stdout] 03:12:33 DEBUG| [stdout] Btrfs: fix a warning when disabling quota 03:12:33 DEBUG| [stdout] 03:12:33 DEBUG| [stdout] Obviously, this warn_on() is unnecessary, and it will be easily triggered. 03:12:33 DEBUG| [stdout] Just remove it. 03:12:33 DEBUG| [stdout] 03:12:33 DEBUG| [stdout] Create subvolume '/tmp/mnt-c9a9dbf2cbd1641af49bf081ca3bbe4101df3991/subv' 03:12:55 DEBUG| [stdout] 03:12:55 DEBUG| [stdout] PASS: c9a9dbf2cbd1641af49bf081ca3bbe4101df3991 03:12:55 DEBUG| [stdout] 03:12:57 INFO | GOOD ubuntu_btrfs_kernel_fixes.c9a9dbf2cbd1641af49bf081ca3bbe4101df3991 ubuntu_btrfs_kernel_fixes.c9a9dbf2cbd1641af49bf081ca3bbe4101df3991 timestamp=1554865977 localtime=Apr 10 03:12:57 completed successfully 03:12:57 INFO | END GOOD ubuntu_btrfs_kernel_fixes.c9a9dbf2cbd1641af49bf081ca3bbe4101df3991 ubuntu_btrfs_kernel_fixes.c9a9dbf2cbd1641af49bf081ca3bbe4101df3991 timestamp=1554865977 localtime=Apr 10 03:12:57 03:12:57 DEBUG| Persistent state client._record_indent now set to 1 03:12:57 DEBUG| Persistent state client.unexpected_reboot deleted 03:12:57 INFO | Invoking test: d0f69686c2ae775529aadc7a8acc6f13ad41de66.sh 03:12:57 DEBUG| Test has timeout: 7200 sec. 03:12:57 INFO | START ubuntu_btrfs_kernel_fixes.d0f69686c2ae775529aadc7a8acc6f13ad41de66 ubuntu_btrfs_kernel_fixes.d0f69686c2ae775529aadc7a8acc6f13ad41de66 timestamp=1554865977 timeout=7200 localtime=Apr 10 03:12:57 03:12:57 DEBUG| Persistent state client._record_indent now set to 2 03:12:57 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.d0f69686c2ae775529aadc7a8acc6f13ad41de66', 'ubuntu_btrfs_kernel_fixes.d0f69686c2ae775529aadc7a8acc6f13ad41de66') 03:12:57 DEBUG| Waiting for pid 29581 for 7200 seconds 03:12:57 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/d0f69686c2ae775529aadc7a8acc6f13ad41de66.sh 2>&1' 03:12:57 DEBUG| [stdout] Invoking test d0f69686c2ae775529aadc7a8acc6f13ad41de66 03:12:57 DEBUG| [stdout] 03:12:57 DEBUG| [stdout] fix d0f69686c2ae775529aadc7a8acc6f13ad41de66 03:12:57 DEBUG| [stdout] 03:12:57 DEBUG| [stdout] Btrfs: Don't return acl info when mounting with noacl option 03:12:57 DEBUG| [stdout] 03:12:57 DEBUG| [stdout] Steps to reproduce: 03:12:57 DEBUG| [stdout] 03:12:57 DEBUG| [stdout] # mkfs.btrfs /dev/sda2 03:12:57 DEBUG| [stdout] # mount /dev/sda2 /mnt 03:12:57 DEBUG| [stdout] # touch /mnt/file0 03:12:57 DEBUG| [stdout] # setfacl -m 'u:root:x,g::x,o::x' /mnt/file0 03:12:57 DEBUG| [stdout] # umount /mnt 03:12:57 DEBUG| [stdout] # mount /dev/sda2 -o noacl /mnt 03:12:57 DEBUG| [stdout] # getfacl /mnt/file0 03:12:57 DEBUG| [stdout] ... 03:12:57 DEBUG| [stdout] user::rw- 03:12:57 DEBUG| [stdout] user:root:--x 03:12:57 DEBUG| [stdout] group::--x 03:12:57 DEBUG| [stdout] mask::--x 03:12:57 DEBUG| [stdout] other::--x 03:12:57 DEBUG| [stdout] 03:12:57 DEBUG| [stdout] The output should be: 03:12:57 DEBUG| [stdout] 03:12:57 DEBUG| [stdout] user::rw- 03:12:57 DEBUG| [stdout] group::--x 03:12:57 DEBUG| [stdout] other::--x 03:12:57 DEBUG| [stdout] 03:12:57 DEBUG| [stdout] getfacl /tmp/mnt-d0f69686c2ae775529aadc7a8acc6f13ad41de66/file0 returns: 03:12:57 DEBUG| [stdout] getfacl: Removing leading '/' from absolute path names 03:12:57 DEBUG| [stdout] # file: tmp/mnt-d0f69686c2ae775529aadc7a8acc6f13ad41de66/file0 03:12:57 DEBUG| [stdout] # owner: root 03:12:57 DEBUG| [stdout] # group: root 03:12:57 DEBUG| [stdout] user::rw- 03:12:57 DEBUG| [stdout] group::--x 03:12:57 DEBUG| [stdout] other::--x 03:12:57 DEBUG| [stdout] 03:12:57 DEBUG| [stdout] 03:12:57 DEBUG| [stdout] getfacl: Removing leading '/' from absolute path names 03:13:07 DEBUG| [stdout] 03:13:07 DEBUG| [stdout] PASS: d0f69686c2ae775529aadc7a8acc6f13ad41de66 03:13:07 DEBUG| [stdout] 03:13:09 INFO | GOOD ubuntu_btrfs_kernel_fixes.d0f69686c2ae775529aadc7a8acc6f13ad41de66 ubuntu_btrfs_kernel_fixes.d0f69686c2ae775529aadc7a8acc6f13ad41de66 timestamp=1554865989 localtime=Apr 10 03:13:09 completed successfully 03:13:09 INFO | END GOOD ubuntu_btrfs_kernel_fixes.d0f69686c2ae775529aadc7a8acc6f13ad41de66 ubuntu_btrfs_kernel_fixes.d0f69686c2ae775529aadc7a8acc6f13ad41de66 timestamp=1554865989 localtime=Apr 10 03:13:09 03:13:09 DEBUG| Persistent state client._record_indent now set to 1 03:13:09 DEBUG| Persistent state client.unexpected_reboot deleted 03:13:09 INFO | Invoking test: d52a5b5f1fa40804f681cf9868d4a8f90661bdf3.sh 03:13:09 DEBUG| Test has timeout: 7200 sec. 03:13:09 INFO | START ubuntu_btrfs_kernel_fixes.d52a5b5f1fa40804f681cf9868d4a8f90661bdf3 ubuntu_btrfs_kernel_fixes.d52a5b5f1fa40804f681cf9868d4a8f90661bdf3 timestamp=1554865989 timeout=7200 localtime=Apr 10 03:13:09 03:13:09 DEBUG| Persistent state client._record_indent now set to 2 03:13:09 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.d52a5b5f1fa40804f681cf9868d4a8f90661bdf3', 'ubuntu_btrfs_kernel_fixes.d52a5b5f1fa40804f681cf9868d4a8f90661bdf3') 03:13:09 DEBUG| Waiting for pid 29699 for 7200 seconds 03:13:09 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/d52a5b5f1fa40804f681cf9868d4a8f90661bdf3.sh 2>&1' 03:13:09 DEBUG| [stdout] Invoking test d52a5b5f1fa40804f681cf9868d4a8f90661bdf3 03:13:09 DEBUG| [stdout] 03:13:09 DEBUG| [stdout] fix d52a5b5f1fa40804f681cf9868d4a8f90661bdf3 03:13:09 DEBUG| [stdout] 03:13:09 DEBUG| [stdout] btrfs: try to reclaim some space when chunk allocation fails 03:13:09 DEBUG| [stdout] 03:13:09 DEBUG| [stdout] We cannot write data into files when when there is tiny space in the filesystem. 03:13:09 DEBUG| [stdout] 03:13:09 DEBUG| [stdout] Reproduce steps: 03:13:09 DEBUG| [stdout] # mkfs.btrfs /dev/sda1 03:13:09 DEBUG| [stdout] # mount /dev/sda1 /mnt 03:13:09 DEBUG| [stdout] # dd if=/dev/zero of=/mnt/tmpfile0 bs=4K count=1 03:13:09 DEBUG| [stdout] # dd if=/dev/zero of=/mnt/tmpfile1 bs=4K count=99999999999999 03:13:09 DEBUG| [stdout] (fill the filesystem) 03:13:09 DEBUG| [stdout] # umount /mnt 03:13:09 DEBUG| [stdout] # mount /dev/sda1 /mnt 03:13:09 DEBUG| [stdout] # rm -f /mnt/tmpfile0 03:13:09 DEBUG| [stdout] # dd if=/dev/zero of=/mnt/tmpfile0 bs=4K count=1 03:13:09 DEBUG| [stdout] (failed with nospec) 03:13:09 DEBUG| [stdout] 03:13:09 DEBUG| [stdout] 1+0 records in 03:13:09 DEBUG| [stdout] 1+0 records out 03:13:09 DEBUG| [stdout] 4096 bytes (4.1 kB, 4.0 KiB) copied, 0.000135767 s, 30.2 MB/s 03:13:12 DEBUG| [stdout] dd: error writing '/tmp/mnt-d52a5b5f1fa40804f681cf9868d4a8f90661bdf3/tmpfile1': No space left on device 03:13:12 DEBUG| [stdout] 110336+0 records in 03:13:12 DEBUG| [stdout] 110335+0 records out 03:13:12 DEBUG| [stdout] 451932160 bytes (452 MB, 431 MiB) copied, 2.60075 s, 174 MB/s 03:13:12 DEBUG| [stdout] 1+0 records in 03:13:12 DEBUG| [stdout] 1+0 records out 03:13:12 DEBUG| [stdout] 4096 bytes (4.1 kB, 4.0 KiB) copied, 0.000195965 s, 20.9 MB/s 03:13:22 DEBUG| [stdout] 03:13:22 DEBUG| [stdout] PASS: d52a5b5f1fa40804f681cf9868d4a8f90661bdf3 03:13:22 DEBUG| [stdout] 03:13:23 INFO | GOOD ubuntu_btrfs_kernel_fixes.d52a5b5f1fa40804f681cf9868d4a8f90661bdf3 ubuntu_btrfs_kernel_fixes.d52a5b5f1fa40804f681cf9868d4a8f90661bdf3 timestamp=1554866003 localtime=Apr 10 03:13:23 completed successfully 03:13:23 INFO | END GOOD ubuntu_btrfs_kernel_fixes.d52a5b5f1fa40804f681cf9868d4a8f90661bdf3 ubuntu_btrfs_kernel_fixes.d52a5b5f1fa40804f681cf9868d4a8f90661bdf3 timestamp=1554866003 localtime=Apr 10 03:13:23 03:13:23 DEBUG| Persistent state client._record_indent now set to 1 03:13:23 DEBUG| Persistent state client.unexpected_reboot deleted 03:13:23 INFO | Invoking test: d7ce5843bb28ada6845ab2ae8510ba3f12d33154.sh 03:13:23 DEBUG| Test has timeout: 7200 sec. 03:13:23 INFO | START ubuntu_btrfs_kernel_fixes.d7ce5843bb28ada6845ab2ae8510ba3f12d33154 ubuntu_btrfs_kernel_fixes.d7ce5843bb28ada6845ab2ae8510ba3f12d33154 timestamp=1554866003 timeout=7200 localtime=Apr 10 03:13:23 03:13:23 DEBUG| Persistent state client._record_indent now set to 2 03:13:23 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.d7ce5843bb28ada6845ab2ae8510ba3f12d33154', 'ubuntu_btrfs_kernel_fixes.d7ce5843bb28ada6845ab2ae8510ba3f12d33154') 03:13:23 DEBUG| Waiting for pid 29787 for 7200 seconds 03:13:23 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/d7ce5843bb28ada6845ab2ae8510ba3f12d33154.sh 2>&1' 03:13:23 DEBUG| [stdout] Invoking test d7ce5843bb28ada6845ab2ae8510ba3f12d33154 03:13:23 DEBUG| [stdout] 03:13:23 DEBUG| [stdout] fix d7ce5843bb28ada6845ab2ae8510ba3f12d33154 03:13:23 DEBUG| [stdout] 03:13:23 DEBUG| [stdout] Btrfs: remove BUG_ON() due to mounting bad filesystem 03:13:23 DEBUG| [stdout] 03:13:23 DEBUG| [stdout] Mounting a bad filesystem caused a BUG_ON(). The following is steps to 03:13:23 DEBUG| [stdout] reproduce it. 03:13:23 DEBUG| [stdout] # mkfs.btrfs /dev/sda2 03:13:23 DEBUG| [stdout] # mount /dev/sda2 /mnt 03:13:23 DEBUG| [stdout] # mkfs.btrfs /dev/sda1 /dev/sda2 03:13:23 DEBUG| [stdout] (the program says that /dev/sda2 was mounted, and then exits. ) 03:13:23 DEBUG| [stdout] # umount /mnt 03:13:23 DEBUG| [stdout] # mount /dev/sda1 /mnt 03:13:23 DEBUG| [stdout] 03:13:23 DEBUG| [stdout] At the third step, mkfs.btrfs exited in the way of make filesystem. So the 03:13:23 DEBUG| [stdout] initialization of the filesystem didn't finish. So the filesystem was bad, and 03:13:23 DEBUG| [stdout] it caused BUG_ON() when mounting it. But BUG_ON() should be called by the wrong 03:13:23 DEBUG| [stdout] code, not user's operation, so I think it is a bug of btrfs. 03:13:23 DEBUG| [stdout] 03:13:34 DEBUG| [stdout] 03:13:34 DEBUG| [stdout] PASS: d7ce5843bb28ada6845ab2ae8510ba3f12d33154 03:13:34 DEBUG| [stdout] 03:13:35 INFO | GOOD ubuntu_btrfs_kernel_fixes.d7ce5843bb28ada6845ab2ae8510ba3f12d33154 ubuntu_btrfs_kernel_fixes.d7ce5843bb28ada6845ab2ae8510ba3f12d33154 timestamp=1554866015 localtime=Apr 10 03:13:35 completed successfully 03:13:35 INFO | END GOOD ubuntu_btrfs_kernel_fixes.d7ce5843bb28ada6845ab2ae8510ba3f12d33154 ubuntu_btrfs_kernel_fixes.d7ce5843bb28ada6845ab2ae8510ba3f12d33154 timestamp=1554866015 localtime=Apr 10 03:13:35 03:13:35 DEBUG| Persistent state client._record_indent now set to 1 03:13:35 DEBUG| Persistent state client.unexpected_reboot deleted 03:13:35 INFO | Invoking test: da24927b1e1925da5c1885cb483231dabe027e15.sh 03:13:35 DEBUG| Test has timeout: 7200 sec. 03:13:35 INFO | START ubuntu_btrfs_kernel_fixes.da24927b1e1925da5c1885cb483231dabe027e15 ubuntu_btrfs_kernel_fixes.da24927b1e1925da5c1885cb483231dabe027e15 timestamp=1554866015 timeout=7200 localtime=Apr 10 03:13:35 03:13:35 DEBUG| Persistent state client._record_indent now set to 2 03:13:35 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.da24927b1e1925da5c1885cb483231dabe027e15', 'ubuntu_btrfs_kernel_fixes.da24927b1e1925da5c1885cb483231dabe027e15') 03:13:35 DEBUG| Waiting for pid 29881 for 7200 seconds 03:13:36 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/da24927b1e1925da5c1885cb483231dabe027e15.sh 2>&1' 03:13:36 DEBUG| [stdout] Invoking test da24927b1e1925da5c1885cb483231dabe027e15 03:13:36 DEBUG| [stdout] 03:13:36 DEBUG| [stdout] fix da24927b1e1925da5c1885cb483231dabe027e15 03:13:36 DEBUG| [stdout] 03:13:36 DEBUG| [stdout] Btrfs: get write access when removing a device 03:13:36 DEBUG| [stdout] 03:13:36 DEBUG| [stdout] Steps to reproduce: 03:13:36 DEBUG| [stdout] # mkfs.btrfs -d single -m single 03:13:36 DEBUG| [stdout] # mount -o ro 03:13:36 DEBUG| [stdout] # mount -o ro 03:13:36 DEBUG| [stdout] # mount -o remount,rw 03:13:36 DEBUG| [stdout] # umount 03:13:36 DEBUG| [stdout] # btrfs device delete 03:13:36 DEBUG| [stdout] 03:13:36 DEBUG| [stdout] We can remove a device from a R/O filesystem. The reason is that we just check 03:13:36 DEBUG| [stdout] the R/O flag of the super block object. It is not enough, because the kernel 03:13:36 DEBUG| [stdout] may set the R/O flag only for the mount point. We need invoke 03:13:36 DEBUG| [stdout] 03:13:36 DEBUG| [stdout] mnt_want_write_file() 03:13:36 DEBUG| [stdout] 03:13:36 DEBUG| [stdout] to do a full check. 03:13:36 DEBUG| [stdout] 03:13:36 DEBUG| [stdout] Attempting to delete a read-only file system, this is not allowed. 03:13:36 DEBUG| [stdout] ERROR: error removing device '/dev/loop1': Read-only file system 03:13:46 DEBUG| [stdout] 03:13:46 DEBUG| [stdout] PASS: da24927b1e1925da5c1885cb483231dabe027e15 03:13:46 DEBUG| [stdout] 03:13:48 INFO | GOOD ubuntu_btrfs_kernel_fixes.da24927b1e1925da5c1885cb483231dabe027e15 ubuntu_btrfs_kernel_fixes.da24927b1e1925da5c1885cb483231dabe027e15 timestamp=1554866028 localtime=Apr 10 03:13:48 completed successfully 03:13:48 INFO | END GOOD ubuntu_btrfs_kernel_fixes.da24927b1e1925da5c1885cb483231dabe027e15 ubuntu_btrfs_kernel_fixes.da24927b1e1925da5c1885cb483231dabe027e15 timestamp=1554866028 localtime=Apr 10 03:13:48 03:13:48 DEBUG| Persistent state client._record_indent now set to 1 03:13:48 DEBUG| Persistent state client.unexpected_reboot deleted 03:13:48 INFO | Invoking test: e65e1535542931e51189832264cd282e5899e4b9.sh 03:13:48 DEBUG| Test has timeout: 7200 sec. 03:13:48 INFO | START ubuntu_btrfs_kernel_fixes.e65e1535542931e51189832264cd282e5899e4b9 ubuntu_btrfs_kernel_fixes.e65e1535542931e51189832264cd282e5899e4b9 timestamp=1554866028 timeout=7200 localtime=Apr 10 03:13:48 03:13:48 DEBUG| Persistent state client._record_indent now set to 2 03:13:48 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.e65e1535542931e51189832264cd282e5899e4b9', 'ubuntu_btrfs_kernel_fixes.e65e1535542931e51189832264cd282e5899e4b9') 03:13:48 DEBUG| Waiting for pid 29980 for 7200 seconds 03:13:48 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/e65e1535542931e51189832264cd282e5899e4b9.sh 2>&1' 03:13:48 DEBUG| [stdout] Invoking test e65e1535542931e51189832264cd282e5899e4b9 03:13:48 DEBUG| [stdout] 03:13:48 DEBUG| [stdout] fix e65e1535542931e51189832264cd282e5899e4b9 03:13:48 DEBUG| [stdout] 03:13:48 DEBUG| [stdout] btrfs: fix panic caused by direct IO 03:13:48 DEBUG| [stdout] 03:13:48 DEBUG| [stdout] btrfs paniced when we write >64KB data by direct IO at one time. 03:13:48 DEBUG| [stdout] 03:13:48 DEBUG| [stdout] Reproduce steps: 03:13:48 DEBUG| [stdout] # mkfs.btrfs /dev/sda5 /dev/sda6 03:13:48 DEBUG| [stdout] # mount /dev/sda5 /mnt 03:13:48 DEBUG| [stdout] # dd if=/dev/zero of=/mnt/tmpfile bs=100K count=1 oflag=direct 03:13:48 DEBUG| [stdout] 03:13:48 DEBUG| [stdout] Then btrfs paniced: 03:13:48 DEBUG| [stdout] mapping failed logical 1103155200 bio len 69632 len 12288 03:13:48 DEBUG| [stdout] ------------[ cut here ]------------ 03:13:48 DEBUG| [stdout] kernel BUG at fs/btrfs/volumes.c:3010! 03:13:48 DEBUG| [stdout] [....] 03:13:48 DEBUG| [stdout] 03:13:58 DEBUG| [stdout] 03:13:58 DEBUG| [stdout] PASS: e65e1535542931e51189832264cd282e5899e4b9 03:13:58 DEBUG| [stdout] 03:14:00 INFO | GOOD ubuntu_btrfs_kernel_fixes.e65e1535542931e51189832264cd282e5899e4b9 ubuntu_btrfs_kernel_fixes.e65e1535542931e51189832264cd282e5899e4b9 timestamp=1554866040 localtime=Apr 10 03:14:00 completed successfully 03:14:00 INFO | END GOOD ubuntu_btrfs_kernel_fixes.e65e1535542931e51189832264cd282e5899e4b9 ubuntu_btrfs_kernel_fixes.e65e1535542931e51189832264cd282e5899e4b9 timestamp=1554866040 localtime=Apr 10 03:14:00 03:14:00 DEBUG| Persistent state client._record_indent now set to 1 03:14:00 DEBUG| Persistent state client.unexpected_reboot deleted 03:14:00 INFO | Invoking test: e755f780865221252ef3321215c9796b78e7b1c5.sh 03:14:00 DEBUG| Test has timeout: 7200 sec. 03:14:00 INFO | START ubuntu_btrfs_kernel_fixes.e755f780865221252ef3321215c9796b78e7b1c5 ubuntu_btrfs_kernel_fixes.e755f780865221252ef3321215c9796b78e7b1c5 timestamp=1554866040 timeout=7200 localtime=Apr 10 03:14:00 03:14:00 DEBUG| Persistent state client._record_indent now set to 2 03:14:00 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.e755f780865221252ef3321215c9796b78e7b1c5', 'ubuntu_btrfs_kernel_fixes.e755f780865221252ef3321215c9796b78e7b1c5') 03:14:00 DEBUG| Waiting for pid 30082 for 7200 seconds 03:14:00 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/e755f780865221252ef3321215c9796b78e7b1c5.sh 2>&1' 03:14:00 DEBUG| [stdout] Invoking test e755f780865221252ef3321215c9796b78e7b1c5 03:14:00 DEBUG| [stdout] 03:14:00 DEBUG| [stdout] fix e755f780865221252ef3321215c9796b78e7b1c5 03:14:00 DEBUG| [stdout] 03:14:00 DEBUG| [stdout] btrfs: fix null pointer dereference in clone_fs_devices when name is null 03:14:00 DEBUG| [stdout] 03:14:00 DEBUG| [stdout] when one of the device path is missing btrfs_device name is null. So this 03:14:00 DEBUG| [stdout] patch will check for that. 03:14:00 DEBUG| [stdout] 03:14:01 DEBUG| [stdout] mount: /dev/loop0 is write-protected, mounting read-only 03:14:02 DEBUG| [stdout] Performing full device TRIM (2.00GiB) ... 03:14:02 DEBUG| [stdout] mount failed, kernel bug: 03:14:02 DEBUG| [stdout] [10020.402730] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 3 /dev/loop0 03:14:02 DEBUG| [stdout] [10020.406816] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 2 transid 3 /dev/loop2 03:14:02 DEBUG| [stdout] [10020.840655] ============================================================================= 03:14:02 DEBUG| [stdout] [10020.938559] BUG btrfs_extent_map (Tainted: G B ): Objects remaining in btrfs_extent_map on kmem_cache_close() 03:14:02 DEBUG| [stdout] [10021.069713] ----------------------------------------------------------------------------- 03:14:02 DEBUG| [stdout] 03:14:02 DEBUG| [stdout] [10021.185267] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c2690 flags=0x2800080 03:14:02 DEBUG| [stdout] [10021.274925] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:14:02 DEBUG| [stdout] [10021.274927] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:14:02 DEBUG| [stdout] [10021.274928] c1b13967 c3ac6054 00000286 c007bddc c13c0a9f f7369650 c007bdfc c007be70 03:14:02 DEBUG| [stdout] [10021.274933] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c2690 02800080 656a624f 03:14:02 DEBUG| [stdout] [10021.274937] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 03:14:02 DEBUG| [stdout] [10021.274941] Call Trace: 03:14:02 DEBUG| [stdout] [10021.274947] [] dump_stack+0x58/0x79 03:14:02 DEBUG| [stdout] [10021.274951] [] slab_err+0x82/0xa0 03:14:02 DEBUG| [stdout] [10021.274953] [] ? __kmalloc+0x22d/0x240 03:14:02 DEBUG| [stdout] [10021.274957] [] ? smp_call_function_many+0x1ad/0x220 03:14:02 DEBUG| [stdout] [10021.274959] [] ? free_partial+0xa9/0x1b0 03:14:02 DEBUG| [stdout] [10021.274961] [] ? free_partial+0xa9/0x1b0 03:14:02 DEBUG| [stdout] [10021.274963] [] free_partial+0xce/0x1b0 03:14:02 DEBUG| [stdout] [10021.274965] [] ? __flush_cpu_slab+0x40/0x40 03:14:02 DEBUG| [stdout] [10021.274968] [] __kmem_cache_shutdown+0x42/0x80 03:14:02 DEBUG| [stdout] [10021.274971] [] kmem_cache_destroy+0x162/0x1e0 03:14:02 DEBUG| [stdout] [10021.274995] [] extent_map_exit+0x16/0x20 [btrfs] 03:14:02 DEBUG| [stdout] [10021.275017] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:14:02 DEBUG| [stdout] [10021.275024] [] SyS_delete_module+0x1af/0x200 03:14:02 DEBUG| [stdout] [10021.275031] [] ? ____fput+0xd/0x10 03:14:02 DEBUG| [stdout] [10021.275039] [] ? task_work_run+0x8f/0xa0 03:14:02 DEBUG| [stdout] [10021.275044] [] ? exit_to_usermode_loop+0xb6/0xe0 03:14:02 DEBUG| [stdout] [10021.275046] [] do_fast_syscall_32+0x9f/0x160 03:14:02 DEBUG| [stdout] [10021.275049] [] sysenter_past_esp+0x3d/0x61 03:14:02 DEBUG| [stdout] [10021.275053] INFO: Object 0xe91c20f0 @offset=240 03:14:02 DEBUG| [stdout] [10021.329322] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects 03:14:02 DEBUG| [stdout] [10021.414816] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:14:02 DEBUG| [stdout] [10021.414818] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:14:02 DEBUG| [stdout] [10021.414819] c1b13967 c3ac6054 00000286 c007bed4 c13c0a9f f57d3240 f57d32b4 c007bf0c 03:14:02 DEBUG| [stdout] [10021.414823] c119e9a0 c1a1b0a4 ecc53780 c007bf04 000d992b c007beec c007beec c007bef4 03:14:02 DEBUG| [stdout] [10021.414827] c007bef4 c3ac6054 01e8ef1c f8f4c880 c007a000 c007bf14 f8ec4f86 c007bf1c 03:14:02 DEBUG| [stdout] [10021.414831] Call Trace: 03:14:02 DEBUG| [stdout] [10021.414834] [] dump_stack+0x58/0x79 03:14:02 DEBUG| [stdout] [10021.414836] [] kmem_cache_destroy+0x1b0/0x1e0 03:14:02 DEBUG| [stdout] [10021.414852] [] extent_map_exit+0x16/0x20 [btrfs] 03:14:02 DEBUG| [stdout] [10021.414867] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:14:02 DEBUG| [stdout] [10021.414870] [] SyS_delete_module+0x1af/0x200 03:14:02 DEBUG| [stdout] [10021.414872] [] ? ____fput+0xd/0x10 03:14:02 DEBUG| [stdout] [10021.414874] [] ? task_work_run+0x8f/0xa0 03:14:02 DEBUG| [stdout] [10021.414877] [] ? exit_to_usermode_loop+0xb6/0xe0 03:14:02 DEBUG| [stdout] [10021.414879] [] do_fast_syscall_32+0x9f/0x160 03:14:02 DEBUG| [stdout] [10021.414881] [] sysenter_past_esp+0x3d/0x61 03:14:02 DEBUG| [stdout] [10021.484487] Btrfs loaded 03:14:02 DEBUG| [stdout] [10021.504003] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 6 /dev/loop0 03:14:02 DEBUG| [stdout] [10021.556169] BTRFS info (device loop0): allowing degraded mounts 03:14:02 DEBUG| [stdout] [10021.556172] BTRFS info (device loop0): disk space caching is enabled 03:14:02 DEBUG| [stdout] [10021.556174] BTRFS: has skinny extents 03:14:02 DEBUG| [stdout] [10021.556175] BTRFS: flagging fs with big metadata feature 03:14:02 DEBUG| [stdout] [10021.558963] BTRFS warning (device loop0): devid 2 uuid b697c36a-0819-40d2-a786-d5c02bc8aee7 is missing 03:14:02 DEBUG| [stdout] [10021.731386] BTRFS info (device loop0): relocating block group 676855808 flags 2 03:14:02 DEBUG| [stdout] [10021.867212] BTRFS info (device loop0): relocating block group 20971520 flags 18 03:14:02 DEBUG| [stdout] [10022.075180] BTRFS info (device loop0): disk added /dev/loop3 03:14:02 DEBUG| [stdout] umount: /tmp/mnt-e755f780865221252ef3321215c9796b78e7b1c5: not mounted 03:14:02 DEBUG| [stdout] losetup: /dev/loop0: detach failed: No such device or address 03:14:02 DEBUG| [stdout] losetup: /dev/loop2: detach failed: No such device or address 03:14:02 DEBUG| [stdout] losetup: /dev/loop3: detach failed: No such device or address 03:14:12 DEBUG| [stdout] 03:14:12 DEBUG| [stdout] Found kernel issue: 03:14:12 DEBUG| [stdout] 03:14:12 DEBUG| [stdout] [10020.402730] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 3 /dev/loop0 03:14:12 DEBUG| [stdout] [10020.406816] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 2 transid 3 /dev/loop2 03:14:12 DEBUG| [stdout] [10020.840655] ============================================================================= 03:14:12 DEBUG| [stdout] [10020.938559] BUG btrfs_extent_map (Tainted: G B ): Objects remaining in btrfs_extent_map on kmem_cache_close() 03:14:12 DEBUG| [stdout] [10021.069713] ----------------------------------------------------------------------------- 03:14:12 DEBUG| [stdout] 03:14:12 DEBUG| [stdout] [10021.185267] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c2690 flags=0x2800080 03:14:12 DEBUG| [stdout] [10021.274925] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:14:12 DEBUG| [stdout] [10021.274927] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:14:12 DEBUG| [stdout] [10021.274928] c1b13967 c3ac6054 00000286 c007bddc c13c0a9f f7369650 c007bdfc c007be70 03:14:12 DEBUG| [stdout] [10021.274933] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c2690 02800080 656a624f 03:14:12 DEBUG| [stdout] [10021.274937] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 03:14:12 DEBUG| [stdout] [10021.274941] Call Trace: 03:14:12 DEBUG| [stdout] [10021.274947] [] dump_stack+0x58/0x79 03:14:12 DEBUG| [stdout] [10021.274951] [] slab_err+0x82/0xa0 03:14:12 DEBUG| [stdout] [10021.274953] [] ? __kmalloc+0x22d/0x240 03:14:12 DEBUG| [stdout] [10021.274957] [] ? smp_call_function_many+0x1ad/0x220 03:14:12 DEBUG| [stdout] [10021.274959] [] ? free_partial+0xa9/0x1b0 03:14:12 DEBUG| [stdout] [10021.274961] [] ? free_partial+0xa9/0x1b0 03:14:12 DEBUG| [stdout] [10021.274963] [] free_partial+0xce/0x1b0 03:14:12 DEBUG| [stdout] [10021.274965] [] ? __flush_cpu_slab+0x40/0x40 03:14:12 DEBUG| [stdout] [10021.274968] [] __kmem_cache_shutdown+0x42/0x80 03:14:12 DEBUG| [stdout] [10021.274971] [] kmem_cache_destroy+0x162/0x1e0 03:14:12 DEBUG| [stdout] [10021.274995] [] extent_map_exit+0x16/0x20 [btrfs] 03:14:12 DEBUG| [stdout] [10021.275017] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:14:12 DEBUG| [stdout] [10021.275024] [] SyS_delete_module+0x1af/0x200 03:14:12 DEBUG| [stdout] [10021.275031] [] ? ____fput+0xd/0x10 03:14:12 DEBUG| [stdout] [10021.275039] [] ? task_work_run+0x8f/0xa0 03:14:12 DEBUG| [stdout] [10021.275044] [] ? exit_to_usermode_loop+0xb6/0xe0 03:14:12 DEBUG| [stdout] [10021.275046] [] do_fast_syscall_32+0x9f/0x160 03:14:12 DEBUG| [stdout] [10021.275049] [] sysenter_past_esp+0x3d/0x61 03:14:12 DEBUG| [stdout] [10021.275053] INFO: Object 0xe91c20f0 @offset=240 03:14:12 DEBUG| [stdout] [10021.329322] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects 03:14:12 DEBUG| [stdout] [10021.414816] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:14:12 DEBUG| [stdout] [10021.414818] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:14:12 DEBUG| [stdout] [10021.414819] c1b13967 c3ac6054 00000286 c007bed4 c13c0a9f f57d3240 f57d32b4 c007bf0c 03:14:12 DEBUG| [stdout] [10021.414823] c119e9a0 c1a1b0a4 ecc53780 c007bf04 000d992b c007beec c007beec c007bef4 03:14:12 DEBUG| [stdout] [10021.414827] c007bef4 c3ac6054 01e8ef1c f8f4c880 c007a000 c007bf14 f8ec4f86 c007bf1c 03:14:12 DEBUG| [stdout] [10021.414831] Call Trace: 03:14:12 DEBUG| [stdout] [10021.414834] [] dump_stack+0x58/0x79 03:14:12 DEBUG| [stdout] [10021.414836] [] kmem_cache_destroy+0x1b0/0x1e0 03:14:12 DEBUG| [stdout] [10021.414852] [] extent_map_exit+0x16/0x20 [btrfs] 03:14:12 DEBUG| [stdout] [10021.414867] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:14:12 DEBUG| [stdout] [10021.414870] [] SyS_delete_module+0x1af/0x200 03:14:12 DEBUG| [stdout] [10021.414872] [] ? ____fput+0xd/0x10 03:14:12 DEBUG| [stdout] [10021.414874] [] ? task_work_run+0x8f/0xa0 03:14:12 DEBUG| [stdout] [10021.414877] [] ? exit_to_usermode_loop+0xb6/0xe0 03:14:12 DEBUG| [stdout] [10021.414879] [] do_fast_syscall_32+0x9f/0x160 03:14:12 DEBUG| [stdout] [10021.414881] [] sysenter_past_esp+0x3d/0x61 03:14:12 DEBUG| [stdout] [10021.484487] Btrfs loaded 03:14:12 DEBUG| [stdout] [10021.504003] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 6 /dev/loop0 03:14:12 DEBUG| [stdout] [10021.556169] BTRFS info (device loop0): allowing degraded mounts 03:14:12 DEBUG| [stdout] [10021.556172] BTRFS info (device loop0): disk space caching is enabled 03:14:12 DEBUG| [stdout] [10021.556174] BTRFS: has skinny extents 03:14:12 DEBUG| [stdout] [10021.556175] BTRFS: flagging fs with big metadata feature 03:14:12 DEBUG| [stdout] [10021.558963] BTRFS warning (device loop0): devid 2 uuid b697c36a-0819-40d2-a786-d5c02bc8aee7 is missing 03:14:12 DEBUG| [stdout] [10021.731386] BTRFS info (device loop0): relocating block group 676855808 flags 2 03:14:12 DEBUG| [stdout] [10021.867212] BTRFS info (device loop0): relocating block group 20971520 flags 18 03:14:12 DEBUG| [stdout] [10022.075180] BTRFS info (device loop0): disk added /dev/loop3 03:14:12 DEBUG| [stdout] [10022.264317] Test e755f780865221252ef3321215c9796b78e7b1c5 returned 0 03:14:12 DEBUG| [stdout] 03:14:12 DEBUG| [stdout] FAIL: e755f780865221252ef3321215c9796b78e7b1c5 (ret=1) 03:14:12 DEBUG| [stdout] 03:14:12 ERROR| Exception escaping from test: Traceback (most recent call last): File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec _call_test_function(self.execute, *p_args, **p_dargs) File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function return func(*args, **dargs) File "/home/ubuntu/autotest/client/shared/test.py", line 291, in execute postprocess_profiled_run, args, dargs) File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once self.run_once(*args, **dargs) File "/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.py", line 73, in run_once self.results = utils.system_output(cmd, retain_output=True) File "/home/ubuntu/autotest/client/shared/utils.py", line 1267, in system_output verbose=verbose, args=args).stdout File "/home/ubuntu/autotest/client/shared/utils.py", line 918, in run "Command returned non-zero exit status") CmdError: Command &1> failed, rc=1, Command returned non-zero exit status * Command: BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home /ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kerne l_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fi xes/e755f780865221252ef3321215c9796b78e7b1c5.sh 2>&1 Exit status: 1 Duration: 12.1460478306 stdout: Invoking test e755f780865221252ef3321215c9796b78e7b1c5 fix e755f780865221252ef3321215c9796b78e7b1c5 btrfs: fix null pointer dereference in clone_fs_devices when name is null when one of the device path is missing btrfs_device name is null. So this patch will check for that. mount: /dev/loop0 is write-protected, mounting read-only Performing full device TRIM (2.00GiB) ... mount failed, kernel bug: [10020.402730] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 3 /dev/loop0 [10020.406816] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 2 transid 3 /dev/loop2 [10020.840655] ============================================================================= [10020.938559] BUG btrfs_extent_map (Tainted: G B ): Objects remaining in btrfs_extent_map on kmem_cache_close() [10021.069713] ----------------------------------------------------------------------------- [10021.185267] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c2690 flags=0x2800080 [10021.274925] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu [10021.274927] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [10021.274928] c1b13967 c3ac6054 00000286 c007bddc c13c0a9f f7369650 c007bdfc c007be70 [10021.274933] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c2690 02800080 656a624f [10021.274937] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 [10021.274941] Call Trace: [10021.274947] [] dump_stack+0x58/0x79 [10021.274951] [] slab_err+0x82/0xa0 [10021.274953] [] ? __kmalloc+0x22d/0x240 [10021.274957] [] ? smp_call_function_many+0x1ad/0x220 [10021.274959] [] ? free_partial+0xa9/0x1b0 [10021.274961] [] ? free_partial+0xa9/0x1b0 [10021.274963] [] free_partial+0xce/0x1b0 [10021.274965] [] ? __flush_cpu_slab+0x40/0x40 [10021.274968] [] __kmem_cache_shutdown+0x42/0x80 [10021.274971] [] kmem_cache_destroy+0x162/0x1e0 [10021.274995] [] extent_map_exit+0x16/0x20 [btrfs] [10021.275017] [] exit_btrfs_fs+0x26/0x9c [btrfs] [10021.275024] [] SyS_delete_module+0x1af/0x200 [10021.275031] [] ? ____fput+0xd/0x10 [10021.275039] [] ? task_work_run+0x8f/0xa0 [10021.275044] [] ? exit_to_usermode_loop+0xb6/0xe0 [10021.275046] [] do_fast_syscall_32+0x9f/0x160 [10021.275049] [] sysenter_past_esp+0x3d/0x61 [10021.275053] INFO: Object 0xe91c20f0 @offset=240 [10021.329322] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects [10021.414816] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu [10021.414818] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [10021.414819] c1b13967 c3ac6054 00000286 c007bed4 c13c0a9f f57d3240 f57d32b4 c007bf0c [10021.414823] c119e9a0 c1a1b0a4 ecc53780 c007bf04 000d992b c007beec c007beec c007bef4 [10021.414827] c007bef4 c3ac6054 01e8ef1c f8f4c880 c007a000 c007bf14 f8ec4f86 c007bf1c [10021.414831] Call Trace: [10021.414834] [] dump_stack+0x58/0x79 [10021.414836] [] kmem_cache_destroy+0x1b0/0x1e0 [10021.414852] [] extent_map_exit+0x16/0x20 [btrfs] [10021.414867] [] exit_btrfs_fs+0x26/0x9c [btrfs] [10021.414870] [] SyS_delete_module+0x1af/0x200 [10021.414872] [] ? ____fput+0xd/0x10 [10021.414874] [] ? task_work_run+0x8f/0xa0 [10021.414877] [] ? exit_to_usermode_loop+0xb6/0xe0 [10021.414879] [] do_fast_syscall_32+0x9f/0x160 [10021.414881] [] sysenter_past_esp+0x3d/0x61 [10021.484487] Btrfs loaded [10021.504003] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 6 /dev/loop0 [10021.556169] BTRFS info (device loop0): allowing degraded mounts [10021.556172] BTRFS info (device loop0): disk space caching is enabled [10021.556174] BTRFS: has skinny extents [10021.556175] BTRFS: flagging fs with big metadata feature [10021.558963] BTRFS warning (device loop0): devid 2 uuid b697c36a-0819-40d2-a786-d5c02bc8aee7 is missing [10021.731386] BTRFS info (device loop0): relocating block group 676855808 flags 2 [10021.867212] BTRFS info (device loop0): relocating block group 20971520 flags 18 [10022.075180] BTRFS info (device loop0): disk added /dev/loop3 umount: /tmp/mnt-e755f780865221252ef3321215c9796b78e7b1c5: not mounted losetup: /dev/loop0: detach failed: No such device or address losetup: /dev/loop2: detach failed: No such device or address losetup: /dev/loop3: detach failed: No such device or address Found kernel issue: [10020.402730] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 3 /dev/loop0 [10020.406816] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 2 transid 3 /dev/loop2 [10020.840655] ============================================================================= [10020.938559] BUG btrfs_extent_map (Tainted: G B ): Objects remaining in btrfs_extent_map on kmem_cache_close() [10021.069713] ----------------------------------------------------------------------------- [10021.185267] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c2690 flags=0x2800080 [10021.274925] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu [10021.274927] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [10021.274928] c1b13967 c3ac6054 00000286 c007bddc c13c0a9f f7369650 c007bdfc c007be70 [10021.274933] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c2690 02800080 656a624f [10021.274937] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 [10021.274941] Call Trace: [10021.274947] [] dump_stack+0x58/0x79 [10021.274951] [] slab_err+0x82/0xa0 [10021.274953] [] ? __kmalloc+0x22d/0x240 [10021.274957] [] ? smp_call_function_many+0x1ad/0x220 [10021.274959] [] ? free_partial+0xa9/0x1b0 [10021.274961] [] ? free_partial+0xa9/0x1b0 [10021.274963] [] free_partial+0xce/0x1b0 [10021.274965] [] ? __flush_cpu_slab+0x40/0x40 [10021.274968] [] __kmem_cache_shutdown+0x42/0x80 [10021.274971] [] kmem_cache_destroy+0x162/0x1e0 [10021.274995] [] extent_map_exit+0x16/0x20 [btrfs] [10021.275017] [] exit_btrfs_fs+0x26/0x9c [btrfs] [10021.275024] [] SyS_delete_module+0x1af/0x200 [10021.275031] [] ? ____fput+0xd/0x10 [10021.275039] [] ? task_work_run+0x8f/0xa0 [10021.275044] [] ? exit_to_usermode_loop+0xb6/0xe0 [10021.275046] [] do_fast_syscall_32+0x9f/0x160 [10021.275049] [] sysenter_past_esp+0x3d/0x61 [10021.275053] INFO: Object 0xe91c20f0 @offset=240 [10021.329322] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects [10021.414816] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu [10021.414818] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [10021.414819] c1b13967 c3ac6054 00000286 c007bed4 c13c0a9f f57d3240 f57d32b4 c007bf0c [10021.414823] c119e9a0 c1a1b0a4 ecc53780 c007bf04 000d992b c007beec c007beec c007bef4 [10021.414827] c007bef4 c3ac6054 01e8ef1c f8f4c880 c007a000 c007bf14 f8ec4f86 c007bf1c [10021.414831] Call Trace: [10021.414834] [] dump_stack+0x58/0x79 [10021.414836] [] kmem_cache_destroy+0x1b0/0x1e0 [10021.414852] [] extent_map_exit+0x16/0x20 [btrfs] [10021.414867] [] exit_btrfs_fs+0x26/0x9c [btrfs] [10021.414870] [] SyS_delete_module+0x1af/0x200 [10021.414872] [] ? ____fput+0xd/0x10 [10021.414874] [] ? task_work_run+0x8f/0xa0 [10021.414877] [] ? exit_to_usermode_loop+0xb6/0xe0 [10021.414879] [] do_fast_syscall_32+0x9f/0x160 [10021.414881] [] sysenter_past_esp+0x3d/0x61 [10021.484487] Btrfs loaded [10021.504003] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 6 /dev/loop0 [10021.556169] BTRFS info (device loop0): allowing degraded mounts [10021.556172] BTRFS info (device loop0): disk space caching is enabled [10021.556174] BTRFS: has skinny extents [10021.556175] BTRFS: flagging fs with big metadata feature [10021.558963] BTRFS warning (device loop0): devid 2 uuid b697c36a-0819-40d2-a786-d5c02bc8aee7 is missing [10021.731386] BTRFS info (device loop0): relocating block group 676855808 flags 2 [10021.867212] BTRFS info (device loop0): relocating block group 20971520 flags 18 [10022.075180] BTRFS info (device loop0): disk added /dev/loop3 [10022.264317] Test e755f780865221252ef3321215c9796b78e7b1c5 returned 0 FAIL: e755f780865221252ef3321215c9796b78e7b1c5 (ret=1) 03:14:12 ERROR| child process failed 03:14:12 DEBUG| Traceback (most recent call last): 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/parallel.py", line 25, in fork_start 03:14:12 DEBUG| l() 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/job.py", line 505, in 03:14:12 DEBUG| l = lambda: test.runtest(self, url, tag, args, dargs) 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/test.py", line 125, in runtest 03:14:12 DEBUG| job.sysinfo.log_after_each_iteration) 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 913, in runtest 03:14:12 DEBUG| mytest._exec(args, dargs) 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec 03:14:12 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs) 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function 03:14:12 DEBUG| return func(*args, **dargs) 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 291, in execute 03:14:12 DEBUG| postprocess_profiled_run, args, dargs) 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once 03:14:12 DEBUG| self.run_once(*args, **dargs) 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.py", line 73, in run_once 03:14:12 DEBUG| self.results = utils.system_output(cmd, retain_output=True) 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 1267, in system_output 03:14:12 DEBUG| verbose=verbose, args=args).stdout 03:14:12 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 918, in run 03:14:12 DEBUG| "Command returned non-zero exit status") 03:14:12 DEBUG| CmdError: Command &1> failed, rc=1, Command returned non-zero exit status 03:14:12 DEBUG| * Command: 03:14:12 DEBUG| BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home 03:14:12 DEBUG| /ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kerne 03:14:12 DEBUG| l_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fi 03:14:12 DEBUG| xes/e755f780865221252ef3321215c9796b78e7b1c5.sh 2>&1 03:14:12 DEBUG| Exit status: 1 03:14:12 DEBUG| Duration: 12.1460478306 03:14:12 DEBUG| 03:14:12 DEBUG| stdout: 03:14:12 DEBUG| Invoking test e755f780865221252ef3321215c9796b78e7b1c5 03:14:12 DEBUG| 03:14:12 DEBUG| fix e755f780865221252ef3321215c9796b78e7b1c5 03:14:12 DEBUG| 03:14:12 DEBUG| btrfs: fix null pointer dereference in clone_fs_devices when name is null 03:14:12 DEBUG| 03:14:12 DEBUG| when one of the device path is missing btrfs_device name is null. So this 03:14:12 DEBUG| patch will check for that. 03:14:12 DEBUG| 03:14:12 DEBUG| mount: /dev/loop0 is write-protected, mounting read-only 03:14:12 DEBUG| Performing full device TRIM (2.00GiB) ... 03:14:12 DEBUG| mount failed, kernel bug: 03:14:12 DEBUG| [10020.402730] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 3 /dev/loop0 03:14:12 DEBUG| [10020.406816] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 2 transid 3 /dev/loop2 03:14:12 DEBUG| [10020.840655] ============================================================================= 03:14:12 DEBUG| [10020.938559] BUG btrfs_extent_map (Tainted: G B ): Objects remaining in btrfs_extent_map on kmem_cache_close() 03:14:12 DEBUG| [10021.069713] ----------------------------------------------------------------------------- 03:14:12 DEBUG| 03:14:12 DEBUG| [10021.185267] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c2690 flags=0x2800080 03:14:12 DEBUG| [10021.274925] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:14:12 DEBUG| [10021.274927] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:14:12 DEBUG| [10021.274928] c1b13967 c3ac6054 00000286 c007bddc c13c0a9f f7369650 c007bdfc c007be70 03:14:12 DEBUG| [10021.274933] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c2690 02800080 656a624f 03:14:12 DEBUG| [10021.274937] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 03:14:12 DEBUG| [10021.274941] Call Trace: 03:14:12 DEBUG| [10021.274947] [] dump_stack+0x58/0x79 03:14:12 DEBUG| [10021.274951] [] slab_err+0x82/0xa0 03:14:12 DEBUG| [10021.274953] [] ? __kmalloc+0x22d/0x240 03:14:12 DEBUG| [10021.274957] [] ? smp_call_function_many+0x1ad/0x220 03:14:12 DEBUG| [10021.274959] [] ? free_partial+0xa9/0x1b0 03:14:12 DEBUG| [10021.274961] [] ? free_partial+0xa9/0x1b0 03:14:12 DEBUG| [10021.274963] [] free_partial+0xce/0x1b0 03:14:12 DEBUG| [10021.274965] [] ? __flush_cpu_slab+0x40/0x40 03:14:12 DEBUG| [10021.274968] [] __kmem_cache_shutdown+0x42/0x80 03:14:12 DEBUG| [10021.274971] [] kmem_cache_destroy+0x162/0x1e0 03:14:12 DEBUG| [10021.274995] [] extent_map_exit+0x16/0x20 [btrfs] 03:14:12 DEBUG| [10021.275017] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:14:12 DEBUG| [10021.275024] [] SyS_delete_module+0x1af/0x200 03:14:12 DEBUG| [10021.275031] [] ? ____fput+0xd/0x10 03:14:12 DEBUG| [10021.275039] [] ? task_work_run+0x8f/0xa0 03:14:12 DEBUG| [10021.275044] [] ? exit_to_usermode_loop+0xb6/0xe0 03:14:12 DEBUG| [10021.275046] [] do_fast_syscall_32+0x9f/0x160 03:14:12 DEBUG| [10021.275049] [] sysenter_past_esp+0x3d/0x61 03:14:12 DEBUG| [10021.275053] INFO: Object 0xe91c20f0 @offset=240 03:14:12 DEBUG| [10021.329322] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects 03:14:12 DEBUG| [10021.414816] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:14:12 DEBUG| [10021.414818] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:14:12 DEBUG| [10021.414819] c1b13967 c3ac6054 00000286 c007bed4 c13c0a9f f57d3240 f57d32b4 c007bf0c 03:14:12 DEBUG| [10021.414823] c119e9a0 c1a1b0a4 ecc53780 c007bf04 000d992b c007beec c007beec c007bef4 03:14:12 DEBUG| [10021.414827] c007bef4 c3ac6054 01e8ef1c f8f4c880 c007a000 c007bf14 f8ec4f86 c007bf1c 03:14:12 DEBUG| [10021.414831] Call Trace: 03:14:12 DEBUG| [10021.414834] [] dump_stack+0x58/0x79 03:14:12 DEBUG| [10021.414836] [] kmem_cache_destroy+0x1b0/0x1e0 03:14:12 DEBUG| [10021.414852] [] extent_map_exit+0x16/0x20 [btrfs] 03:14:12 DEBUG| [10021.414867] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:14:12 DEBUG| [10021.414870] [] SyS_delete_module+0x1af/0x200 03:14:12 DEBUG| [10021.414872] [] ? ____fput+0xd/0x10 03:14:12 DEBUG| [10021.414874] [] ? task_work_run+0x8f/0xa0 03:14:12 DEBUG| [10021.414877] [] ? exit_to_usermode_loop+0xb6/0xe0 03:14:12 DEBUG| [10021.414879] [] do_fast_syscall_32+0x9f/0x160 03:14:12 DEBUG| [10021.414881] [] sysenter_past_esp+0x3d/0x61 03:14:12 DEBUG| [10021.484487] Btrfs loaded 03:14:12 DEBUG| [10021.504003] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 6 /dev/loop0 03:14:12 DEBUG| [10021.556169] BTRFS info (device loop0): allowing degraded mounts 03:14:12 DEBUG| [10021.556172] BTRFS info (device loop0): disk space caching is enabled 03:14:12 DEBUG| [10021.556174] BTRFS: has skinny extents 03:14:12 DEBUG| [10021.556175] BTRFS: flagging fs with big metadata feature 03:14:12 DEBUG| [10021.558963] BTRFS warning (device loop0): devid 2 uuid b697c36a-0819-40d2-a786-d5c02bc8aee7 is missing 03:14:12 DEBUG| [10021.731386] BTRFS info (device loop0): relocating block group 676855808 flags 2 03:14:12 DEBUG| [10021.867212] BTRFS info (device loop0): relocating block group 20971520 flags 18 03:14:12 DEBUG| [10022.075180] BTRFS info (device loop0): disk added /dev/loop3 03:14:12 DEBUG| umount: /tmp/mnt-e755f780865221252ef3321215c9796b78e7b1c5: not mounted 03:14:12 DEBUG| losetup: /dev/loop0: detach failed: No such device or address 03:14:12 DEBUG| losetup: /dev/loop2: detach failed: No such device or address 03:14:12 DEBUG| losetup: /dev/loop3: detach failed: No such device or address 03:14:12 DEBUG| 03:14:12 DEBUG| Found kernel issue: 03:14:12 DEBUG| 03:14:12 DEBUG| [10020.402730] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 3 /dev/loop0 03:14:12 DEBUG| [10020.406816] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 2 transid 3 /dev/loop2 03:14:12 DEBUG| [10020.840655] ============================================================================= 03:14:12 DEBUG| [10020.938559] BUG btrfs_extent_map (Tainted: G B ): Objects remaining in btrfs_extent_map on kmem_cache_close() 03:14:12 DEBUG| [10021.069713] ----------------------------------------------------------------------------- 03:14:12 DEBUG| 03:14:12 DEBUG| [10021.185267] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c2690 flags=0x2800080 03:14:12 DEBUG| [10021.274925] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:14:12 DEBUG| [10021.274927] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:14:12 DEBUG| [10021.274928] c1b13967 c3ac6054 00000286 c007bddc c13c0a9f f7369650 c007bdfc c007be70 03:14:12 DEBUG| [10021.274933] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c2690 02800080 656a624f 03:14:12 DEBUG| [10021.274937] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 03:14:12 DEBUG| [10021.274941] Call Trace: 03:14:12 DEBUG| [10021.274947] [] dump_stack+0x58/0x79 03:14:12 DEBUG| [10021.274951] [] slab_err+0x82/0xa0 03:14:12 DEBUG| [10021.274953] [] ? __kmalloc+0x22d/0x240 03:14:12 DEBUG| [10021.274957] [] ? smp_call_function_many+0x1ad/0x220 03:14:12 DEBUG| [10021.274959] [] ? free_partial+0xa9/0x1b0 03:14:12 DEBUG| [10021.274961] [] ? free_partial+0xa9/0x1b0 03:14:12 DEBUG| [10021.274963] [] free_partial+0xce/0x1b0 03:14:12 DEBUG| [10021.274965] [] ? __flush_cpu_slab+0x40/0x40 03:14:12 DEBUG| [10021.274968] [] __kmem_cache_shutdown+0x42/0x80 03:14:12 DEBUG| [10021.274971] [] kmem_cache_destroy+0x162/0x1e0 03:14:12 DEBUG| [10021.274995] [] extent_map_exit+0x16/0x20 [btrfs] 03:14:12 DEBUG| [10021.275017] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:14:12 DEBUG| [10021.275024] [] SyS_delete_module+0x1af/0x200 03:14:12 DEBUG| [10021.275031] [] ? ____fput+0xd/0x10 03:14:12 DEBUG| [10021.275039] [] ? task_work_run+0x8f/0xa0 03:14:12 DEBUG| [10021.275044] [] ? exit_to_usermode_loop+0xb6/0xe0 03:14:12 DEBUG| [10021.275046] [] do_fast_syscall_32+0x9f/0x160 03:14:12 DEBUG| [10021.275049] [] sysenter_past_esp+0x3d/0x61 03:14:12 DEBUG| [10021.275053] INFO: Object 0xe91c20f0 @offset=240 03:14:12 DEBUG| [10021.329322] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects 03:14:12 DEBUG| [10021.414816] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu 03:14:12 DEBUG| [10021.414818] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 03:14:12 DEBUG| [10021.414819] c1b13967 c3ac6054 00000286 c007bed4 c13c0a9f f57d3240 f57d32b4 c007bf0c 03:14:12 DEBUG| [10021.414823] c119e9a0 c1a1b0a4 ecc53780 c007bf04 000d992b c007beec c007beec c007bef4 03:14:12 DEBUG| [10021.414827] c007bef4 c3ac6054 01e8ef1c f8f4c880 c007a000 c007bf14 f8ec4f86 c007bf1c 03:14:12 DEBUG| [10021.414831] Call Trace: 03:14:12 DEBUG| [10021.414834] [] dump_stack+0x58/0x79 03:14:12 DEBUG| [10021.414836] [] kmem_cache_destroy+0x1b0/0x1e0 03:14:12 DEBUG| [10021.414852] [] extent_map_exit+0x16/0x20 [btrfs] 03:14:12 DEBUG| [10021.414867] [] exit_btrfs_fs+0x26/0x9c [btrfs] 03:14:12 DEBUG| [10021.414870] [] SyS_delete_module+0x1af/0x200 03:14:12 DEBUG| [10021.414872] [] ? ____fput+0xd/0x10 03:14:12 DEBUG| [10021.414874] [] ? task_work_run+0x8f/0xa0 03:14:12 DEBUG| [10021.414877] [] ? exit_to_usermode_loop+0xb6/0xe0 03:14:12 DEBUG| [10021.414879] [] do_fast_syscall_32+0x9f/0x160 03:14:12 DEBUG| [10021.414881] [] sysenter_past_esp+0x3d/0x61 03:14:12 DEBUG| [10021.484487] Btrfs loaded 03:14:12 DEBUG| [10021.504003] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 6 /dev/loop0 03:14:12 DEBUG| [10021.556169] BTRFS info (device loop0): allowing degraded mounts 03:14:12 DEBUG| [10021.556172] BTRFS info (device loop0): disk space caching is enabled 03:14:12 DEBUG| [10021.556174] BTRFS: has skinny extents 03:14:12 DEBUG| [10021.556175] BTRFS: flagging fs with big metadata feature 03:14:12 DEBUG| [10021.558963] BTRFS warning (device loop0): devid 2 uuid b697c36a-0819-40d2-a786-d5c02bc8aee7 is missing 03:14:12 DEBUG| [10021.731386] BTRFS info (device loop0): relocating block group 676855808 flags 2 03:14:12 DEBUG| [10021.867212] BTRFS info (device loop0): relocating block group 20971520 flags 18 03:14:12 DEBUG| [10022.075180] BTRFS info (device loop0): disk added /dev/loop3 03:14:12 DEBUG| [10022.264317] Test e755f780865221252ef3321215c9796b78e7b1c5 returned 0 03:14:12 DEBUG| 03:14:12 DEBUG| FAIL: e755f780865221252ef3321215c9796b78e7b1c5 (ret=1) 03:14:14 INFO | ERROR ubuntu_btrfs_kernel_fixes.e755f780865221252ef3321215c9796b78e7b1c5 ubuntu_btrfs_kernel_fixes.e755f780865221252ef3321215c9796b78e7b1c5 timestamp=1554866054 localtime=Apr 10 03:14:14 Command &1> failed, rc=1, Command returned non-zero exit status * Command: BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home /ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kerne l_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fi xes/e755f780865221252ef3321215c9796b78e7b1c5.sh 2>&1 Exit status: 1 Duration: 12.1460478306 stdout: Invoking test e755f780865221252ef3321215c9796b78e7b1c5 fix e755f780865221252ef3321215c9796b78e7b1c5 btrfs: fix null pointer dereference in clone_fs_devices when name is null when one of the device path is missing btrfs_device name is null. So this patch will check for that. mount: /dev/loop0 is write-protected, mounting read-only Performing full device TRIM (2.00GiB) ... mount failed, kernel bug: [10020.402730] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 3 /dev/loop0 [10020.406816] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 2 transid 3 /dev/loop2 [10020.840655] ============================================================================= [10020.938559] BUG btrfs_extent_map (Tainted: G B ): Objects remaining in btrfs_extent_map on kmem_cache_close() [10021.069713] ----------------------------------------------------------------------------- [10021.185267] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c2690 flags=0x2800080 [10021.274925] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu [10021.274927] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [10021.274928] c1b13967 c3ac6054 00000286 c007bddc c13c0a9f f7369650 c007bdfc c007be70 [10021.274933] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c2690 02800080 656a624f [10021.274937] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 [10021.274941] Call Trace: [10021.274947] [] dump_stack+0x58/0x79 [10021.274951] [] slab_err+0x82/0xa0 [10021.274953] [] ? __kmalloc+0x22d/0x240 [10021.274957] [] ? smp_call_function_many+0x1ad/0x220 [10021.274959] [] ? free_partial+0xa9/0x1b0 [10021.274961] [] ? free_partial+0xa9/0x1b0 [10021.274963] [] free_partial+0xce/0x1b0 [10021.274965] [] ? __flush_cpu_slab+0x40/0x40 [10021.274968] [] __kmem_cache_shutdown+0x42/0x80 [10021.274971] [] kmem_cache_destroy+0x162/0x1e0 [10021.274995] [] extent_map_exit+0x16/0x20 [btrfs] [10021.275017] [] exit_btrfs_fs+0x26/0x9c [btrfs] [10021.275024] [] SyS_delete_module+0x1af/0x200 [10021.275031] [] ? ____fput+0xd/0x10 [10021.275039] [] ? task_work_run+0x8f/0xa0 [10021.275044] [] ? exit_to_usermode_loop+0xb6/0xe0 [10021.275046] [] do_fast_syscall_32+0x9f/0x160 [10021.275049] [] sysenter_past_esp+0x3d/0x61 [10021.275053] INFO: Object 0xe91c20f0 @offset=240 [10021.329322] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects [10021.414816] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu [10021.414818] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [10021.414819] c1b13967 c3ac6054 00000286 c007bed4 c13c0a9f f57d3240 f57d32b4 c007bf0c [10021.414823] c119e9a0 c1a1b0a4 ecc53780 c007bf04 000d992b c007beec c007beec c007bef4 [10021.414827] c007bef4 c3ac6054 01e8ef1c f8f4c880 c007a000 c007bf14 f8ec4f86 c007bf1c [10021.414831] Call Trace: [10021.414834] [] dump_stack+0x58/0x79 [10021.414836] [] kmem_cache_destroy+0x1b0/0x1e0 [10021.414852] [] extent_map_exit+0x16/0x20 [btrfs] [10021.414867] [] exit_btrfs_fs+0x26/0x9c [btrfs] [10021.414870] [] SyS_delete_module+0x1af/0x200 [10021.414872] [] ? ____fput+0xd/0x10 [10021.414874] [] ? task_work_run+0x8f/0xa0 [10021.414877] [] ? exit_to_usermode_loop+0xb6/0xe0 [10021.414879] [] do_fast_syscall_32+0x9f/0x160 [10021.414881] [] sysenter_past_esp+0x3d/0x61 [10021.484487] Btrfs loaded [10021.504003] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 6 /dev/loop0 [10021.556169] BTRFS info (device loop0): allowing degraded mounts [10021.556172] BTRFS info (device loop0): disk space caching is enabled [10021.556174] BTRFS: has skinny extents [10021.556175] BTRFS: flagging fs with big metadata feature [10021.558963] BTRFS warning (device loop0): devid 2 uuid b697c36a-0819-40d2-a786-d5c02bc8aee7 is missing [10021.731386] BTRFS info (device loop0): relocating block group 676855808 flags 2 [10021.867212] BTRFS info (device loop0): relocating block group 20971520 flags 18 [10022.075180] BTRFS info (device loop0): disk added /dev/loop3 umount: /tmp/mnt-e755f780865221252ef3321215c9796b78e7b1c5: not mounted losetup: /dev/loop0: detach failed: No such device or address losetup: /dev/loop2: detach failed: No such device or address losetup: /dev/loop3: detach failed: No such device or address Found kernel issue: [10020.402730] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 3 /dev/loop0 [10020.406816] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 2 transid 3 /dev/loop2 [10020.840655] ============================================================================= [10020.938559] BUG btrfs_extent_map (Tainted: G B ): Objects remaining in btrfs_extent_map on kmem_cache_close() [10021.069713] ----------------------------------------------------------------------------- [10021.185267] INFO: Slab 0xf7369650 objects=34 used=1 fp=0xe91c2690 flags=0x2800080 [10021.274925] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu [10021.274927] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [10021.274928] c1b13967 c3ac6054 00000286 c007bddc c13c0a9f f7369650 c007bdfc c007be70 [10021.274933] c11cd042 c1a1c83c f7369650 00000022 00000001 e91c2690 02800080 656a624f [10021.274937] 20737463 616d6572 6e696e69 6e692067 72746220 655f7366 6e657478 616d5f74 [10021.274941] Call Trace: [10021.274947] [] dump_stack+0x58/0x79 [10021.274951] [] slab_err+0x82/0xa0 [10021.274953] [] ? __kmalloc+0x22d/0x240 [10021.274957] [] ? smp_call_function_many+0x1ad/0x220 [10021.274959] [] ? free_partial+0xa9/0x1b0 [10021.274961] [] ? free_partial+0xa9/0x1b0 [10021.274963] [] free_partial+0xce/0x1b0 [10021.274965] [] ? __flush_cpu_slab+0x40/0x40 [10021.274968] [] __kmem_cache_shutdown+0x42/0x80 [10021.274971] [] kmem_cache_destroy+0x162/0x1e0 [10021.274995] [] extent_map_exit+0x16/0x20 [btrfs] [10021.275017] [] exit_btrfs_fs+0x26/0x9c [btrfs] [10021.275024] [] SyS_delete_module+0x1af/0x200 [10021.275031] [] ? ____fput+0xd/0x10 [10021.275039] [] ? task_work_run+0x8f/0xa0 [10021.275044] [] ? exit_to_usermode_loop+0xb6/0xe0 [10021.275046] [] do_fast_syscall_32+0x9f/0x160 [10021.275049] [] sysenter_past_esp+0x3d/0x61 [10021.275053] INFO: Object 0xe91c20f0 @offset=240 [10021.329322] kmem_cache_destroy btrfs_extent_map: Slab cache still has objects [10021.414816] CPU: 6 PID: 30129 Comm: modprobe Tainted: G B 4.4.0-146-generic #172-Ubuntu [10021.414818] Hardware name: Dell Inc. PowerEdge R310/05XKKK, BIOS 1.8.2 08/17/2011 [10021.414819] c1b13967 c3ac6054 00000286 c007bed4 c13c0a9f f57d3240 f57d32b4 c007bf0c [10021.414823] c119e9a0 c1a1b0a4 ecc53780 c007bf04 000d992b c007beec c007beec c007bef4 [10021.414827] c007bef4 c3ac6054 01e8ef1c f8f4c880 c007a000 c007bf14 f8ec4f86 c007bf1c [10021.414831] Call Trace: [10021.414834] [] dump_stack+0x58/0x79 [10021.414836] [] kmem_cache_destroy+0x1b0/0x1e0 [10021.414852] [] extent_map_exit+0x16/0x20 [btrfs] [10021.414867] [] exit_btrfs_fs+0x26/0x9c [btrfs] [10021.414870] [] SyS_delete_module+0x1af/0x200 [10021.414872] [] ? ____fput+0xd/0x10 [10021.414874] [] ? task_work_run+0x8f/0xa0 [10021.414877] [] ? exit_to_usermode_loop+0xb6/0xe0 [10021.414879] [] do_fast_syscall_32+0x9f/0x160 [10021.414881] [] sysenter_past_esp+0x3d/0x61 [10021.484487] Btrfs loaded [10021.504003] BTRFS: device fsid f876886a-20db-4878-b639-b71749a702cf devid 1 transid 6 /dev/loop0 [10021.556169] BTRFS info (device loop0): allowing degraded mounts [10021.556172] BTRFS info (device loop0): disk space caching is enabled [10021.556174] BTRFS: has skinny extents [10021.556175] BTRFS: flagging fs with big metadata feature [10021.558963] BTRFS warning (device loop0): devid 2 uuid b697c36a-0819-40d2-a786-d5c02bc8aee7 is missing [10021.731386] BTRFS info (device loop0): relocating block group 676855808 flags 2 [10021.867212] BTRFS info (device loop0): relocating block group 20971520 flags 18 [10022.075180] BTRFS info (device loop0): disk added /dev/loop3 [10022.264317] Test e755f780865221252ef3321215c9796b78e7b1c5 returned 0 FAIL: e755f780865221252ef3321215c9796b78e7b1c5 (ret=1) 03:14:14 INFO | END ERROR ubuntu_btrfs_kernel_fixes.e755f780865221252ef3321215c9796b78e7b1c5 ubuntu_btrfs_kernel_fixes.e755f780865221252ef3321215c9796b78e7b1c5 timestamp=1554866054 localtime=Apr 10 03:14:14 03:14:14 DEBUG| Persistent state client._record_indent now set to 1 03:14:14 DEBUG| Persistent state client.unexpected_reboot deleted 03:14:14 INFO | Invoking test: f085381e6d08f4c8d6882825f31accd455c54d70.sh 03:14:14 DEBUG| Test has timeout: 7200 sec. 03:14:14 INFO | START ubuntu_btrfs_kernel_fixes.f085381e6d08f4c8d6882825f31accd455c54d70 ubuntu_btrfs_kernel_fixes.f085381e6d08f4c8d6882825f31accd455c54d70 timestamp=1554866054 timeout=7200 localtime=Apr 10 03:14:14 03:14:14 DEBUG| Persistent state client._record_indent now set to 2 03:14:14 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.f085381e6d08f4c8d6882825f31accd455c54d70', 'ubuntu_btrfs_kernel_fixes.f085381e6d08f4c8d6882825f31accd455c54d70') 03:14:14 DEBUG| Waiting for pid 30225 for 7200 seconds 03:14:14 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/f085381e6d08f4c8d6882825f31accd455c54d70.sh 2>&1' 03:14:14 DEBUG| [stdout] Invoking test f085381e6d08f4c8d6882825f31accd455c54d70 03:14:14 DEBUG| [stdout] 03:14:14 DEBUG| [stdout] fix f085381e6d08f4c8d6882825f31accd455c54d70 03:14:14 DEBUG| [stdout] 03:14:14 DEBUG| [stdout] btrfs: fix null pointer deference at btrfs_sysfs_add_one+0x105 03:14:14 DEBUG| [stdout] 03:14:14 DEBUG| [stdout] bdev is null when disk has disappeared and mounted with 03:14:14 DEBUG| [stdout] the degrade option 03:14:14 DEBUG| [stdout] 03:14:14 DEBUG| [stdout] stack trace 03:14:14 DEBUG| [stdout] --------- 03:14:14 DEBUG| [stdout] btrfs_sysfs_add_one+0x105/0x1c0 [btrfs] 03:14:14 DEBUG| [stdout] open_ctree+0x15f3/0x1fe0 [btrfs] 03:14:14 DEBUG| [stdout] btrfs_mount+0x5db/0x790 [btrfs] 03:14:14 DEBUG| [stdout] ? alloc_pages_current+0xa4/0x160 03:14:14 DEBUG| [stdout] mount_fs+0x34/0x1b0 03:14:14 DEBUG| [stdout] vfs_kern_mount+0x62/0xf0 03:14:14 DEBUG| [stdout] do_mount+0x22e/0xa80 03:14:14 DEBUG| [stdout] ? __get_free_pages+0x9/0x40 03:14:14 DEBUG| [stdout] ? copy_mount_options+0x31/0x170 03:14:14 DEBUG| [stdout] SyS_mount+0x7e/0xc0 03:14:14 DEBUG| [stdout] system_call_fastpath+0x16/0x1b 03:14:14 DEBUG| [stdout] --------- 03:14:14 DEBUG| [stdout] 03:14:14 DEBUG| [stdout] reproducer: 03:14:14 DEBUG| [stdout] ------- 03:14:14 DEBUG| [stdout] mkfs.btrfs -draid1 -mraid1 /dev/sdc /dev/sdd 03:14:14 DEBUG| [stdout] (detach a disk) 03:14:14 DEBUG| [stdout] devmgt detach /dev/sdc [1] 03:14:14 DEBUG| [stdout] mount -o degrade /dev/sdd /btrfs 03:14:14 DEBUG| [stdout] ------- 03:14:14 DEBUG| [stdout] 03:14:25 DEBUG| [stdout] 03:14:25 DEBUG| [stdout] PASS: f085381e6d08f4c8d6882825f31accd455c54d70 03:14:25 DEBUG| [stdout] 03:14:26 INFO | GOOD ubuntu_btrfs_kernel_fixes.f085381e6d08f4c8d6882825f31accd455c54d70 ubuntu_btrfs_kernel_fixes.f085381e6d08f4c8d6882825f31accd455c54d70 timestamp=1554866066 localtime=Apr 10 03:14:26 completed successfully 03:14:26 INFO | END GOOD ubuntu_btrfs_kernel_fixes.f085381e6d08f4c8d6882825f31accd455c54d70 ubuntu_btrfs_kernel_fixes.f085381e6d08f4c8d6882825f31accd455c54d70 timestamp=1554866066 localtime=Apr 10 03:14:26 03:14:26 DEBUG| Persistent state client._record_indent now set to 1 03:14:26 DEBUG| Persistent state client.unexpected_reboot deleted 03:14:26 INFO | Invoking test: f0dd9592a1aa014b3a01aa2be7e795aae040d65b.sh 03:14:26 DEBUG| Test has timeout: 7200 sec. 03:14:26 INFO | START ubuntu_btrfs_kernel_fixes.f0dd9592a1aa014b3a01aa2be7e795aae040d65b ubuntu_btrfs_kernel_fixes.f0dd9592a1aa014b3a01aa2be7e795aae040d65b timestamp=1554866066 timeout=7200 localtime=Apr 10 03:14:26 03:14:26 DEBUG| Persistent state client._record_indent now set to 2 03:14:26 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.f0dd9592a1aa014b3a01aa2be7e795aae040d65b', 'ubuntu_btrfs_kernel_fixes.f0dd9592a1aa014b3a01aa2be7e795aae040d65b') 03:14:26 DEBUG| Waiting for pid 30302 for 7200 seconds 03:14:26 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/f0dd9592a1aa014b3a01aa2be7e795aae040d65b.sh 2>&1' 03:14:26 DEBUG| [stdout] Invoking test f0dd9592a1aa014b3a01aa2be7e795aae040d65b 03:14:26 DEBUG| [stdout] 03:14:26 DEBUG| [stdout] fix f0dd9592a1aa014b3a01aa2be7e795aae040d65b 03:14:26 DEBUG| [stdout] 03:14:26 DEBUG| [stdout] Btrfs: fix direct-io vs nodatacow 03:14:26 DEBUG| [stdout] 03:14:26 DEBUG| [stdout] To reproduce the bug: 03:14:26 DEBUG| [stdout] 03:14:26 DEBUG| [stdout] # mount -o nodatacow /dev/sda7 /mnt/ 03:14:26 DEBUG| [stdout] # dd if=/dev/zero of=/mnt/tmp bs=4K count=1 03:14:26 DEBUG| [stdout] 1+0 records in 03:14:26 DEBUG| [stdout] 1+0 records out 03:14:26 DEBUG| [stdout] 4096 bytes (4.1 kB) copied, 0.000136115 s, 30.1 MB/s 03:14:26 DEBUG| [stdout] # dd if=/dev/zero of=/mnt/tmp bs=4K count=1 conv=notrunc oflag=direct 03:14:26 DEBUG| [stdout] dd: writing '/mnt/tmp': Input/output error 03:14:26 DEBUG| [stdout] 1+0 records in 03:14:26 DEBUG| [stdout] 0+0 records out 03:14:26 DEBUG| [stdout] 03:14:26 DEBUG| [stdout] btrfs_ordered_update_i_size() may return 1, but btrfs_endio_direct_write() 03:14:26 DEBUG| [stdout] mistakenly takes it as an error. 03:14:26 DEBUG| [stdout] 03:14:27 DEBUG| [stdout] 1+0 records in 03:14:27 DEBUG| [stdout] 1+0 records out 03:14:27 DEBUG| [stdout] 4096 bytes (4.1 kB, 4.0 KiB) copied, 0.000123475 s, 33.2 MB/s 03:14:27 DEBUG| [stdout] 1+0 records in 03:14:27 DEBUG| [stdout] 1+0 records out 03:14:27 DEBUG| [stdout] 4096 bytes (4.1 kB, 4.0 KiB) copied, 0.00989357 s, 414 kB/s 03:14:37 DEBUG| [stdout] 03:14:37 DEBUG| [stdout] PASS: f0dd9592a1aa014b3a01aa2be7e795aae040d65b 03:14:37 DEBUG| [stdout] 03:14:38 INFO | GOOD ubuntu_btrfs_kernel_fixes.f0dd9592a1aa014b3a01aa2be7e795aae040d65b ubuntu_btrfs_kernel_fixes.f0dd9592a1aa014b3a01aa2be7e795aae040d65b timestamp=1554866078 localtime=Apr 10 03:14:38 completed successfully 03:14:38 INFO | END GOOD ubuntu_btrfs_kernel_fixes.f0dd9592a1aa014b3a01aa2be7e795aae040d65b ubuntu_btrfs_kernel_fixes.f0dd9592a1aa014b3a01aa2be7e795aae040d65b timestamp=1554866078 localtime=Apr 10 03:14:38 03:14:39 DEBUG| Persistent state client._record_indent now set to 1 03:14:39 DEBUG| Persistent state client.unexpected_reboot deleted 03:14:39 INFO | Invoking test: f106e82caaa0d943e47cacc184f5b40d538e0044.sh 03:14:39 DEBUG| Test has timeout: 7200 sec. 03:14:39 INFO | START ubuntu_btrfs_kernel_fixes.f106e82caaa0d943e47cacc184f5b40d538e0044 ubuntu_btrfs_kernel_fixes.f106e82caaa0d943e47cacc184f5b40d538e0044 timestamp=1554866079 timeout=7200 localtime=Apr 10 03:14:39 03:14:39 DEBUG| Persistent state client._record_indent now set to 2 03:14:39 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.f106e82caaa0d943e47cacc184f5b40d538e0044', 'ubuntu_btrfs_kernel_fixes.f106e82caaa0d943e47cacc184f5b40d538e0044') 03:14:39 DEBUG| Waiting for pid 30386 for 7200 seconds 03:14:39 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/f106e82caaa0d943e47cacc184f5b40d538e0044.sh 2>&1' 03:14:39 DEBUG| [stdout] Invoking test f106e82caaa0d943e47cacc184f5b40d538e0044 03:14:39 DEBUG| [stdout] 03:14:39 DEBUG| [stdout] fix f106e82caaa0d943e47cacc184f5b40d538e0044 03:14:39 DEBUG| [stdout] 03:14:39 DEBUG| [stdout] Btrfs: Fix a crash when mounting a subvolume 03:14:39 DEBUG| [stdout] 03:14:39 DEBUG| [stdout] We should drop dentry before deactivating the superblock, otherwise 03:14:39 DEBUG| [stdout] we can hit this bug: 03:14:39 DEBUG| [stdout] 03:14:39 DEBUG| [stdout] BUG: Dentry f349a690{i=100,n=/} still in use (1) [unmount of btrfs loop1] 03:14:39 DEBUG| [stdout] ... 03:14:39 DEBUG| [stdout] 03:14:39 DEBUG| [stdout] Steps to reproduce the bug: 03:14:39 DEBUG| [stdout] 03:14:39 DEBUG| [stdout] # mount /dev/loop1 /mnt 03:14:39 DEBUG| [stdout] # mkdir save 03:14:39 DEBUG| [stdout] # btrfs subvolume snapshot /mnt save/snap1 03:14:39 DEBUG| [stdout] # umount /mnt 03:14:39 DEBUG| [stdout] # mount -o subvol=save/snap1 /dev/loop1 /mnt 03:14:39 DEBUG| [stdout] (crash) 03:14:39 DEBUG| [stdout] 03:14:39 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-f106e82caaa0d943e47cacc184f5b40d538e0044' in '/tmp/mnt-f106e82caaa0d943e47cacc184f5b40d538e0044/save/snap1' 03:14:49 DEBUG| [stdout] 03:14:49 DEBUG| [stdout] PASS: f106e82caaa0d943e47cacc184f5b40d538e0044 03:14:49 DEBUG| [stdout] 03:14:51 INFO | GOOD ubuntu_btrfs_kernel_fixes.f106e82caaa0d943e47cacc184f5b40d538e0044 ubuntu_btrfs_kernel_fixes.f106e82caaa0d943e47cacc184f5b40d538e0044 timestamp=1554866091 localtime=Apr 10 03:14:51 completed successfully 03:14:51 INFO | END GOOD ubuntu_btrfs_kernel_fixes.f106e82caaa0d943e47cacc184f5b40d538e0044 ubuntu_btrfs_kernel_fixes.f106e82caaa0d943e47cacc184f5b40d538e0044 timestamp=1554866091 localtime=Apr 10 03:14:51 03:14:51 DEBUG| Persistent state client._record_indent now set to 1 03:14:51 DEBUG| Persistent state client.unexpected_reboot deleted 03:14:51 INFO | Invoking test: f63e0cca9174dd8b47380f61565ab7b921d6ac2c.sh 03:14:51 DEBUG| Test has timeout: 7200 sec. 03:14:51 INFO | START ubuntu_btrfs_kernel_fixes.f63e0cca9174dd8b47380f61565ab7b921d6ac2c ubuntu_btrfs_kernel_fixes.f63e0cca9174dd8b47380f61565ab7b921d6ac2c timestamp=1554866091 timeout=7200 localtime=Apr 10 03:14:51 03:14:51 DEBUG| Persistent state client._record_indent now set to 2 03:14:51 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.f63e0cca9174dd8b47380f61565ab7b921d6ac2c', 'ubuntu_btrfs_kernel_fixes.f63e0cca9174dd8b47380f61565ab7b921d6ac2c') 03:14:51 DEBUG| Waiting for pid 30496 for 7200 seconds 03:14:51 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/f63e0cca9174dd8b47380f61565ab7b921d6ac2c.sh 2>&1' 03:14:51 DEBUG| [stdout] Invoking test f63e0cca9174dd8b47380f61565ab7b921d6ac2c 03:14:51 DEBUG| [stdout] 03:14:51 DEBUG| [stdout] fix f63e0cca9174dd8b47380f61565ab7b921d6ac2c 03:14:51 DEBUG| [stdout] 03:14:51 DEBUG| [stdout] btrfs: ignore device open failures in __btrfs_open_devices 03:14:51 DEBUG| [stdout] 03:14:51 DEBUG| [stdout] This: 03:14:51 DEBUG| [stdout] 03:14:51 DEBUG| [stdout] # mkfs.btrfs /dev/sdb{1,2} ; wipefs -a /dev/sdb1; mount /dev/sdb2 /mnt/test 03:14:51 DEBUG| [stdout] 03:14:51 DEBUG| [stdout] would lead to a blkdev open/close mismatch when the mount fails, and 03:14:51 DEBUG| [stdout] a permanently busy (opened O_EXCL) sdb2: 03:14:51 DEBUG| [stdout] 03:14:51 DEBUG| [stdout] # wipefs -a /dev/sdb2 03:14:51 DEBUG| [stdout] wipefs: error: /dev/sdb2: probing initialization failed: Device or resource busy 03:14:51 DEBUG| [stdout] 03:14:51 DEBUG| [stdout] It's because btrfs_open_devices() may open some devices, fail on 03:14:51 DEBUG| [stdout] the last one, and return that failure stored in "ret." The mount 03:14:51 DEBUG| [stdout] then fails, but the caller then does not clean up the open devices. 03:14:51 DEBUG| [stdout] 03:14:51 DEBUG| [stdout] /dev/loop0: 8 bytes were erased at offset 0x00010040 (btrfs): 5f 42 48 52 66 53 5f 4d 03:14:51 DEBUG| [stdout] /dev/loop2: 8 bytes were erased at offset 0x00010040 (btrfs): 5f 42 48 52 66 53 5f 4d 03:15:02 DEBUG| [stdout] 03:15:02 DEBUG| [stdout] PASS: f63e0cca9174dd8b47380f61565ab7b921d6ac2c 03:15:02 DEBUG| [stdout] 03:15:03 INFO | GOOD ubuntu_btrfs_kernel_fixes.f63e0cca9174dd8b47380f61565ab7b921d6ac2c ubuntu_btrfs_kernel_fixes.f63e0cca9174dd8b47380f61565ab7b921d6ac2c timestamp=1554866103 localtime=Apr 10 03:15:03 completed successfully 03:15:03 INFO | END GOOD ubuntu_btrfs_kernel_fixes.f63e0cca9174dd8b47380f61565ab7b921d6ac2c ubuntu_btrfs_kernel_fixes.f63e0cca9174dd8b47380f61565ab7b921d6ac2c timestamp=1554866103 localtime=Apr 10 03:15:03 03:15:03 DEBUG| Persistent state client._record_indent now set to 1 03:15:03 DEBUG| Persistent state client.unexpected_reboot deleted 03:15:03 INFO | Invoking test: f70a9a6b94af86fca069a7552ab672c31b457786.sh 03:15:03 DEBUG| Test has timeout: 7200 sec. 03:15:03 INFO | START ubuntu_btrfs_kernel_fixes.f70a9a6b94af86fca069a7552ab672c31b457786 ubuntu_btrfs_kernel_fixes.f70a9a6b94af86fca069a7552ab672c31b457786 timestamp=1554866103 timeout=7200 localtime=Apr 10 03:15:03 03:15:03 DEBUG| Persistent state client._record_indent now set to 2 03:15:03 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.f70a9a6b94af86fca069a7552ab672c31b457786', 'ubuntu_btrfs_kernel_fixes.f70a9a6b94af86fca069a7552ab672c31b457786') 03:15:03 DEBUG| Waiting for pid 30592 for 7200 seconds 03:15:03 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/f70a9a6b94af86fca069a7552ab672c31b457786.sh 2>&1' 03:15:03 DEBUG| [stdout] Invoking test f70a9a6b94af86fca069a7552ab672c31b457786 03:15:03 DEBUG| [stdout] 03:15:03 DEBUG| [stdout] fix f70a9a6b94af86fca069a7552ab672c31b457786 03:15:03 DEBUG| [stdout] 03:15:03 DEBUG| [stdout] Btrfs: fix btrfsck error 400 when truncating a compressed 03:15:03 DEBUG| [stdout] 03:15:03 DEBUG| [stdout] Reproduce steps: 03:15:03 DEBUG| [stdout] # mkfs.btrfs /dev/sdb5 03:15:03 DEBUG| [stdout] # mount /dev/sdb5 -o compress=lzo /mnt 03:15:03 DEBUG| [stdout] # dd if=/dev/zero of=/mnt/tmpfile bs=128K count=1 03:15:03 DEBUG| [stdout] # sync 03:15:03 DEBUG| [stdout] # truncate -s 64K /mnt/tmpfile 03:15:03 DEBUG| [stdout] root 5 inode 257 errors 400 03:15:03 DEBUG| [stdout] 03:15:03 DEBUG| [stdout] This is because of the wrong if condition, which is used to check if we should 03:15:03 DEBUG| [stdout] subtract the bytes of the dropped range from i_blocks/i_bytes of i-node or not. 03:15:03 DEBUG| [stdout] When we truncate a compressed extent, btrfs substracts the bytes of the whole 03:15:03 DEBUG| [stdout] extent, it's wrong. We should substract the real size that we truncate, no 03:15:03 DEBUG| [stdout] matter it is a compressed extent or not. Fix it. 03:15:03 DEBUG| [stdout] 03:15:03 DEBUG| [stdout] 1+0 records in 03:15:03 DEBUG| [stdout] 1+0 records out 03:15:03 DEBUG| [stdout] 131072 bytes (131 kB, 128 KiB) copied, 0.00023241 s, 564 MB/s 03:15:04 DEBUG| [stdout] checking extents 03:15:04 DEBUG| [stdout] checking free space cache 03:15:04 DEBUG| [stdout] checking fs roots 03:15:04 DEBUG| [stdout] checking csums 03:15:04 DEBUG| [stdout] checking root refs 03:15:04 DEBUG| [stdout] Checking filesystem on /dev/loop0 03:15:04 DEBUG| [stdout] UUID: 5a609d71-7ade-4d11-b254-6a671700def7 03:15:04 DEBUG| [stdout] found 135168 bytes used err is 0 03:15:04 DEBUG| [stdout] total csum bytes: 4 03:15:04 DEBUG| [stdout] total tree bytes: 131072 03:15:04 DEBUG| [stdout] total fs tree bytes: 32768 03:15:04 DEBUG| [stdout] total extent tree bytes: 16384 03:15:04 DEBUG| [stdout] btree space waste bytes: 124631 03:15:04 DEBUG| [stdout] file data blocks allocated: 4096 03:15:04 DEBUG| [stdout] referenced 65536 03:15:14 DEBUG| [stdout] 03:15:14 DEBUG| [stdout] PASS: f70a9a6b94af86fca069a7552ab672c31b457786 03:15:14 DEBUG| [stdout] 03:15:15 INFO | GOOD ubuntu_btrfs_kernel_fixes.f70a9a6b94af86fca069a7552ab672c31b457786 ubuntu_btrfs_kernel_fixes.f70a9a6b94af86fca069a7552ab672c31b457786 timestamp=1554866115 localtime=Apr 10 03:15:15 completed successfully 03:15:15 INFO | END GOOD ubuntu_btrfs_kernel_fixes.f70a9a6b94af86fca069a7552ab672c31b457786 ubuntu_btrfs_kernel_fixes.f70a9a6b94af86fca069a7552ab672c31b457786 timestamp=1554866115 localtime=Apr 10 03:15:15 03:15:15 DEBUG| Persistent state client._record_indent now set to 1 03:15:15 DEBUG| Persistent state client.unexpected_reboot deleted 03:15:15 INFO | Skipping blacklisted test: f88ba6a2a44ee98e8d59654463dc157bb6d13c43.sh 03:15:15 INFO | Invoking test: f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624.sh 03:15:15 DEBUG| Test has timeout: 7200 sec. 03:15:15 INFO | START ubuntu_btrfs_kernel_fixes.f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624 ubuntu_btrfs_kernel_fixes.f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624 timestamp=1554866115 timeout=7200 localtime=Apr 10 03:15:15 03:15:15 DEBUG| Persistent state client._record_indent now set to 2 03:15:15 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624', 'ubuntu_btrfs_kernel_fixes.f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624') 03:15:15 DEBUG| Waiting for pid 30678 for 7200 seconds 03:15:15 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624.sh 2>&1' 03:15:15 DEBUG| [stdout] Invoking test f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624 03:15:15 DEBUG| [stdout] 03:15:15 DEBUG| [stdout] fix f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624 03:15:15 DEBUG| [stdout] 03:15:15 DEBUG| [stdout] Btrfs: fix wrong error returned by adding a device 03:15:15 DEBUG| [stdout] 03:15:15 DEBUG| [stdout] [...] 03:15:15 DEBUG| [stdout] 03:15:15 DEBUG| [stdout] Since we mount with readonly options, and /dev/sdb7 is not a seeding one, 03:15:15 DEBUG| [stdout] a readonly notification is preferred. 03:15:15 DEBUG| [stdout] 03:15:15 DEBUG| [stdout] Signed-off-by: Liu Bo 03:15:15 DEBUG| [stdout] Reviewed-by: Josef Bacik 03:15:15 DEBUG| [stdout] 03:15:16 DEBUG| [stdout] Performing full device TRIM (256.00MiB) ... 03:15:16 DEBUG| [stdout] Got error message: 03:15:16 DEBUG| [stdout] ERROR: error adding device '/dev/loop2': Read-only file system 03:15:16 DEBUG| [stdout] 03:15:26 DEBUG| [stdout] 03:15:26 DEBUG| [stdout] PASS: f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624 03:15:26 DEBUG| [stdout] 03:15:27 INFO | GOOD ubuntu_btrfs_kernel_fixes.f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624 ubuntu_btrfs_kernel_fixes.f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624 timestamp=1554866127 localtime=Apr 10 03:15:27 completed successfully 03:15:27 INFO | END GOOD ubuntu_btrfs_kernel_fixes.f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624 ubuntu_btrfs_kernel_fixes.f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624 timestamp=1554866127 localtime=Apr 10 03:15:27 03:15:27 DEBUG| Persistent state client._record_indent now set to 1 03:15:27 DEBUG| Persistent state client.unexpected_reboot deleted 03:15:27 INFO | Invoking test: f959492fc15b60d874a9cbf55ae4760f2ef261ed.sh 03:15:27 DEBUG| Test has timeout: 7200 sec. 03:15:28 INFO | START ubuntu_btrfs_kernel_fixes.f959492fc15b60d874a9cbf55ae4760f2ef261ed ubuntu_btrfs_kernel_fixes.f959492fc15b60d874a9cbf55ae4760f2ef261ed timestamp=1554866128 timeout=7200 localtime=Apr 10 03:15:28 03:15:28 DEBUG| Persistent state client._record_indent now set to 2 03:15:28 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.f959492fc15b60d874a9cbf55ae4760f2ef261ed', 'ubuntu_btrfs_kernel_fixes.f959492fc15b60d874a9cbf55ae4760f2ef261ed') 03:15:28 DEBUG| Waiting for pid 30776 for 7200 seconds 03:15:28 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/f959492fc15b60d874a9cbf55ae4760f2ef261ed.sh 2>&1' 03:15:28 DEBUG| [stdout] Invoking test f959492fc15b60d874a9cbf55ae4760f2ef261ed 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] fix f959492fc15b60d874a9cbf55ae4760f2ef261ed 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] Btrfs: send, fix more issues related to directory renames 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] This is a continuation of the previous changes titled: 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] Btrfs: fix incremental send's decision to delay a dir move/rename 03:15:28 DEBUG| [stdout] Btrfs: part 2, fix incremental send's decision to delay a dir move/rename 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] There's a few more cases where a directory rename/move must be delayed which was 03:15:28 DEBUG| [stdout] previously overlooked. If our immediate ancestor has a lower inode number than 03:15:28 DEBUG| [stdout] ours and it doesn't have a delayed rename/move operation associated to it, it 03:15:28 DEBUG| [stdout] doesn't mean there isn't any non-direct ancestor of our current inode that needs 03:15:28 DEBUG| [stdout] to be renamed/moved before our current inode (i.e. with a higher inode number 03:15:28 DEBUG| [stdout] than ours). 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] So we can't stop the search if our immediate ancestor has a lower inode number than 03:15:28 DEBUG| [stdout] ours, we need to navigate the directory hierarchy upwards until we hit the root or: 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] 1) find an ancestor with an higher inode number that was renamed/moved in the send 03:15:28 DEBUG| [stdout] root too (or already has a pending rename/move registered); 03:15:28 DEBUG| [stdout] 2) find an ancestor that is a new direc 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] btrfs-progs v4.4 03:15:28 DEBUG| [stdout] See http://btrfs.wiki.kernel.org for more information. 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] Performing full device TRIM (1.00GiB) ... 03:15:28 DEBUG| [stdout] Label: (null) 03:15:28 DEBUG| [stdout] UUID: 0dd93c00-636c-4194-8ef3-cb92ed1669c3 03:15:28 DEBUG| [stdout] Node size: 16384 03:15:28 DEBUG| [stdout] Sector size: 4096 03:15:28 DEBUG| [stdout] Filesystem size: 1.00GiB 03:15:28 DEBUG| [stdout] Block group profiles: 03:15:28 DEBUG| [stdout] Data: single 8.00MiB 03:15:28 DEBUG| [stdout] Metadata: DUP 59.19MiB 03:15:28 DEBUG| [stdout] System: DUP 12.00MiB 03:15:28 DEBUG| [stdout] SSD detected: no 03:15:28 DEBUG| [stdout] Incompat features: extref, skinny-metadata 03:15:28 DEBUG| [stdout] Number of devices: 1 03:15:28 DEBUG| [stdout] Devices: 03:15:28 DEBUG| [stdout] ID SIZE PATH 03:15:28 DEBUG| [stdout] 1 1.00GiB /dev/loop0 03:15:28 DEBUG| [stdout] 03:15:28 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-f959492fc15b60d874a9cbf55ae4760f2ef261ed' in '/tmp/mnt-f959492fc15b60d874a9cbf55ae4760f2ef261ed/snap1' 03:15:28 DEBUG| [stdout] At subvol /tmp/mnt-f959492fc15b60d874a9cbf55ae4760f2ef261ed/snap1 03:15:28 DEBUG| [stdout] Create a readonly snapshot of '/tmp/mnt-f959492fc15b60d874a9cbf55ae4760f2ef261ed' in '/tmp/mnt-f959492fc15b60d874a9cbf55ae4760f2ef261ed/snap2' 03:15:28 DEBUG| [stdout] At subvol /tmp/mnt-f959492fc15b60d874a9cbf55ae4760f2ef261ed/snap2 03:15:38 DEBUG| [stdout] 03:15:38 DEBUG| [stdout] PASS: f959492fc15b60d874a9cbf55ae4760f2ef261ed 03:15:38 DEBUG| [stdout] 03:15:40 INFO | GOOD ubuntu_btrfs_kernel_fixes.f959492fc15b60d874a9cbf55ae4760f2ef261ed ubuntu_btrfs_kernel_fixes.f959492fc15b60d874a9cbf55ae4760f2ef261ed timestamp=1554866140 localtime=Apr 10 03:15:40 completed successfully 03:15:40 INFO | END GOOD ubuntu_btrfs_kernel_fixes.f959492fc15b60d874a9cbf55ae4760f2ef261ed ubuntu_btrfs_kernel_fixes.f959492fc15b60d874a9cbf55ae4760f2ef261ed timestamp=1554866140 localtime=Apr 10 03:15:40 03:15:40 DEBUG| Persistent state client._record_indent now set to 1 03:15:40 DEBUG| Persistent state client.unexpected_reboot deleted 03:15:40 INFO | Invoking test: ff76b0565523319d7c1c0b51d5a5a8915d33efab.sh 03:15:40 DEBUG| Test has timeout: 7200 sec. 03:15:40 INFO | START ubuntu_btrfs_kernel_fixes.ff76b0565523319d7c1c0b51d5a5a8915d33efab ubuntu_btrfs_kernel_fixes.ff76b0565523319d7c1c0b51d5a5a8915d33efab timestamp=1554866140 timeout=7200 localtime=Apr 10 03:15:40 03:15:40 DEBUG| Persistent state client._record_indent now set to 2 03:15:40 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_btrfs_kernel_fixes.ff76b0565523319d7c1c0b51d5a5a8915d33efab', 'ubuntu_btrfs_kernel_fixes.ff76b0565523319d7c1c0b51d5a5a8915d33efab') 03:15:40 DEBUG| Waiting for pid 30876 for 7200 seconds 03:15:40 DEBUG| Running 'BINDIR=/home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/ubuntu_btrfs_kernel_fixes.sh /home/ubuntu/autotest/client/tests/ubuntu_btrfs_kernel_fixes/fixes/ff76b0565523319d7c1c0b51d5a5a8915d33efab.sh 2>&1' 03:15:40 DEBUG| [stdout] Invoking test ff76b0565523319d7c1c0b51d5a5a8915d33efab 03:15:40 DEBUG| [stdout] 03:15:40 DEBUG| [stdout] fix ff76b0565523319d7c1c0b51d5a5a8915d33efab 03:15:40 DEBUG| [stdout] 03:15:40 DEBUG| [stdout] Btrfs: Don't allocate inode that is already in use 03:15:40 DEBUG| [stdout] 03:15:40 DEBUG| [stdout] Due to an off-by-one error, it is possible to reproduce a bug 03:15:40 DEBUG| [stdout] when the inode cache is used. 03:15:40 DEBUG| [stdout] 03:15:40 DEBUG| [stdout] The same inode number is assigned twice, the second time this 03:15:40 DEBUG| [stdout] leads to an EEXIST in btrfs_insert_empty_items(). 03:15:40 DEBUG| [stdout] 03:15:40 DEBUG| [stdout] Create subvolume '/tmp/mnt-ff76b0565523319d7c1c0b51d5a5a8915d33efab/s1' 03:16:11 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-ff76b0565523319d7c1c0b51d5a5a8915d33efab/s1' in '/tmp/mnt-ff76b0565523319d7c1c0b51d5a5a8915d33efab/s2' 03:16:11 DEBUG| [stdout] Create a snapshot of '/tmp/mnt-ff76b0565523319d7c1c0b51d5a5a8915d33efab/s2' in '/tmp/mnt-ff76b0565523319d7c1c0b51d5a5a8915d33efab/s3' 03:16:54 DEBUG| [stdout] 03:16:54 DEBUG| [stdout] PASS: ff76b0565523319d7c1c0b51d5a5a8915d33efab 03:16:54 DEBUG| [stdout] 03:16:56 INFO | GOOD ubuntu_btrfs_kernel_fixes.ff76b0565523319d7c1c0b51d5a5a8915d33efab ubuntu_btrfs_kernel_fixes.ff76b0565523319d7c1c0b51d5a5a8915d33efab timestamp=1554866216 localtime=Apr 10 03:16:56 completed successfully 03:16:56 INFO | END GOOD ubuntu_btrfs_kernel_fixes.ff76b0565523319d7c1c0b51d5a5a8915d33efab ubuntu_btrfs_kernel_fixes.ff76b0565523319d7c1c0b51d5a5a8915d33efab timestamp=1554866216 localtime=Apr 10 03:16:56 03:16:56 DEBUG| Persistent state client._record_indent now set to 1 03:16:56 DEBUG| Persistent state client.unexpected_reboot deleted 03:16:56 INFO | Total of 83 tests, 81 invoked, 2 skipped 03:16:56 INFO | END GOOD ---- ---- timestamp=1554866216 localtime=Apr 10 03:16:56 03:16:56 DEBUG| Persistent state client._record_indent now set to 0 03:16:56 INFO | Report successfully generated at /home/ubuntu/autotest/client/results/default/job_report.html DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'sudo autotest/client/tools/results2junit.py autotest/client/results/default > kernel-test-results/autotest-results.ubuntu_btrfs_kernel_fixes.xml'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'sudo chown -R ubuntu.ubuntu autotest/client/results/default'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'sudo find autotest/client/results/default -type d | xargs chmod +x'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'sudo find . -name 'crash.*' -type d | xargs sudo rm -rf'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'sudo find . -name reboot_current -type d | xargs sudo rm -rf'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'sudo find . -name linux -type d | xargs sudo rm -rf'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m DEBUG - [35m[32mLeave sh[0m[0m DEBUG - [35m[32mEnter sh[0m[0m DEBUG - [35m cmd : 'sudo find . -name mnt -type d | xargs sudo rm -rf'[0m DEBUG - [35m quiet : False[0m DEBUG - [35m ignore_result : False[0m DEBUG - [35m[32mLeave sh[0m[0m DEBUG - Leave: main + ARCHIVE=/var/lib/jenkins/jobs/ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel/builds/3/archive + scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -r ubuntu@pepe:kernel-test-results /var/lib/jenkins/jobs/ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel/builds/3/archive + /var/lib/jenkins/autotest/client/tools/glue_testsuites /var/lib/jenkins/jobs/ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel/builds/3/archive/autotest-results.ubuntu_btrfs_kernel_fixes.xml + /var/lib/jenkins/kernel-testing/unicode-filter /var/lib/jenkins/workspace/ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel/kernel-results-unfiltered.xml + /var/lib/jenkins/kernel-testing/release pepe Releasing... + [ ! -e /var/lib/jenkins/jobs/ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel/builds/3/archive/no-tests ] + /var/lib/jenkins/kernel-testing/test-results/mk-ingest-job --job-name=ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel --build-id=3 2019-04-10 03:21:42,143-INFO - Started 2019-04-10 03:21:43,159-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:43,373-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:43,491-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:43,497-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:48,497-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:48,513-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:48,645-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:48,652-INFO - created jenkins job: ubuntu_btrfs_kernel_fixes__X_i386-generic__using_pepe__for_kernel__ingest-results 2019-04-10 03:21:48,655-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:48,662-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:48,669-INFO - Starting new HTTP connection (1): 10.246.72.4 2019-04-10 03:21:48,672-INFO - That's All Folks! Recording test results Build step 'Publish JUnit test result report' changed build result to UNSTABLE Finished: UNSTABLE