Bug 433

Summary: mdev -s should not die processing one device node
Product: Busybox Reporter: Michael Tokarev <mjt+busybox>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.14.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Fix

Description Michael Tokarev 2009-07-02 09:22:57 UTC
There are still several foo_or_die() calls in make_device().  Like syntax errors in a single line, or failure to run an external command, etc.  Having in mind `mdev -s' mode of operations, each such _die() is dangerous - we're risking leaving system without important device nodes in /dev and hence make it unbootable.
Comment 1 Michael Tokarev 2009-07-02 09:26:15 UTC
See also #309
Comment 2 Denys Vlasenko 2009-07-02 11:16:40 UTC
Created attachment 433 [details]
Fix

This patch makes two errors non-fatal. It does not make mknod() error non-fatal. Do you think it should allow that too?
Comment 3 Denys Vlasenko 2009-07-02 11:18:41 UTC
(In reply to comment #1)
> See also #309

I thought it is fixed. Is it? If not, on what version of bbox do you observe it?
Comment 4 Michael Tokarev 2009-07-02 11:28:19 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > See also #309
> 
> I thought it is fixed. Is it? If not, on what version of bbox do you observe it?

The mention of #390 were just for reference.  It's fixed and is marked as such, but the nature of current #433 is the same as of #309.

(In reply to comment #2)
> Created an attachment (id=433) [details]
> Fix

Yeah, that't what I mean.  Heck, libb contains so many functions... ;)

> This patch makes two errors non-fatal. It does not make mknod() error non-fatal. Do you think it should allow that too?

Strictly speaking yes, but well, the situation when mknod/mkdir returns failure is very rare.  If it's easy enough to do (like, no need to un-wrap something like "mknod_or_die"), let it be fixed too.  If not, let's leave it as it is.