lkml.org 
[lkml]   [2005]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] [3/48] Suspend2 2.1.9.8 for 2.6.12: 301-proc-acpi-sleep-activate-hook.patch
    Date
    From
    Nigel Cunningham <ncunningham@cyclades.com> wrote:
    > On Tue, 2005-07-12 at 19:47, Matthew Garrett wrote:
    >> In general, the kernel does very little to prevent users from shooting
    >> themselves in the foot (or even chainsawing off their arms). We can do
    >> these checks in userspace rather than adding more kernel code.
    >
    > Just because the kernel does very little, that doesn't mean it should.
    > Particularly for something like suspend to disk, where it's not just a
    > matter of an oops but of potential hard disk corruption, this is
    > important.

    The kernel isn't there to protect people. It's there to provide
    functionality.

    > If I could do it in userspace, I would. The trouble is, the userspace
    > app may not be there to tell the user what is happening, and this might
    > be part of the problem.

    You're suggesting that users who are technically competent to compile
    their own kernel and write their own initrd scripts are unable to deal
    with checking whether or not a filesystem is mounted? You don't need an
    application to do that, it's a simple matter of shell scripting. And, in
    almost every case, if something is a simple matter of shell scripting it
    shouldn't be in the kernel.
    --
    Matthew Garrett | mjg59-chiark.mail.linux-rutgers.kernel@srcf.ucam.org
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-07-12 12:28    [W:0.027 / U:2.344 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site