From owner-freebsd-stable@FreeBSD.ORG Mon Sep 1 16:25:17 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 88C9ABBC for ; Mon, 1 Sep 2014 16:25:17 +0000 (UTC) Received: from mail-pd0-x22f.google.com (mail-pd0-x22f.google.com [IPv6:2607:f8b0:400e:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F9011FC4 for ; Mon, 1 Sep 2014 16:25:17 +0000 (UTC) Received: by mail-pd0-f175.google.com with SMTP id ft15so6478805pdb.6 for ; Mon, 01 Sep 2014 09:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yw1SIYWZxAt2f5PHncW+aLekM80LLes19WdZfPp0Ht0=; b=csp7KQX/+N1w0XEXyTBQ/1VDxop4Qpd5KeBZ80zIzG6wSUDqxfi/ZGeBZEfckljbb4 4AYN6y6w0c9FaMFPB6nh4NMTt4ASx3TYVYefL0uO2Eum+5XnIIsm9vBiv67+rMvCy+DK fx9JHNqREFF2f++qm+a1g8kRj2RnAcieLbr2i0DFLfv3lP/k5+7M4TOuTZS/aIHwJ/Fk +Jn6bwM9KG87Oq3QwtZxofvOt8Wyn3RrkfD5boFhEDQBAQJaTYktmJ9pPaezwYBskxvE hi8SAQlSDC14hqnk03yIBdoFMTykktiXr9SqBO2dVFUn9B4Pgxuy1Zx2x9my6jEMQrNT TXjw== MIME-Version: 1.0 X-Received: by 10.68.57.144 with SMTP id i16mr41116066pbq.48.1409588715383; Mon, 01 Sep 2014 09:25:15 -0700 (PDT) Received: by 10.70.118.132 with HTTP; Mon, 1 Sep 2014 09:25:15 -0700 (PDT) In-Reply-To: <20140901235750.220be58e@X220.alogt.com> References: <20140901235750.220be58e@X220.alogt.com> Date: Mon, 1 Sep 2014 11:25:15 -0500 Message-ID: Subject: Re: du: strange behaviour From: Adam Vande More To: Erich Dollansky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 16:25:17 -0000 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 * -- Adam