commit | d6397baee468809ef311e763dfc6e9f73418f8a6 | [log] [tgz] |
---|---|---|
author | Chris Ball <cjb@laptop.org> | Mon Apr 27 07:29:03 2009 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Mon Apr 27 07:40:51 2009 -0400 |
tree | b8f20c01239674eea287c1665fbf96fb92dfcb00 | |
parent | 59bc5c758ece00fb0b2a170dd8fbbf31f1856c8a [diff] |
Btrfs: When shrinking, only update disk size on success Previously, we updated a device's size prior to attempting a shrink operation. This patch moves the device resizing logic to only happen if the shrink completes successfully. In the process, it introduces a new field to btrfs_device -- disk_total_bytes -- to track the on-disk size. Signed-off-by: Chris Ball <cjb@laptop.org> Signed-off-by: Chris Mason <chris.mason@oracle.com>