Skip to contentSkip to conversation

random bugfixes of the space management

PATCH Superseded Miao Xie 3 participants 3 messages Dec 22, 2010 Btrfs file system

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Miao Xie

author
#0 lore raw

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(-)
#1 lore raw
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.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.

I'll review the rest of them when I have more time, thanks for these Miao.

Josef

#2 lore raw

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.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.

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