Date: Tue, 18 Feb 2014 15:02:16 -0500 From: =?iso-8859-1?B?QnJ1bm8gTGF1euk=?= <brunolauze@msn.com> To: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Device File Creation Time Message-ID: <BLU179-W85177DFBBF69A9D7B02C66C6980@phx.gbl>
next in thread | raw e-mail | index | archive | help
root@pcbsd:/dev # stat /dev/ada0=0A= 1895890688 97 crw-rw-rw- 1 root operator 97 0 "Feb 18 10:52:11 2014" "Feb 1= 7 09:36:43 2014" "Feb 17 09:36:43 2014" "Dec 31 17:59:59 1969" 4096 0 0 /de= v/ada0=0A= =0A= root@pcbsd:/dev # stat /dev/ada0p2=0A= 1895890688 103 crw-rw-rw- 1 root operator 103 0 "Feb 18 10:52:05 2014" "Feb= 17 09:36:43 2014" "Feb 17 09:36:43 2014" "Dec 31 17:59:59 1969" 4096 0 0 /= dev/ada0p2=0A= =0A= root@pcbsd:/dev # stat /dev/ada0p3=0A= 1895890688 105 crw-rw-rw- 1 root operator 105 0 "Feb 18 10:52:21 2014" "Feb= 17 09:36:43 2014" "Feb 17 09:36:43 2014" "Dec 31 17:59:59 1969" 4096 0 0 /= dev/ada0p3=0A= =0A= As we can see all files in devfs reports Dec 31 1969 as creation time.=0A= =0A= Can we look to manage this value to know when a certain device was installe= d?=0A= =0A= It would be really great to know when a disk was replaced.=0A= =0A= Would there be any other mechanism to accomplish this? =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU179-W85177DFBBF69A9D7B02C66C6980>