Bug 585221

Summary: resize2fs should support shrinking filesystems
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: mbooth, virt-maint, yuzhang
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-14 19:07:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2010-04-23 13:23:43 UTC
Description of problem:

Currently you can only expand a filesystem to match an expanded
partition or LV.  It should be possible also to shrink a filesystem,
but you cannot do that with the current guestfs_resize2fs call
because you need to specify the reduced size.

Version-Release number of selected component (if applicable):

libguestfs 1.3.6

Original report:
http://rwmj.wordpress.com/2010/04/10/virt-resize-now-resizes-partition-content/#comment-1653

Comment 1 Richard W.M. Jones 2010-05-21 13:58:13 UTC
Patch posted upstream:
https://www.redhat.com/archives/libguestfs/2010-May/msg00140.html