updating mtime for char/block devices?
From: Carl-Daniel Hailfinger (c-d.hailfinger.devel.2005_at_gmx.net)
Date: 02/28/05
- Previous message: Wen Xiong: "[ patch 6/7] drivers/serial/jsm: new serial device driver"
- Next in thread: Arjan van de Ven: "Re: updating mtime for char/block devices?"
- Reply: Arjan van de Ven: "Re: updating mtime for char/block devices?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Feb 2005 00:51:10 +0100 To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Hi,
is it intentional that
echo foo >/dev/hda1
doesn't update the mtime of the device node, but
echo foo >/dev/tty10
does update the mtime of the device node?
And no, mounting with the noatime flag doesn't help because the
mtime is updated. IIRC some time ago this behaviour was different,
but I could easily be mistaken.
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Wen Xiong: "[ patch 6/7] drivers/serial/jsm: new serial device driver"
- Next in thread: Arjan van de Ven: "Re: updating mtime for char/block devices?"
- Reply: Arjan van de Ven: "Re: updating mtime for char/block devices?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: updating mtime for char/block devices?
... >>does update the mtime of the device node? ... mounting
with the noatime flag doesn't help because the ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel) - Re: updating mtime for char/block devices?
... > does update the mtime of the device node? ... devices are tricky
in general in this respect, ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel) - Re: The argument for fs assistance in handling archives (was: silent semantic changes with reiser4)
... > Can be done with dnotify/inotify and a cache daemon keeping track of ...
this will need a kernel change to make sure mtime always ... So you wouldn't trust the
async ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [PATCH against 2.6.14] truncate() or ftruncate shouldnt change mtime if size doesnt change.
... > will not make a noticable different the mtime or ctime. ... This
partially obsoletes the similar optimisation in inode_setattr. ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel) - Re: [PATCH against 2.6.14] truncate() or ftruncate shouldnt change mtime if size doesnt change.
... > zero. ... What started me looking at this is that openover NFS ...
*doesn't* update the mtime on an empty file, ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel)