On 10/14/13 4:59 AM, Marcus Meissner wrote:
Hi,
due to the btree and copy-on-write nature, such strange behaviour might appear.
We are looking for such bugs and try to fix them urgently. Please open a bugreport.
Indeed. Though for a 10 MB file system, I expect the answer is that the calculation is being a bit overzealous. 10 MB would be in the noise for most real use cases. -Jeff
Ciao, Marcus On Mon, Oct 14, 2013 at 11:05:12AM +0400, Andrey Borzenkov wrote:
Is it expected? I obviously do have enough space and can create (and delete) files and directories but am not able to rename anything. Do I need to open bug report?
linux-1a7f:~ # btrfs filesystem df /mnt System: total=4.00MiB, used=4.00KiB Data+Metadata: total=5.00MiB, used=60.00KiB linux-1a7f:~ # cd /mnt/dir1/ linux-1a7f:/mnt/dir1 # ls -l total 0 drwxr-xr-x 1 root root 0 Oct 14 09:43 dir2 -rw-r--r-- 1 root root 0 Oct 14 09:43 file1 linux-1a7f:/mnt/dir1 # mv dir2 dir3 mv: cannot move ‘dir2’ to ‘dir3’: No space left on device linux-1a7f:/mnt/dir1 # mv file1 file2 mv: cannot move ‘file1’ to ‘file2’: No space left on device linux-1a7f:/mnt/dir1 # echo ghdfgshf hdsghfj > file2 linux-1a7f:/mnt/dir1 # mkdir dir3 linux-1a7f:/mnt/dir1 # ls -l total 4 drwxr-xr-x 1 root root 0 Oct 14 09:43 dir2 drwxr-xr-x 1 root root 0 Oct 14 10:58 dir3 -rw-r--r-- 1 root root 0 Oct 14 09:43 file1 -rw-r--r-- 1 root root 17 Oct 14 10:58 file2 linux-1a7f:/mnt/dir1 # btrfs filesystem df /mnt System: total=4.00MiB, used=4.00KiB Data+Metadata: total=5.00MiB, used=60.00KiB linux-1a7f:~ # uname -a Linux linux-1a7f 3.11.3-1-pae #1 SMP Wed Oct 2 05:54:02 UTC 2013 (485f0d1) i686 i686 i386 GNU/Linux -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-- Jeff Mahoney SUSE Labs