Re: ffs_alloc panic patch
From: Antony Mawer (fbsd-stable_at_mawer.org)
Date: 08/27/04
- Previous message: Pavel Merdine: "ffs_alloc panic patch"
- In reply to: Pavel Merdine: "ffs_alloc panic patch"
- Next in thread: Ken Smith: "Re: ffs_alloc panic patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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"
- Previous message: Pavel Merdine: "ffs_alloc panic patch"
- In reply to: Pavel Merdine: "ffs_alloc panic patch"
- Next in thread: Ken Smith: "Re: ffs_alloc panic patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|