lkml.org 
[lkml]   [2020]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] early init: open /dev/console with O_LARGEFILE
Unfortunately, test this patch still no help, has system/bin/sh warning.

2020-01-01 18:43 GMT+08:00, Dominik Brodowski <linux@dominikbrodowski.net>:
> @youling 257: could you test the attached patch, please?
>
> Thanks,
> Dominik
>
> On Tue, Dec 31, 2019 at 07:30:19PM -0500, Arvind Sankar wrote:
>> On Tue, Dec 31, 2019 at 04:02:26PM +0100, Dominik Brodowski wrote:
>> > If force_o_largefile() is true, /dev/console used to be opened
>> > with O_LARGEFILE. Retain that behaviour.
>> >
>>
>> One other thing that used to happen is fsnotify_open() -- I don't know
>> how that might affect this, but it seems like the only thing left that's
>> different.
>
> Suggested-by: Arvind Sankar <nivedita@alum.mit.edu>
> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
>
> diff --git a/init/main.c b/init/main.c
> index d12777775cb0..3f4163046200 100644
> --- a/init/main.c
> +++ b/init/main.c
> @@ -94,6 +94,7 @@
> #include <linux/jump_label.h>
> #include <linux/mem_encrypt.h>
> #include <linux/file.h>
> +#include <linux/fsnotify.h>
>
> #include <asm/io.h>
> #include <asm/bugs.h>
> @@ -1166,6 +1167,7 @@ void console_on_rootfs(void)
> O_RDWR | (force_o_largefile() ? O_LARGEFILE : 0), 0);
> if (IS_ERR(file))
> goto err_out;
> + fsnotify_open(file);
>
> /* create stdin/stdout/stderr, this should never fail */
> for (i = 0; i < 3; i++) {
>

\
 
 \ /
  Last update: 2020-01-01 14:28    [W:0.110 / U:8.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site