Merge lp:~vorlon/upstart/lp.980917-redux into lp:upstart

Proposed by Steve Langasek
Status: Merged
Merged at revision: 1376
Proposed branch: lp:~vorlon/upstart/lp.980917-redux
Merge into: lp:upstart
Diff against target: 31 lines (+5/-15)
1 file modified
init/main.c (+5/-15)
To merge this branch: bzr merge lp:~vorlon/upstart/lp.980917-redux
Reviewer Review Type Date Requested Status
James Hunt Approve
Review via email: mp+118461@code.launchpad.net

Description of the change

Slight improvements to the landed fix for bug #980917, which try to minimize
the number of unnecessary filesystem accesses when trying to determine
whether to mount devtmpfs.

To post a comment you must log in.
Revision history for this message
James Hunt (jamesodhunt) wrote :

Looks good to me.

review: Approve
Revision history for this message
James Hunt (jamesodhunt) wrote :

actually, there is an extra brace in there which I'll remove.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'init/main.c'
2--- init/main.c 2012-08-03 15:47:59 +0000
3+++ init/main.c 2012-08-07 01:32:18 +0000
4@@ -247,22 +247,12 @@
5 /* Check if key devices already exist; if they do,
6 * we should assume we don't need to mount /dev.
7 */
8- if (system_check_file ("/dev/null", S_IFCHR, makedev (1, 3)) < 0)
9- needs_devtmpfs = 1;
10-
11- if (system_check_file ("/dev/console", S_IFCHR, makedev (5, 1)) < 0)
12- needs_devtmpfs = 1;
13-
14- if (system_check_file ("/dev/tty", S_IFCHR, makedev (5, 0)) < 0)
15- needs_devtmpfs = 1;
16-
17- if (system_check_file ("/dev/kmsg", S_IFCHR, makedev (1, 11)) < 0)
18- needs_devtmpfs = 1;
19-
20 if (system_check_file ("/dev/ptmx", S_IFCHR, makedev (5, 2)) < 0)
21- needs_devtmpfs = 1;
22-
23- if (system_check_file ("/dev/pts", S_IFDIR, 0) < 0)
24+ || system_check_file ("/dev/pts", S_IFDIR, 0) < 0
25+ || system_check_file ("/dev/kmsg", S_IFCHR, makedev (1, 11)) < 0
26+ || system_check_file ("/dev/null", S_IFCHR, makedev (1, 3)) < 0
27+ || system_check_file ("/dev/console", S_IFCHR, makedev (5, 1)) < 0
28+ || system_check_file ("/dev/tty", S_IFCHR, makedev (5, 0)) < 0)
29 needs_devtmpfs = 1;
30
31 if (needs_devtmpfs) {

Subscribers

People subscribed via source and target branches