Re: syncing the disks when entering sleep

Leisner, Martin
2010-02-10T21:17:20Z

> -----Original Message-----
> From: Rafael J. Wysocki [mailto:rjw@sisk.pl]
> Sent: Wednesday, February 10, 2010 2:19 PM
> To: Pavel Machek
> Cc: linux-pm@lists.linux-foundation.org; Nigel Cunningham; Leisner,
> Martin
> Subject: Re: [linux-pm] syncing the disks when entering sleep
>
......
> > > So really, I don't see anything wrong with a knob that will turn the
> kernel
> > > sync off entirely, because that basically means "my user space is
> > > not broken".
> >
> > Because, very easily, parts of my users space may be broken.
>
> How exactly would they be broken?
>
> Why do you want to protect the users from themselves for what it's
> worth?
>
> Why don't we just assume that the user who sets the knob knows what he's
> doing?
>
> Rafael

Exactly what I proposed -- if people who are root start playing with kernel settings, they'll get defined, documented behavior. If they don't like it,
let them not play. I see no reason to idiot proof root.

The problem is if the disk is not spinning, the system is in laptop mode, and sleep is entered, it makes no sense to spin up the disk to sync it in
embedded systems (i.e. the vendor controls all the software).

If root does
dd if=/dev/zero of=/dev/sda
and they trash their disk, so be it.

marty