From owner-freebsd-current@FreeBSD.ORG Wed Dec 27 15:06:11 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F4C816A583 for ; Wed, 27 Dec 2006 15:06:11 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id AECD413C4A2 for ; Wed, 27 Dec 2006 15:06:10 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so3382953uge for ; Wed, 27 Dec 2006 07:06:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Q/Qm9UB7ty6A7wZ7B1zMpIOd0lelBoo5gNsLXTusEgrR4trRXp1ZWvCTuc3IOs4IU33G5IocrceFBbf4HqiQkjK9YzJeF6gpiqL063+LmorowsPXLcOBiSJ72lckhC+Bmz80rMB6TT3TlIwIn0v1Mx1wr/ykAMYF7PDoG84xtlA= Received: by 10.78.176.20 with SMTP id y20mr1345494hue.1167230450598; Wed, 27 Dec 2006 06:40:50 -0800 (PST) Received: by 10.78.140.12 with HTTP; Wed, 27 Dec 2006 06:40:50 -0800 (PST) Message-ID: <7ad7ddd90612270640t182a37ddo61880d8befc452e1@mail.gmail.com> Date: Wed, 27 Dec 2006 15:40:50 +0100 From: "Ulrich Spoerlein" To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: msdosfs and cd9660: stat(2) returns garbled birthtime X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 27 Dec 2006 15:06:11 -0000 Hi, at least msdosfs and cd9660 do not fill the birthtime for the stat(2) syscall. Thus stat(1) will return different values per call: root@fs2:/export# stat -f "%Da %Dm %Dc %DB" /export/msdosfs /export/cd9660 /export/ufs 315532800 315532800 315532800 -926228096 1164792535 1163757053 1163757053 -926228096 1167168567 1166109700 1166131188 1162567651 root@fs2:/export# stat -f "%Da %Dm %Dc %DB" /export/msdosfs /export/cd9660 /export/ufs 315532800 315532800 315532800 -926230272 1164792535 1163757053 1163757053 -926230272 1167168567 1166109700 1166131188 1162567651 root@fs2:/export# stat -f "%Da %Dm %Dc %DB" /export/msdosfs /export/cd9660 /export/ufs 315532800 315532800 315532800 -929051264 1164792535 1163757053 1163757053 -929051264 1167168567 1166109700 1166131188 1162567651 The code in cd9660_getattr() and msdosfs_getattr() should be augmented. But what value to put into the field? Clearly, a constant would be preferred instead of an uninitialized value. Uli