Skip to contentSkip to conversation

cancel resize

DISCUSSION Oliver 3 participants 3 messages Apr 11, 2020 – Apr 17, 2020 Btrfs file system

lore
Share & tools
lore

Oliver

author
#0 lore raw

Hello,

I've made a stupid mistake. I wanted to reduce a disk with 1990m, but instead resized it to 1990m.

btrfs fi resize 2:1990m /btrfs

It will take forever and might fail in the end, as I might not have enough space avaiable.

How do I cancel this operation ? I can see cancel operations for other commands, but not this one.

thanks,
Oliver

#1 lore raw
Quoted 5 lines · Oliver

Hello,

I've made a stupid mistake. I wanted to reduce a disk with 1990m, but instead resized it to 1990m.

Quoted 7 lines

btrfs fi resize 2:1990m /btrfs

It will take forever and might fail in the end, as I might not have enough space avaiable.

How do I cancel this operation ? I can see cancel operations for other commands, but not this one.

Currently, the only ways to stop a device shrink or remove are to run out of space or reboot.

Patches welcome!

Quoted 2 lines

thanks,
Oliver

#2 lore raw
Quoted 11 lines · Zygo Blaxell
Quoted 10 lines · Oliver

Hello,

I've made a stupid mistake. I wanted to reduce a disk with 1990m, but instead resized it to 1990m.

btrfs fi resize 2:1990m /btrfs

It will take forever and might fail in the end, as I might not have enough space avaiable.

Quoted 7 lines
Quoted 2 lines

How do I cancel this operation ? I can see cancel operations for other commands, but not this one.

Currently, the only ways to stop a device shrink or remove are to run out of space or reboot.

Patches welcome!

This will need either a new ioctl or a bit dirty extension to the current one, as the resize request is a string so 'cancel' will stop current resize in case it's running.