Re: ffs_alloc panic patch

From: Antony Mawer (fbsd-stable_at_mawer.org)
Date: 08/27/04

  • Next message: Ken Smith: "Re: ffs_alloc panic patch"
    Date: Sat, 28 Aug 2004 05:04:44 +1000
    To: Pavel Merdine <fbsdlist@merdin.com>
    
    

    Pavel Merdine wrote:
    > Panic is VERY undesirable situation. And I'm in doubt why those people
    > who wrote ffs like panics so devotedly:
    >
    > # grep -c "panic" ffs_alloc.c ffs_softdep.c
    > ffs_alloc.c:37
    > ffs_softdep.c:108
    >
    > I think such things are not acceptable in production environment. Why
    > those functions cannot just return a failure state and leave system
    > working?

    Taking a stab in the dark here, I'd suspect that this is a safety
    mechanism -- if something goes awry in the filesystem code, the
    implications could have something of a domino effect and wind up leaving
    you with a hosed filesystem.

    Rather than take that chance, the system panics, which attempts to
    minimising the impact the code could have on your filesystem(s) by
    otherwise continuing on.

    Someone correct me if I'm off-base here...

    Antony
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Ken Smith: "Re: ffs_alloc panic patch"

    Relevant Pages