random bugfixes of the space management
cover random bugfixes of the space management
Hello,
I have a bunch of random fixes of the space management in
git://repo.or.cz/linux-btrfs-devel.git space-manage
They are the ENOSPC fixes, as well as fixes for df command.
The first one and the last one fixed the wrong free space information reported by df command. The second one fixed ENOSPC when there is tiny space in the filesystem. And The third fixed wrong calculation of stripe size. And the 4th and 5th patches fixed the chunk allocation problem when the block devices have no enough space to allocate a default-size chunk.
--- fs/btrfs/ctree.h | 2 + fs/btrfs/extent-tree.c | 71 ++++++- fs/btrfs/super.c | 147 +++++++++++- fs/btrfs/volumes.c | 606 +++++++++++++++++++++++++++++++++++------------- fs/btrfs/volumes.h | 27 +++ 5 files changed, 682 insertions(+), 171 deletions(-)
Quoted 4 lines · Miao Xie
Hello,
I have a bunch of random fixes of the space management in
Quoted 9 lines
git://repo.or.cz/linux-btrfs-devel.gitspace-manageThey are the ENOSPC fixes, as well as fixes for df command.
The first one and the last one fixed the wrong free space information reported by df command. The second one fixed ENOSPC when there is tiny space in the filesystem. And The third fixed wrong calculation of stripe size. And the 4th and 5th patches fixed the chunk allocation problem when the block devices have no enough space to allocate a default-size chunk.
I'll review the rest of them when I have more time, thanks for these Miao.
Josef
Excerpts from Josef Bacik's message of 2010-12-22 14:22:54 -0500:
Quoted 15 lines · Miao Xie
Quoted 4 lines
Hello,
I have a bunch of random fixes of the space management in
Quoted 9 lines
git://repo.or.cz/linux-btrfs-devel.gitspace-manageThey are the ENOSPC fixes, as well as fixes for df command.
The first one and the last one fixed the wrong free space information reported by df command. The second one fixed ENOSPC when there is tiny space in the filesystem. And The third fixed wrong calculation of stripe size. And the 4th and 5th patches fixed the chunk allocation problem when the block devices have no enough space to allocate a default-size chunk.
Quoted 1 line
I'll review the rest of them when I have more time, thanks for these Miao.
For now they are going with the new compression code into a new branch for 2.6.38 in my git tree. I might have to rebase as patches are added and removed, but these will all go in.
-chris