Re: updating mtime for char/block devices?

From: Carl-Daniel Hailfinger
Date: Tue Mar 01 2005 - 06:16:40 EST


Russell King schrieb:
> On Tue, Mar 01, 2005 at 01:45:47AM +0100, Carl-Daniel Hailfinger wrote:
>
>>Can I prevent mtime updates for all device files? Mounting /dev readonly
>>would certainly help, but for that to work I'd have to move /dev to a
>>different filesystem, right?
>
>
> tty mtime updates aren't marked dirty, so aren't written back to disk.
> Intentionally.

It seems the tty mtime exception doesn't include /dev/ptmx. That's
probably unintentional. Is there a chance to extend the tty mtime
exception to all char devices or at least major 4+5?

Regards,
Carl-Daniel
--
http://www.hailfinger.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/