From owner-freebsd-questions@freebsd.org Fri Aug 14 00:13:12 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DDBA399E3D8 for ; Fri, 14 Aug 2015 00:13:12 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A667E1EDA for ; Fri, 14 Aug 2015 00:13:12 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-150-34.dynamic.qsc.de [92.195.150.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 1383427806; Fri, 14 Aug 2015 02:13:03 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t7E0D3gN003500; Fri, 14 Aug 2015 02:13:03 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 14 Aug 2015 02:13:03 +0200 From: Polytropon To: "Dr. Andreas Haakh" Cc: freebsd-questions@freebsd.org Subject: Re: a bug in /bin/ls Message-Id: <20150814021303.5aa4ac09.freebsd@edvax.de> In-Reply-To: <55CD2FE5.5050309@ib-haakh.de> References: <55CD23C7.9010803@ib-haakh.de> <20150814012930.e40c0ba6.freebsd@edvax.de> <55CD2FE5.5050309@ib-haakh.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2015 00:13:13 -0000 On Fri, 14 Aug 2015 02:01:41 +0200, Dr. Andreas Haakh wrote: > My example comes from an nfs-mounted ufs-filesystem -- the server is > > FreeBSD abaton 9.3-STABLE FreeBSD 9.3-STABLE #0 r284539: Thu Jun 18 > 12:55:12 CEST 2015 toor@abaton:/usr/obj/usr/src/sys/ABATON amd64 > > mount on my server gives (among others) > /dev/mirror/gm0p1 on /datM (ufs, NFS exported, local, nfsv4acls) <--- > this one > /dev/mirror/gm0p2 on /datV (ufs, NFS exported, local) > /arr0/mmed on /mmed (zfs, NFS exported, local, nfsv4acls) > > The second fs (without nfsv4acls) and the last one (zfs) give me the > same results. I can confirm this. > The lowercase variant of the options "-u" gives a real date but ordering > doesn't work either. You can always verify the three dates with "stat ", or use "stat *" for comparison. You can also use a strftime()-like format string for "pretty printing": % stat -t "%Y-%m-%d %H:%M:%S" * 107 62979017 -rw-r--r-- 1 poly staff 0 0 "2015-08-14 01:25:35" "2015-08-14 01:25:35" "2015-08-14 01:25:35" "2015-08-14 01:25:35" 16384 0 0 a 107 62979021 -rw-r--r-- 1 poly staff 0 0 "2015-08-14 01:25:41" "2015-08-14 01:25:41" "2015-08-14 01:25:41" "2015-08-14 01:25:41" 16384 0 0 b 107 62979018 -rw-r--r-- 1 poly staff 0 0 "2015-08-14 01:25:38" "2015-08-14 01:25:38" "2015-08-14 01:25:38" "2015-08-14 01:25:38" 16384 0 0 c Even though those have different date information, using the -c, -u or -U option does always result in alphabetic ordering. This happens on a locally mounted UFS file system. The mount options here do not involve anything special: /dev/ad6 on /home (ufs, local, soft-updates) So those should not be the source of the problem. > N.B.: Senile Bettflucht ;-) ?? No, just "commonly unacceptable working hours". ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...