https://bugs.kde.org/show_bug.cgi?id=464561

            Bug ID: 464561
           Summary: BTRFS filesystems are not resized after shrinking a
                    partition
    Classification: Applications
           Product: partitionmanager
           Version: 22.12.1
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

STEPS TO REPRODUCE
1.  Shrink a BTRFS partition

OBSERVED RESULT
It will srhink the partition but fail with an error. I didn't save the kde
partition error but it was identical to the `btrfs check` command output.
```
btrfs check /dev/nvme0n1p2                                                      
Opening filesystem to check...                                                  
Checking filesystem on /dev/nvme0n1p2                                           
UUID: d7dde9e4-227a-41bb-a96b-830a638d1fc7                                      
[1/7] checking root items                                                       
[2/7] checking extents                                                          
ERROR: block device size is smaller than total_bytes in device item, has
1505755136 expect >= 1610612736                                                 
ERROR: errors found in extent allocation tree or chunk allocation               
[3/7] checking free space tree                                                  
[4/7] checking fs roots                                                         
[5/7] checking only csums items (without verifying data)                        
[6/7] checking root refs                                                        
[7/7] checking quota groups skipped (not enabled on this FS)                    
found 257695744 bytes used, error(s) found                                      
total csum bytes: 250824                                                        
total tree bytes: 851968                                                        
total fs tree bytes: 360448                                                     
total extent tree bytes: 49152                                                  
btree space waste bytes: 280984                                                 
file data blocks allocated: 256843776                                           
 referenced 256843776
```


EXPECTED RESULT
It would just work.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 37
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
I had to run `btrfs rescue fix-device-size /dev/nvme0n1p2` to fix it.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to