From owner-freebsd-stable@FreeBSD.ORG Mon Sep 1 17:08:23 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4AE383D for ; Mon, 1 Sep 2014 17:08:23 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 992101480 for ; Mon, 1 Sep 2014 17:08:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=/yF0vzrA8aP0FwoGNOSH4ohg5kCySMLpeW6PyO2eiY0=; b=EJw86dQNuR+7GhHUFFNcChRc2KjWAqwrjxaTNwqH6c2BkmNYDBfPDjRYsZWEMD3ccunBBMXk+NyB7MqAiFXI8MmYvymPhvKn9KW8b7mM/ozXSPwNSCsffb3QIcPvofv8FRSHWYJiH+WMnAm21pv9A8kaGYm/3nDzcUIXlQcvlHc=; Received: from [114.121.160.184] (port=41011 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XOV5a-003yaI-75; Mon, 01 Sep 2014 11:08:22 -0600 Date: Tue, 2 Sep 2014 01:08:16 +0800 From: Erich Dollansky To: Adam Vande More Subject: Re: du: strange behaviour Message-ID: <20140902010816.49a656ee@X220.alogt.com> In-Reply-To: References: <20140901235750.220be58e@X220.alogt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2014 17:08:23 -0000 Hi, On Mon, 1 Sep 2014 11:25:15 -0500 Adam Vande More wrote: > On Mon, Sep 1, 2014 at 10:57 AM, Erich Dollansky < > erichsfreebsdlist@alogt.com> wrote: > > > Hi, > > > > I just try to get a Raspberry Pi up and running. I use a FreeBSD > > installation to do this: > > > > FreeBSD X220.alogt.com 10.1-PRERELEASE FreeBSD 10.1-PRERELEASE #44 > > r270870: Mon Sep 1 08:46:27 WITA 2014 > > erich@X220.alogt.com:/usr/obj/usr/src/sys/X220 amd64 > > > > For some reason I did > > > > [X220]/rescue (root) > du * > > 6.6M [ > > 12K dhclient-script > > 4.0K nextboot > > 6.6M total > > [X220]/rescue (root) > > > > > A plain du gives this: > > > > [X220]/rescue (root) > du > > 6.6M . > > 6.6M total > > [X220]/rescue (root) > > > > > If I do the same inside the directory containing /rescue for the > > Raspberry, I get a list ending with these lines: > > > > 5.7M unxz > > 5.7M vi > > 5.7M whoami > > 5.7M xz > > 5.7M xzcat > > 5.7M zcat > > 5.7M zfs > > 5.7M zpool > > 768M total > > > > This is what I also would have expected for the amd64 directory. > > > > Why does du stop after [ but includes the two scripts? > > > > Of course, all the other files are also in this directory as shown > > by ll: > > > > total 931792 > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 [ > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 atmconfig > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 badsect > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 bsdlabel > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 bunzip2 > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 bzcat > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 bzip2 > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 camcontrol > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 cat > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 ccdconfig > > -r-xr-xr-x 138 root wheel 6.5M Sep 1 09:16 chflags > > > > ... > > > > Does somebody have any ideas? > > > > man du | grep '\-l' > du -l * > I do not really get this. The other files are there but not seen because of hard links in /rescue? Why is this then different on /rescue for ARM? Erich