From unknown Sun Jun 15 08:49:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28657: Random sort-order in du Resent-From: Holger Klene Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 30 Sep 2017 20:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28657 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 28657@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150680436830936 (code B ref -1); Sat, 30 Sep 2017 20:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Sep 2017 20:46:08 +0000 Received: from localhost ([127.0.0.1]:41517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyOeC-00082o-EU for submit@debbugs.gnu.org; Sat, 30 Sep 2017 16:46:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyOeA-000822-AE for submit@debbugs.gnu.org; Sat, 30 Sep 2017 16:46:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyOe3-0005Mz-VU for submit@debbugs.gnu.org; Sat, 30 Sep 2017 16:45:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_20,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dyOe3-0005Mj-RG for submit@debbugs.gnu.org; Sat, 30 Sep 2017 16:45:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyOe2-000184-7s for bug-coreutils@gnu.org; Sat, 30 Sep 2017 16:45:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyOdx-0005F5-Qo for bug-coreutils@gnu.org; Sat, 30 Sep 2017 16:45:54 -0400 Received: from mout.gmx.net ([212.227.17.22]:57479) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dyOdx-0005D5-FQ for bug-coreutils@gnu.org; Sat, 30 Sep 2017 16:45:49 -0400 Received: from meerschweinchen.localnet ([93.233.186.195]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MBnPX-1e99sD1VB9-00Anj2 for ; Sat, 30 Sep 2017 22:45:46 +0200 From: Holger Klene Date: Sat, 30 Sep 2017 22:45:24 +0200 Message-ID: <9599824.sogUTvA7sW@meerschweinchen> Organization: privat User-Agent: KMail/5.2.3 (Linux/4.8.0-59-generic; KDE/5.26.0; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4085825.OWnFzbKPld"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:7TM+Y0PV6KhWb2jnjAwr0/+KjRjL6UaaqzNQS4eRqFrVXGgiLO0 qWdxd2a9wq51P8cdSD0IB8eVH7humHY56fhr78uvy5bDvW6NtaN8q4MxD/lZsxXNc/t7lkf SGjvy0R6AiaGNhIZcIM5Q0YwH5NNP3ZiknWZnrKqt1O83tG2Nl1LayhqFLYaKn7N2XIKFWN D5tyT4lbgObTpBQcat4ZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:GcQuR4+KOuY=:+g1EpABfQXUSYoMCLgOggX ox72Xz2b7m6+BgzYKsjeJEV/zJUrpuA8/aeKn7Bv/Iq3nMBRHp/Vpfhuh5pfG5xrdHYZVYV4e mpxBGOBErCBr2Zr7B90Hoci2M8G/eRA4oTSj11YqTHW/DM0mrT41ZKkWbl+WGEP7Cofm4r5bk B5XELLDtdcd1fE3Fl6Y8Yfzt3SV9cM35SVvE8jMeBrjG6osw+DLRnHmySjGiYiJRhy6u73dBT 5WoB9FO8mEd/htkCD9lBv0nig7uccNo60WkjkHoXjWQPe8l6KT8sXCHLau10nA7bfzCdb7f5S 2RotNkNmlXdwsJh5Blr/NFw4SGy4RuMcHMddoUiGdsNoI/DeU6yXyiP8NNTTPx6tBiLif5j4P aQQdV3aW1FCWEx2JAwjvXSF5NhrHwQ1udcC6+lYzhLOpJMGXPYzv36QnH6zlo6fQuclCxlrUV exCwyvyvZzcqJ/lzZ/wGEU4pis+vMLOsRKVgxDtBGRPvp2byUnIZ6p/FaXVW3FZC7CHwv75Rf U83Ir7x0uGRaomSvEvMlaap2FIH0JL5xWd1FR8RK7PH/uOJJL8Yp02M475j14gqG/GGcGw2F4 p7UsxqtYtsENdpxRmI+cf+SH5SbPylA6MU9uM01BqVz/I+CaRJnhYh5+OWtQ4LmO585qJHR3p e1km6A4eS2cabqmvOoD0gCMXqo1WuiO3xNvh1pG/AFIu2IiCCuivdp52ytz6Rjndkxi93UJYB jkiFwI0KCNtaI17ZEmHvduHCSC3OudHjptC0I8A4zSQWpyBPWJewgmkEZxqjo6KCcL+1vhBCE bIq5dU5JXaXiBBZ0fFHJxbhaWkKMQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) --nextPart4085825.OWnFzbKPld Content-Type: multipart/alternative; boundary="nextPart2103885.BosEWrjOZJ" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart2103885.BosEWrjOZJ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hello! I'm using Back-In-Time for backups. Out of curiosity, I wanted to know, how big the snapshots are and came across the FAQ: https://github.com/bit-team/backintime/wiki/FAQ#how-can-i-check-if-my-snapshots-are-incremental-using-hard-links They recommend: du -hd1 /media//backintime///1/ Say I have a subdirectory structure in that folder like this: + 2015 I + FileA 1GB Inode 123 + 2016 I + FileA 1GB Inode 123 + 2017 + FileA 1GB Inode 123 Now du returns something like: 1G 2016 0G 2015 0G 2017 1G . So the hardlinked FileA is reported only once (this is actually the desired feature, to not report it thrice). But now the order determines, which folder the size is reported against. But I had to learn, that the order of items in the filesystem is unpredictable: https://serverfault.com/questions/406229/ensuring-a-repeatable-directory-ordering-in-linux#answer-675748 I'd like to suggest to add some sort-controlling options known from ls --sort The desired behavior in this case would be either alphabetical or reverse-alphabetical to attribute the FileA to the first or last appearance in the tree respectively. Thanxs Holger PS: coreutils 8.25 with ext4 file-system -- |_|/ MfG | |\ Holger Klene PGP Key ID: 0x22FFE57E --nextPart2103885.BosEWrjOZJ Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

Hello!

 

I'm using Back-In-Time for backups. Out of curiosity, I wanted to know, how big the snapshots are and came across the FAQ:

 

https://github.com/bit-team/backintime/wiki/FAQ#how-can-i-check-if-my-snapshots-are-incremental-using-hard-links

 

They recommend:

 

du -hd1 /media/<USER>/backintime/<HOST>/<USER>/1/

 

Say I have a subdirectory structure in that folder like this:

 

+ 2015

I + FileA 1GB Inode 123

+ 2016

I + FileA 1GB Inode 123

+ 2017

+ FileA 1GB Inode 123

 

Now du returns something like:

1G 2016

0G 2015

0G 2017

1G .

 

So the hardlinked FileA is reported only once (this is actually the desired feature, to not report it thrice).

 

But now the order determines, which folder the size is reported against. But I had to learn, that the order of items in the filesystem is unpredictable:

 

https://serverfault.com/questions/406229/ensuring-a-repeatable-directory-ordering-in-linux#answer-675748

 

I'd like to suggest to add some sort-controlling options known from ls --sort

 

The desired behavior in this case would be either alphabetical or reverse-alphabetical to attribute the FileA to the first or last appearance in the tree respectively.

 

Thanxs

 

Holger

 

PS: coreutils 8.25 with ext4 file-system

 

--

|_|/ MfG

| |\ Holger Klene

 

PGP Key ID: 0x22FFE57E

--nextPart2103885.BosEWrjOZJ-- --nextPart4085825.OWnFzbKPld Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIcBAABCAAGBQJZ0AJkAAoJEH950t460SwgkLkP/RCCVYmKKhWcmJFmuVaIDpZK WJeT/PDJphMymXqaaVG07ugr8Mj/ugeppybs8gYYmWQ7IPJIlDm7qI53IQhYuNaG NbuccXDH34cntmoOWaHJoGoN3DRGyevoo2UkCTu5qyiiGaKLJOpsZPDe42wEqLDY PzdzLzktnM4bY5F2/gURpPdv+/EAs6Tvq5a9P0ORAc0j1gGDD0yWyhpXq+fw/DVd P6wGdt7hxHLj4EqXl8/G/bWgnjebY7RsViv38parvGBBTSUT0A2oxeyB3vq2Dih6 2BjjKDHd+6s6t1fti8RDdOnq3J9MVH8fbOemCoI36/FulKpB/9vH7NquJDkLtaS4 pvuqeMayMX5nxQs2DfCU19IDx7GH2Wj+wFNuxnOF+kaDihzfg5zNvG6QSjgJwrJk BX33jKbXZv5yzRgRZtSJ6CA0Qo6N+u0YqKkE0W8KJbeKrTM/BnsEA5IGhxrucdH2 2X2d+QQ+ygdlJYv3mnAVAVeiJfoNJoKBvn4GIBI48XKuPYfyymOxHjKbpRxcHFM0 wPiJXx9jePv4/KFljylyjDT6wmaQIPTbnl4eJf8ZtQGRQ259923Ofx/LDaCze7O1 Wbos9MwdWkgBfPxmLOnOVvGmMtdHPF8WRYTSeRGbUbyp4b/MKl5Z37nYK+tLdznr sxz6EevMqVLvwleO9NRa =r3Bq -----END PGP SIGNATURE----- --nextPart4085825.OWnFzbKPld-- From unknown Sun Jun 15 08:49:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28657: Random sort-order in du Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 30 Sep 2017 21:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28657 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Holger Klene , 28657@debbugs.gnu.org Received: via spool by 28657-submit@debbugs.gnu.org id=B28657.1506805724939 (code B ref 28657); Sat, 30 Sep 2017 21:09:02 +0000 Received: (at 28657) by debbugs.gnu.org; 30 Sep 2017 21:08:44 +0000 Received: from localhost ([127.0.0.1]:41522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyP07-0000F4-TT for submit@debbugs.gnu.org; Sat, 30 Sep 2017 17:08:44 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:47899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyP06-0000Ep-Po for 28657@debbugs.gnu.org; Sat, 30 Sep 2017 17:08:43 -0400 Received: by mail-io0-f177.google.com with SMTP id e189so2256659ioa.4 for <28657@debbugs.gnu.org>; Sat, 30 Sep 2017 14:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=7SoPMzCsGDJnG0HNHlc9ZTlbDuW4t4mhu0G7v1w5Gzg=; b=X61EXof6bBog+E0f0VnFrUCxwm5zl6rExv7fl9GARujF9LDISpNG/Z8boqf1EC8JlX JvX1oAZ0+uMPI+0tRdcmQx/wsgCAwKSs7Pmt2fgcC/ct/gmH2DIv1VLtTCT873eKSEoy ldjHZL+mmy24dD/RJUa5UBGYpiv0/uKn+Mly1Nd1ik24e8tebPQCB4NuH6tQX0e8DEMr QoxeiDKX0lc/f+rSNj9a2RdeZdEbwFFdHLZiw/nK3vTY4p+v7uSrWVCPUDGEIXxgocqg Ra1iF4aN0W6RmkWyC1ygVzr44OUD0BXBTBkYxcSPZtiJSmSCWgRfXM5hOXP8awgFzmNQ iG3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7SoPMzCsGDJnG0HNHlc9ZTlbDuW4t4mhu0G7v1w5Gzg=; b=ADuhI+aScOkVn6fu0E3uqdozEzgxTRvNC1YCHHqNPyN1/x3EkRgR0Ch8tW0qv+80bZ l2JWyOh4DvxoWjOdJ4svT5TFG5+2CMkYVHylZXggq6CYezo50EkMvs8oLeKm3t8tqBVg 9+0XS/jpwdJGtltmBaZSPdMvGK5QQaqxa6SJj934OPCSxJfQtcRDAUjsIyWZq+NHluRQ WJ3IZSlLYD7MxGVmlIbf+KmjU7c+BJn5kcLHqz79gI0qzyoTpUKol3394WO7XWUJKRxc wWmo8Bpky+N1XH3+xkmGJMnP66NWkzM95n8S+mAweUbb2M6XCU2gldL/BDnxBe3VChQ5 JKEQ== X-Gm-Message-State: AMCzsaWecBGnPAl2EFc2fVtu/ld8jmoApbB7VYoGlSLv8cV1UHbjf9wi 3Ww7jKY+wAeLnqju6pjFB8p14BDb X-Google-Smtp-Source: AOwi7QByrcK9aTU5VMlzz6pbQX4nT7ztsejjn795cFfnzX3I5UqBG5hV1kPxprysyc0ueAF580mIGQ== X-Received: by 10.107.17.132 with SMTP id 4mr18180578ior.165.1506805717121; Sat, 30 Sep 2017 14:08:37 -0700 (PDT) Received: from [192.168.88.239] (moose.housegordon.com. [184.68.105.38]) by smtp.gmail.com with ESMTPSA id e79sm3051738iof.74.2017.09.30.14.08.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Sep 2017 14:08:36 -0700 (PDT) References: <9599824.sogUTvA7sW@meerschweinchen> From: Assaf Gordon Message-ID: Date: Sat, 30 Sep 2017 15:08:35 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <9599824.sogUTvA7sW@meerschweinchen> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, On 2017-09-30 02:45 PM, Holger Klene wrote: > > du -hd1 /media//backintime///1/ [...] > Now du returns something like: > 1G 2016 > 0G 2015 > 0G 2017 > 1G . > > [...] > > But now the order determines, which folder the size is reported against. But I had to learn, that > the order of items in the filesystem is unpredictable: > [...] > The desired behavior in this case would be either alphabetical or reverse-alphabetical to > attribute the FileA to the first or last appearance in the tree respectively. 'du' can report the directories in the order they are given on the command line, and so you can use a slightly longer command to force directory order. Example 1: Create a tiny directory structure example: mkdir -p data/{a,b,c} seq 10000 > a/1 ln a/1 b/2 ln a/1 c/3 Default output is unordered, as you've observed: $ du -hd1 data 580K data/c 4.0K data/b 4.0K data/a 592K data But if you use shell-globbing, the shell will automatically order the directory alphabetically: $ du -c -hd1 data/* 580K data/a 4.0K data/b 4.0K data/c 588K total If you want a more complicated ordered (e.g. reverse order), you can combine "find" (to list the directories), "sort" (to sort in your desired order) and "du --files0-from" to read the file list from stdin: $ find data -maxdepth 1 -mindepth 1 -type d -print0 \ | sort -z -k1r,1 \ | du --files0-from=- -c -h 580K data/c 4.0K data/b 4.0K data/a 588K total Note the "find -print0" and "sort -z" which force NUL-terminated filenames (instead of newlines) - this is required to be used with "du --files0-from" . Another tip: If you have filenames with mixed letters and numbers or numbers with different width (e.g. "2017.7" and "2017.11") you can use "sort -z -k1V,1" to sort them correctly. Hope this helps, - assaf From unknown Sun Jun 15 08:49:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28657: Random sort-order in du Resent-From: Holger Klene Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 30 Sep 2017 21:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28657 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Assaf Gordon Cc: 28657@debbugs.gnu.org Received: via spool by 28657-submit@debbugs.gnu.org id=B28657.15068076994444 (code B ref 28657); Sat, 30 Sep 2017 21:42:02 +0000 Received: (at 28657) by debbugs.gnu.org; 30 Sep 2017 21:41:39 +0000 Received: from localhost ([127.0.0.1]:41534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyPVy-00019b-RZ for submit@debbugs.gnu.org; Sat, 30 Sep 2017 17:41:39 -0400 Received: from mout.gmx.net ([212.227.17.21]:58717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyPVw-00019J-F2 for 28657@debbugs.gnu.org; Sat, 30 Sep 2017 17:41:36 -0400 Received: from meerschweinchen.localnet ([93.233.186.195]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MI8iw-1e2FGR1LaA-003wYH; Sat, 30 Sep 2017 23:41:29 +0200 From: Holger Klene Date: Sat, 30 Sep 2017 23:41:19 +0200 Message-ID: <3249775.maJGIIpPzi@meerschweinchen> Organization: privat User-Agent: KMail/5.2.3 (Linux/4.8.0-59-generic; KDE/5.26.0; x86_64; ; ) In-Reply-To: References: <9599824.sogUTvA7sW@meerschweinchen> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1565423.6kRxzaTEDg"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:ACVbv3xj0vZ1YYRZtWXdBAJaMvIWL5ro58zsmjVKjJfVN/MH92v Dh9r69GByyq5QqT/dtLuSWWzM8ZTZJgTksaldYeHxuhGZ49EFQ46J6+KLx7/O6qsne1YnMX apgf8GL2q9ZVFhFB8dOcf5t03drhH98WyGr0PRTillC6wcG7G8TvciWIYxCsW3ZI2ufpWn5 GRXDFpu9CSGYUd3WTt55g== X-UI-Out-Filterresults: notjunk:1;V01:K0:AYJYPVmrWeg=:NcGV9YwenPKTf1x28jecMS C69lliQ3dpWAO/WIC3Ce6YfeI2c3CfL3hW/i4MYknBb/yQm5PToNlsAEP8BLWn4FZxI1EHz/k hvi7RQD62+aRoK9UOKW8qPSVikRFf6LFCXSvxCl/wOs7XRSLtpUYkuVjTAAvaOdI5dfc0qhao vPJY6KsRBzZaqurM0HDiCzY5h3BSAoH0snxvCLtpjQK0G/Gn0INYinuVVsPcbGJu+MUSnOPwv /hTicS9ppR5bsK4e2Ooc/im/rLAHikNh2Bt30Pl7YtUvMlo4ARuMiffKNHUiaif9rD7KQldLe AkJu+WGm1DsyKW1tFOI48lYHuNAqCFIZc7kezpi1maw9owQhHf9qJJJ1e1di0IPh3ZB3kuOTC efWn0lJnMt7WFco6n41f41ZkH05BUViowQNC3B9PuFbU7XwiZgHSQEpvHbw6AVlhOkpDeV1HA AdY+MhEYNmfqmUAYDoc30rSjwftUFZJ1l0cPNWbG6UxwOsBNmIdQR31u1qZxmeWEhvkmBx6ca 5m4O4o8NNBg1JbN+lubaLsB8Pj9bJy444hm/GhG8Gd9qp8VvEQTX8dZsfft4SXmh6uK5/8KDG YCqXuQMiANTXI5u6ImP9dZ8YSx76n+XidwDMGWedNt2SW8kQnP0ixp+J4mKuWS1E4I7E6ikgK QQSOh1cPP0kMtuRnnmgiL6NMCUelFTZi5BWDvQy3opny2UVtS21X57Zer7QfiA+o+QZ8WKDkY AeUzGCYriRzTNSPQ2NZobV+LEdzdvwYAJy4sYt0zeNX3Ez6bDX5LLg8XZCgRvcCXf4IYhwUo4 vLsrhOHsNXCWjx3G4nuHktzL7muPg== X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) --nextPart1565423.6kRxzaTEDg Content-Type: multipart/alternative; boundary="nextPart1982381.SZsQvkkUfx" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart1982381.SZsQvkkUfx Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" * Assaf Gordon [30.09.17 15:08]: > But if you use shell-globbing, the shell will automatically > order the directory alphabetically: > > $ du -c -hd1 data/* > 580K data/a > 4.0K data/b > 4.0K data/c > 588K total > > Hope this helps, > - assaf Who would have thought of passing multiple directories ... This is the solution to my problem, though I better write it down to not forget, as I'm quite sure, I'll not remember it in a month :-) Thank you for the immediate reply. Holger -- |_|/ MfG | |\ Holger Klene PGP Key ID: 0x22FFE57E --nextPart1982381.SZsQvkkUfx Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

* Assaf Gordon <assafgordon@gmail.com> [30.09.17 15:08]:

> But if you use shell-globbing, the shell will automatically

> order the directory alphabetically:

>

> $ du -c -hd1 data/*

> 580K data/a

> 4.0K data/b

> 4.0K data/c

> 588K total

>

> Hope this helps,

> - assaf

 

Who would have thought of passing multiple directories ...

 

This is the solution to my problem, though I better write it down to not forget, as I'm quite sure, I'll not remember it in a month :-)

 

Thank you for the immediate reply.

 

Holger

 

--

|_|/ MfG

| |\ Holger Klene

 

PGP Key ID: 0x22FFE57E

--nextPart1982381.SZsQvkkUfx-- --nextPart1565423.6kRxzaTEDg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIcBAABCAAGBQJZ0A9/AAoJEH950t460Swgx8IQAJE1kT4+2OsF7pJsD0xlQjQ1 CLAp6QYsQ98vjtXKA2NmqWb8CmAIQvkzHTB4XcHEf8PzzUEtWINiUbs3U8DK7GAA aelrf7SoST9+11U6ofDniJnMgikj5OGOh+ffyZGSQ/OoQ+DYCJ5gFjflving6EvR tDKC/TYFJnDbWFIA/pSC3qjAtFgxGIuazMe6eWxW4RfVC+kno3GKQJBN9MGIUsKX 6URNnS8grNnhyK3P1wEqlDig0VUbaZ91dnK4CGcBG5Rr+JPX1OmtvnQ02Lq/DKpU NI/3qb/+MIJBlrFuLocvmYmRXABaPMH4WT8n+nr2kfw5o4sXTlAEZYrhDfTDplRp 0I3rm17lQKO7yWnssH5YFkinM3ij2kgOQ01i5Og+z7BEfaer7SNAvFUBdu6ATg/m ENu+c2zRAFlGaKdz3zRRl4NIPtiwx1qBepBIFn196nLDNGzcpGIY3k5LJmUlIvwu ygCteG7Um3iXYLjuyC4tD9F6dsdFt+iQl77ys0f7NgnsCyIBUcuXCsADhCjoFbHK z4CIUocOpZlBM4OU9YzRO5BDOtmp6sA2xoznUpL2YujR+nDkLf7KX7TFIEqidJ8Q i+H92LfXY5fDVsO/FTxh26s/WAn5S9DkhXH47F12/7pSs3Dh3dVfUgT7hETul3AB jtgM94MmI8HS7otRcfNn =JMzj -----END PGP SIGNATURE----- --nextPart1565423.6kRxzaTEDg-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 17:45:57 2017 Received: (at control) by debbugs.gnu.org; 30 Sep 2017 21:45:57 +0000 Received: from localhost ([127.0.0.1]:41538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyPa9-0001H8-EQ for submit@debbugs.gnu.org; Sat, 30 Sep 2017 17:45:57 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:54573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyPa8-0001Gn-RU; Sat, 30 Sep 2017 17:45:57 -0400 Received: by mail-it0-f50.google.com with SMTP id e134so3443675ite.3; Sat, 30 Sep 2017 14:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HBgUF3YCnWHS+7hCoU8WzDlMw43Q18AhGbE6Gy+3wBY=; b=KCzmFj5lhbESniABtjinHxyH++lnoq3CmTyZXaXFIquPWXIlRMzoVG5GfwZokDOiiE lYCJdfpdK+lnRA221BUWsKC/eyDnffaeuIr1+VVIJBZ1kNEysWARUhWRCp5ALLSmEIsF ounU6quQGeZTxnPoC0L8GFX5Xe6w6K7PbwtPbmlWd9ieQHcnu7wfhdrP4/GlzzPHU8xp T9R126CDFAlY20jsV7ffFDU+BH6/CT+LGk0fie0owhISiumcNetIvU1BI13LCUiK/imH eiMRaugZuHc7mZLOkVnPAwRpTcQ2EKdoVzGlqia9KRuoWd2k57AXgl5GcGsDsQU3rY7i 2vCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HBgUF3YCnWHS+7hCoU8WzDlMw43Q18AhGbE6Gy+3wBY=; b=MwmuqC6Npp73INub8SVY1HtsOflCyZnES79dKWLE174UGOwje0y+MyhulsW+VfNxdp 3HvzxMeslZn82Om9jPC2zZfoFI8zr22LhZMccszNg6wyzxSC8YJfDAxKSbrRG8gDWvjy nGsCZi3WwS4ZOSVYa/qg+zHJdfHrYfl4syzCXQA/bx8n/MDoecj62HaCq/DlNLmFOs0Z AJPrEEpG5M/706umYHN5FFwP5cK6Au++wlsq/jCSUeTVwOcbx0bey+eB1Q3cFFROIKBN yIOdRAjEtFmX791X/6kzjxGitSlJJ2kO66YRSobYMRPpimZMjG4jFwxIi6G2+xHsAS4W ingA== X-Gm-Message-State: AHPjjUgBiDnDWGywKdYi2CIjCFXUMy03JIetgT3wJsjDZmvo+BiiX9W4 gQy/FrCX1WxDoRMCbICz11OZw10Q X-Google-Smtp-Source: AOwi7QBdUWvV3plFKAGct657RzRXtvTqIVjYuy9o4tJfd142kIZFSG+sHksD38bMbhF6T/6c/ju0mA== X-Received: by 10.36.31.200 with SMTP id d191mr12969525itd.81.1506807950952; Sat, 30 Sep 2017 14:45:50 -0700 (PDT) Received: from [192.168.88.239] (moose.housegordon.com. [184.68.105.38]) by smtp.gmail.com with ESMTPSA id n142sm2864095itn.12.2017.09.30.14.45.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Sep 2017 14:45:50 -0700 (PDT) Subject: Re: bug#28657: Random sort-order in du To: Holger Klene References: <9599824.sogUTvA7sW@meerschweinchen> <3249775.maJGIIpPzi@meerschweinchen> From: Assaf Gordon Message-ID: <44b57345-aae0-3be3-49e1-649334ff92da@gmail.com> Date: Sat, 30 Sep 2017 15:45:49 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <3249775.maJGIIpPzi@meerschweinchen> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: control Cc: 28657-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) tag 28657 notabug stop Hello, On 2017-09-30 03:41 PM, Holger Klene wrote: > * Assaf Gordon [30.09.17 15:08]: >> But if you use shell-globbing, the shell will automatically >> order the directory alphabetically: > >> $ du -c -hd1 data/* >   > > Who would have thought of passing multiple directories ... > > This is the solution to my problem, though I better write it down to not > forget, as I'm quite sure, I'll not remember it in a month :-) > Thank you for confirming. I'm thus marking this bug report as "done", but discussion can continue by replying to this thread. regards, - assaf From unknown Sun Jun 15 08:49:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Holger Klene Subject: bug#28657: closed (Re: bug#28657: Random sort-order in du) Message-ID: References: <44b57345-aae0-3be3-49e1-649334ff92da@gmail.com> <9599824.sogUTvA7sW@meerschweinchen> X-Gnu-PR-Message: they-closed 28657 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: notabug Reply-To: 28657@debbugs.gnu.org Date: Sat, 30 Sep 2017 21:46:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1506807963-4949-1" This is a multi-part message in MIME format... ------------=_1506807963-4949-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28657: Random sort-order in du which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 28657@debbugs.gnu.org. --=20 28657: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28657 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1506807963-4949-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28657-done) by debbugs.gnu.org; 30 Sep 2017 21:46:00 +0000 Received: from localhost ([127.0.0.1]:41540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyPaC-0001HI-KX for submit@debbugs.gnu.org; Sat, 30 Sep 2017 17:46:00 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:54573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyPa8-0001Gn-RU; Sat, 30 Sep 2017 17:45:57 -0400 Received: by mail-it0-f50.google.com with SMTP id e134so3443675ite.3; Sat, 30 Sep 2017 14:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HBgUF3YCnWHS+7hCoU8WzDlMw43Q18AhGbE6Gy+3wBY=; b=KCzmFj5lhbESniABtjinHxyH++lnoq3CmTyZXaXFIquPWXIlRMzoVG5GfwZokDOiiE lYCJdfpdK+lnRA221BUWsKC/eyDnffaeuIr1+VVIJBZ1kNEysWARUhWRCp5ALLSmEIsF ounU6quQGeZTxnPoC0L8GFX5Xe6w6K7PbwtPbmlWd9ieQHcnu7wfhdrP4/GlzzPHU8xp T9R126CDFAlY20jsV7ffFDU+BH6/CT+LGk0fie0owhISiumcNetIvU1BI13LCUiK/imH eiMRaugZuHc7mZLOkVnPAwRpTcQ2EKdoVzGlqia9KRuoWd2k57AXgl5GcGsDsQU3rY7i 2vCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HBgUF3YCnWHS+7hCoU8WzDlMw43Q18AhGbE6Gy+3wBY=; b=MwmuqC6Npp73INub8SVY1HtsOflCyZnES79dKWLE174UGOwje0y+MyhulsW+VfNxdp 3HvzxMeslZn82Om9jPC2zZfoFI8zr22LhZMccszNg6wyzxSC8YJfDAxKSbrRG8gDWvjy nGsCZi3WwS4ZOSVYa/qg+zHJdfHrYfl4syzCXQA/bx8n/MDoecj62HaCq/DlNLmFOs0Z AJPrEEpG5M/706umYHN5FFwP5cK6Au++wlsq/jCSUeTVwOcbx0bey+eB1Q3cFFROIKBN yIOdRAjEtFmX791X/6kzjxGitSlJJ2kO66YRSobYMRPpimZMjG4jFwxIi6G2+xHsAS4W ingA== X-Gm-Message-State: AHPjjUgBiDnDWGywKdYi2CIjCFXUMy03JIetgT3wJsjDZmvo+BiiX9W4 gQy/FrCX1WxDoRMCbICz11OZw10Q X-Google-Smtp-Source: AOwi7QBdUWvV3plFKAGct657RzRXtvTqIVjYuy9o4tJfd142kIZFSG+sHksD38bMbhF6T/6c/ju0mA== X-Received: by 10.36.31.200 with SMTP id d191mr12969525itd.81.1506807950952; Sat, 30 Sep 2017 14:45:50 -0700 (PDT) Received: from [192.168.88.239] (moose.housegordon.com. [184.68.105.38]) by smtp.gmail.com with ESMTPSA id n142sm2864095itn.12.2017.09.30.14.45.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Sep 2017 14:45:50 -0700 (PDT) Subject: Re: bug#28657: Random sort-order in du To: Holger Klene References: <9599824.sogUTvA7sW@meerschweinchen> <3249775.maJGIIpPzi@meerschweinchen> From: Assaf Gordon Message-ID: <44b57345-aae0-3be3-49e1-649334ff92da@gmail.com> Date: Sat, 30 Sep 2017 15:45:49 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <3249775.maJGIIpPzi@meerschweinchen> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 28657-done Cc: 28657-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) tag 28657 notabug stop Hello, On 2017-09-30 03:41 PM, Holger Klene wrote: > * Assaf Gordon [30.09.17 15:08]: >> But if you use shell-globbing, the shell will automatically >> order the directory alphabetically: > >> $ du -c -hd1 data/* >   > > Who would have thought of passing multiple directories ... > > This is the solution to my problem, though I better write it down to not > forget, as I'm quite sure, I'll not remember it in a month :-) > Thank you for confirming. I'm thus marking this bug report as "done", but discussion can continue by replying to this thread. regards, - assaf ------------=_1506807963-4949-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 30 Sep 2017 20:46:08 +0000 Received: from localhost ([127.0.0.1]:41517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyOeC-00082o-EU for submit@debbugs.gnu.org; Sat, 30 Sep 2017 16:46:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyOeA-000822-AE for submit@debbugs.gnu.org; Sat, 30 Sep 2017 16:46:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyOe3-0005Mz-VU for submit@debbugs.gnu.org; Sat, 30 Sep 2017 16:45:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_20,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dyOe3-0005Mj-RG for submit@debbugs.gnu.org; Sat, 30 Sep 2017 16:45:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyOe2-000184-7s for bug-coreutils@gnu.org; Sat, 30 Sep 2017 16:45:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyOdx-0005F5-Qo for bug-coreutils@gnu.org; Sat, 30 Sep 2017 16:45:54 -0400 Received: from mout.gmx.net ([212.227.17.22]:57479) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dyOdx-0005D5-FQ for bug-coreutils@gnu.org; Sat, 30 Sep 2017 16:45:49 -0400 Received: from meerschweinchen.localnet ([93.233.186.195]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MBnPX-1e99sD1VB9-00Anj2 for ; Sat, 30 Sep 2017 22:45:46 +0200 From: Holger Klene To: bug-coreutils@gnu.org Subject: Random sort-order in du Date: Sat, 30 Sep 2017 22:45:24 +0200 Message-ID: <9599824.sogUTvA7sW@meerschweinchen> Organization: privat User-Agent: KMail/5.2.3 (Linux/4.8.0-59-generic; KDE/5.26.0; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4085825.OWnFzbKPld"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:7TM+Y0PV6KhWb2jnjAwr0/+KjRjL6UaaqzNQS4eRqFrVXGgiLO0 qWdxd2a9wq51P8cdSD0IB8eVH7humHY56fhr78uvy5bDvW6NtaN8q4MxD/lZsxXNc/t7lkf SGjvy0R6AiaGNhIZcIM5Q0YwH5NNP3ZiknWZnrKqt1O83tG2Nl1LayhqFLYaKn7N2XIKFWN D5tyT4lbgObTpBQcat4ZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:GcQuR4+KOuY=:+g1EpABfQXUSYoMCLgOggX ox72Xz2b7m6+BgzYKsjeJEV/zJUrpuA8/aeKn7Bv/Iq3nMBRHp/Vpfhuh5pfG5xrdHYZVYV4e mpxBGOBErCBr2Zr7B90Hoci2M8G/eRA4oTSj11YqTHW/DM0mrT41ZKkWbl+WGEP7Cofm4r5bk B5XELLDtdcd1fE3Fl6Y8Yfzt3SV9cM35SVvE8jMeBrjG6osw+DLRnHmySjGiYiJRhy6u73dBT 5WoB9FO8mEd/htkCD9lBv0nig7uccNo60WkjkHoXjWQPe8l6KT8sXCHLau10nA7bfzCdb7f5S 2RotNkNmlXdwsJh5Blr/NFw4SGy4RuMcHMddoUiGdsNoI/DeU6yXyiP8NNTTPx6tBiLif5j4P aQQdV3aW1FCWEx2JAwjvXSF5NhrHwQ1udcC6+lYzhLOpJMGXPYzv36QnH6zlo6fQuclCxlrUV exCwyvyvZzcqJ/lzZ/wGEU4pis+vMLOsRKVgxDtBGRPvp2byUnIZ6p/FaXVW3FZC7CHwv75Rf U83Ir7x0uGRaomSvEvMlaap2FIH0JL5xWd1FR8RK7PH/uOJJL8Yp02M475j14gqG/GGcGw2F4 p7UsxqtYtsENdpxRmI+cf+SH5SbPylA6MU9uM01BqVz/I+CaRJnhYh5+OWtQ4LmO585qJHR3p e1km6A4eS2cabqmvOoD0gCMXqo1WuiO3xNvh1pG/AFIu2IiCCuivdp52ytz6Rjndkxi93UJYB jkiFwI0KCNtaI17ZEmHvduHCSC3OudHjptC0I8A4zSQWpyBPWJewgmkEZxqjo6KCcL+1vhBCE bIq5dU5JXaXiBBZ0fFHJxbhaWkKMQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) --nextPart4085825.OWnFzbKPld Content-Type: multipart/alternative; boundary="nextPart2103885.BosEWrjOZJ" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart2103885.BosEWrjOZJ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hello! I'm using Back-In-Time for backups. Out of curiosity, I wanted to know, how big the snapshots are and came across the FAQ: https://github.com/bit-team/backintime/wiki/FAQ#how-can-i-check-if-my-snapshots-are-incremental-using-hard-links They recommend: du -hd1 /media//backintime///1/ Say I have a subdirectory structure in that folder like this: + 2015 I + FileA 1GB Inode 123 + 2016 I + FileA 1GB Inode 123 + 2017 + FileA 1GB Inode 123 Now du returns something like: 1G 2016 0G 2015 0G 2017 1G . So the hardlinked FileA is reported only once (this is actually the desired feature, to not report it thrice). But now the order determines, which folder the size is reported against. But I had to learn, that the order of items in the filesystem is unpredictable: https://serverfault.com/questions/406229/ensuring-a-repeatable-directory-ordering-in-linux#answer-675748 I'd like to suggest to add some sort-controlling options known from ls --sort The desired behavior in this case would be either alphabetical or reverse-alphabetical to attribute the FileA to the first or last appearance in the tree respectively. Thanxs Holger PS: coreutils 8.25 with ext4 file-system -- |_|/ MfG | |\ Holger Klene PGP Key ID: 0x22FFE57E --nextPart2103885.BosEWrjOZJ Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

Hello!

 

I'm using Back-In-Time for backups. Out of curiosity, I wanted to know, how big the snapshots are and came across the FAQ:

 

https://github.com/bit-team/backintime/wiki/FAQ#how-can-i-check-if-my-snapshots-are-incremental-using-hard-links

 

They recommend:

 

du -hd1 /media/<USER>/backintime/<HOST>/<USER>/1/

 

Say I have a subdirectory structure in that folder like this:

 

+ 2015

I + FileA 1GB Inode 123

+ 2016

I + FileA 1GB Inode 123

+ 2017

+ FileA 1GB Inode 123

 

Now du returns something like:

1G 2016

0G 2015

0G 2017

1G .

 

So the hardlinked FileA is reported only once (this is actually the desired feature, to not report it thrice).

 

But now the order determines, which folder the size is reported against. But I had to learn, that the order of items in the filesystem is unpredictable:

 

https://serverfault.com/questions/406229/ensuring-a-repeatable-directory-ordering-in-linux#answer-675748

 

I'd like to suggest to add some sort-controlling options known from ls --sort

 

The desired behavior in this case would be either alphabetical or reverse-alphabetical to attribute the FileA to the first or last appearance in the tree respectively.

 

Thanxs

 

Holger

 

PS: coreutils 8.25 with ext4 file-system

 

--

|_|/ MfG

| |\ Holger Klene

 

PGP Key ID: 0x22FFE57E

--nextPart2103885.BosEWrjOZJ-- --nextPart4085825.OWnFzbKPld Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIcBAABCAAGBQJZ0AJkAAoJEH950t460SwgkLkP/RCCVYmKKhWcmJFmuVaIDpZK WJeT/PDJphMymXqaaVG07ugr8Mj/ugeppybs8gYYmWQ7IPJIlDm7qI53IQhYuNaG NbuccXDH34cntmoOWaHJoGoN3DRGyevoo2UkCTu5qyiiGaKLJOpsZPDe42wEqLDY PzdzLzktnM4bY5F2/gURpPdv+/EAs6Tvq5a9P0ORAc0j1gGDD0yWyhpXq+fw/DVd P6wGdt7hxHLj4EqXl8/G/bWgnjebY7RsViv38parvGBBTSUT0A2oxeyB3vq2Dih6 2BjjKDHd+6s6t1fti8RDdOnq3J9MVH8fbOemCoI36/FulKpB/9vH7NquJDkLtaS4 pvuqeMayMX5nxQs2DfCU19IDx7GH2Wj+wFNuxnOF+kaDihzfg5zNvG6QSjgJwrJk BX33jKbXZv5yzRgRZtSJ6CA0Qo6N+u0YqKkE0W8KJbeKrTM/BnsEA5IGhxrucdH2 2X2d+QQ+ygdlJYv3mnAVAVeiJfoNJoKBvn4GIBI48XKuPYfyymOxHjKbpRxcHFM0 wPiJXx9jePv4/KFljylyjDT6wmaQIPTbnl4eJf8ZtQGRQ259923Ofx/LDaCze7O1 Wbos9MwdWkgBfPxmLOnOVvGmMtdHPF8WRYTSeRGbUbyp4b/MKl5Z37nYK+tLdznr sxz6EevMqVLvwleO9NRa =r3Bq -----END PGP SIGNATURE----- --nextPart4085825.OWnFzbKPld-- ------------=_1506807963-4949-1--