From owner-freebsd-fs@FreeBSD.ORG Mon Nov 27 14:12:52 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5918516A4A0 for ; Mon, 27 Nov 2006 14:12:52 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4D2944056 for ; Mon, 27 Nov 2006 14:08:54 +0000 (GMT) (envelope-from r.c.ladan@gmail.com) Received: by ug-out-1314.google.com with SMTP id c2so1090132ugf for ; Mon, 27 Nov 2006 06:09:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=EvrH8PH2IELkN55rfhiIKHCf02hLtU4mJx02ZE9zfvhjORYCYrEsVEmCavfZGvMv36KuHGn1ktBtneVXtR0LnRpKgZIn5obg5QbmXa0zSJGtGRtrhbCiCund7Gg7bEk5Lc2IiR8trpgwDTpF3jthu/2gG3H/I4ARumYC9UnHwFw= Received: by 10.66.242.5 with SMTP id p5mr12471901ugh.1164636578125; Mon, 27 Nov 2006 06:09:38 -0800 (PST) Received: from ?192.168.123.106? ( [195.241.221.201]) by mx.google.com with ESMTP id 53sm16415989ugn.2006.11.27.06.09.37; Mon, 27 Nov 2006 06:09:37 -0800 (PST) Message-ID: <456AF19F.1080104@gmail.com> Date: Mon, 27 Nov 2006 15:09:35 +0100 From: Rene Ladan User-Agent: Thunderbird 1.5.0.8 (X11/20061117) MIME-Version: 1.0 To: Oliver Fromme References: <200611271340.kARDed3F033672@lurza.secnetix.de> In-Reply-To: <200611271340.kARDed3F033672@lurza.secnetix.de> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.ORG Subject: Re: file creation timestamps wrong on msdos fs? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2006 14:12:52 -0000 Oliver Fromme schreef: > Rene Ladan wrote: > > rene@s000655:~>cd /media/stick > > rene@s000655:/media/stick>date && touch a-new-dos-file > > ma 27 nov 2006 10:53:59 CET > > rene@s000655:/media/stick>ls -lUT a-new-dos-file > > -rwxr-xr-x 1 rene wheel 0 1 jan 01:11:23 1970 a-new-dos-file > > ^^^^^^^^^^^^^ > > > > There seems to be a bug in src/sys/fs/msdosfs/msdosfs_vnops.c > because of a subtle confusion between what msdosfs calls > "ctime" (creation time) and what UNIX calls "ctime" (inode > change time, unsupported by msdosfs). > [...] > That should fix the output of "ls -lUT" (please report). Yep, with the file above: rene@s000655:/media/stick>ls -lUT a-new-dos-file -rwxr-xr-x 1 rene wheel 0 27 nov 10:53:59 2006 a-new-dos-file Time for yet another PR :) > However, the question remains what the vnode's ctime should > be set to. There's no such thing as an inode change time > in FAT's directory entries. Maybe it should simply be > copied from the mtime. Maybe, but how can you see the inode change time anyway? 'man ls' and 'apropos inode' don't tell me. > > Best regards > Oliver > Regards, Rene -- GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) "It won't fit on the line." -- me, 2001