From owner-freebsd-current@FreeBSD.ORG Tue Feb 18 20:03:23 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 029BAB3A for ; Tue, 18 Feb 2014 20:03:23 +0000 (UTC) Received: from blu0-omc2-s16.blu0.hotmail.com (blu0-omc2-s16.blu0.hotmail.com [65.55.111.91]) by mx1.freebsd.org (Postfix) with ESMTP id C1C7D1E08 for ; Tue, 18 Feb 2014 20:03:22 +0000 (UTC) Received: from BLU179-W85 ([65.55.111.72]) by blu0-omc2-s16.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 18 Feb 2014 12:02:16 -0800 X-TMN: [A751CYAsJJ1Bz1ceHdbagxrlg1X2E4/Z] X-Originating-Email: [brunolauze@msn.com] Message-ID: From: =?iso-8859-1?B?QnJ1bm8gTGF1euk=?= To: "freebsd-current@freebsd.org" Subject: Device File Creation Time Date: Tue, 18 Feb 2014 15:02:16 -0500 Importance: Normal Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 18 Feb 2014 20:02:16.0385 (UTC) FILETIME=[52699310:01CF2CE4] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Feb 2014 20:03:23 -0000 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? =