Skip to contentSkip to conversation

switching "balance" into background

DISCUSSION Helmut Hullen 2 participants 3 messages Apr 9, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hallo, linux-btrfs,

I can't switch a running "btrfs filesystem balance ..." via

ctrl z
bg

into the background, with other jobs this way works.

The stopping command "ctrl z" doesn't work.

(may be on other keyboards it's "ctrl y")

What goes wrong?

Viele Gruesse!
Helmut

#1 lore raw
Quoted 7 lines · Helmut Hullen

Hallo, linux-btrfs,

I can't switch a running "btrfs filesystem balance ..." via

ctrl z
bg

Quoted 7 lines

into the background, with other jobs this way works.

The stopping command "ctrl z" doesn't work.

(may be on other keyboards it's "ctrl y")

What goes wrong?

A balance is a single long-lived ioctl call, so the userspace
process is living in D state (uninterruptible sleep) until the kernel finishes.

I've got a patch that forks the process, and runs the ioctl in the
background, returning immediately. I should be able to get it to the list this weekend as part of the userspace side of the balance management patches.

Hugo.

Signature · 4 lines
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
  --- There are three things you should never see being made: laws, ---  
                        standards,  and sausages.                        
#2 lore raw

Hallo, Hugo,

Du meintest am 09.04.11:

Quoted 6 lines
Quoted 6 lines

I can't switch a running "btrfs filesystem balance ..." via

ctrl z
bg

into the background,

[...]

Quoted 4 lines

I've got a patch that forks the process, and runs the ioctl in the
background, returning immediately. I should be able to get it to the list this weekend as part of the userspace side of the balance management patches.

Sounds fine - thank you!

Viele Gruesse!
Helmut