Re: syncing the disks when entering sleep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi.
> 
> Pavel Machek wrote:
> >> So you're asking to give this knob "one shot behavior" (i.e. "then
> >> next sleep won't sync")?
> > 
> > Yes.
> > 
> >> But I'm primarily interested in the behavior on embedded systems
> >> (where you control all the processes running -- there's no "user"
> >> involved.
> >> 
> > 
> > Well, then "one shot behaviour" does not hurt you, right?
> > 
> >> If a user starts messing with default settings, any unwanted
> >> behavior is the users problem (besides, this should only be
> >> writable as root).
> >> 
> > 
> > I'd rather not add traps for the user unless absolutely neccessary.
> > Not even for root user. Pavel
> 
> But that's precisely what you're doing. You're advocating making the
> behaviour inconsistent. If what you're suggesting is done, you won't be
> able to simply cat the sysfs entry to know whether sys_syncing is going
> to be done on the next cycle. You'll also have to have knowledge of
> whether a cycle has been done since the last time the value is set. The
> end result will be someone getting trapped and caught out because they
> think '1' in /sys/power/dont_sync (or whatever it's called) means what
> it says.

I'm simply advocating that setting from one suspend should not change
other suspends ... because you have multiple different programs
wanting to suspend the system, all independend. See the example about
system running low on battery earlier in the thread. 

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux