Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* switching "balance" into background
@ 2011-04-09  5:57 Helmut Hullen
  2011-04-09  8:44 ` Hugo Mills
  0 siblings, 1 reply; 3+ messages in thread
From: Helmut Hullen @ 2011-04-09  5:57 UTC (permalink / raw)
  To: linux-btrfs

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: switching "balance" into background
  2011-04-09  5:57 switching "balance" into background Helmut Hullen
@ 2011-04-09  8:44 ` Hugo Mills
  2011-04-09  9:04   ` Helmut Hullen
  0 siblings, 1 reply; 3+ messages in thread
From: Hugo Mills @ 2011-04-09  8:44 UTC (permalink / raw)
  To: helmut; +Cc: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]

On Sat, Apr 09, 2011 at 07:57:00AM +0200, Helmut Hullen wrote:
> 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?

   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.

-- 
=== 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.                        

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: switching "balance" into background
  2011-04-09  8:44 ` Hugo Mills
@ 2011-04-09  9:04   ` Helmut Hullen
  0 siblings, 0 replies; 3+ messages in thread
From: Helmut Hullen @ 2011-04-09  9:04 UTC (permalink / raw)
  To: linux-btrfs

Hallo, Hugo,

Du meintest am 09.04.11:

>> I can't switch a running "btrfs filesystem balance ..." via
>>
>>         ctrl z
>>         bg
>>
>> into the background,

[...]

>    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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-09  9:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-09  5:57 switching "balance" into background Helmut Hullen
2011-04-09  8:44 ` Hugo Mills
2011-04-09  9:04   ` Helmut Hullen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox