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

    • Re: Large mem disk with not very recent current
      ... But system panics while I try to extract source ... > for other parts of the kernel that need memory later. ...
      (freebsd-current)
    • Re: LS120, ATANg and Atapicam
      ... > I'm not sure if this is a known problem, but I don't see any references ... I've gone from 5.1-RELEASE to todays CURRENT to try to get rid of ... > If I boot my system with no floppy in the LS-120, the system panics ...
      (freebsd-current)
    • Re: Page faults every few days
      ... other than simulate your load and see if the system panics. ... I had several machines running kernels created ... Kent Stewart ...
      (freebsd-questions)
    • tmpfs panic: wrong vnode type 0xffffff008547ab10
      ... I tried to run my tinderbox with the build directory on tmpfs but the ... system panics with wrong vnode type 0xffffff008547ab10. ... This panic is reproducible when mounting the build directory with tmpfs ...
      (freebsd-current)
    • LS120, ATANg and Atapicam
      ... I'm not sure if this is a known problem, but I don't see any references ... I've gone from 5.1-RELEASE to todays CURRENT to try to get rid of ... If I boot my system with no floppy in the LS-120, the system panics ...
      (freebsd-current)