From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 19 20:17:40 2015 Received: (at submit) by debbugs.gnu.org; 20 Jul 2015 00:17:41 +0000 Received: from localhost ([127.0.0.1]:54135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGym4-0004Zq-9x for submit@debbugs.gnu.org; Sun, 19 Jul 2015 20:17:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43070) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGhnb-0005N3-WC for submit@debbugs.gnu.org; Sun, 19 Jul 2015 02:10:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGhnV-0007YR-Qk for submit@debbugs.gnu.org; Sun, 19 Jul 2015 02:10:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGhnV-0007YG-Ou for submit@debbugs.gnu.org; Sun, 19 Jul 2015 02:10:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGhnU-00014G-So for bug-coreutils@gnu.org; Sun, 19 Jul 2015 02:10:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGhnR-0007WR-Jx for bug-coreutils@gnu.org; Sun, 19 Jul 2015 02:10:00 -0400 Received: from mout.gmx.com ([74.208.4.201]:57189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGhnR-0007WE-Do for bug-coreutils@gnu.org; Sun, 19 Jul 2015 02:09:57 -0400 Received: from [14.2.22.213] by 3capp-mailcom-lxa01.server.lan (via HTTP); Sun, 19 Jul 2015 08:09:55 +0200 MIME-Version: 1.0 Message-ID: From: "Steve Russell" To: bug-coreutils@gnu.org Subject: cp: add option to sort when copying Content-Type: text/plain; charset=UTF-8 Date: Sun, 19 Jul 2015 08:09:55 +0200 Importance: normal Sensitivity: Normal Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-Provags-ID: V03:K0:B+DgkAaWMwAGZgEmMXpdmQmUDzktskVk/DQ845T24LE 80bvbk292vPfH7e60kdRYhw7mpmU+FgMjKPpL7z5uvEgHeox9o CzdWQLOGCTiKYMD4cyjNxwA94Ql5+Xq4gMplqf44hXfX8JybCY 9UqPvdNLeigfRhOCfBvDqWsO4XJDteB70qwdTZ71WNIZtCUv6l P+huNst/ZXGRmo83DRy8xX0PrNaC0HEVivHIRSnovUy041/9xd 2RLVyNqg/s8H27Ksmx70LACtPyaoxoCmN9EJjKSOcVQWu+aJ+P OcW14gexgTIm7SvCNhOh+VuazzI X-UI-Out-Filterresults: notjunk:1;V01:K0:nf6u5y1B8Eo=:V5F/TIzaAZn2z+vCOeKK1F 8Ea2rkjgQNeAr2O+1pi0w40YVTtHDvY1iD0TAlIuZByD7AQYfaqKHCFiDeyfAtMdWHKfc5s1A Fr7z/1fthmm/gIfoY2SuUYdooajyupNRprAf5lY6ruuoKJ80KAOWLkec657QLpzEukALihDS8 VEyAYIGtsM03AcEylAVSoY6Un2Ojtb4rJgugO21Xl1JY0ZCyRgL4qjXsk5x73WPmGg13vgzIS dPhviT1Oyba1NdLzASQGjb6iztOSfZiU/YKDn/BL2NKLiBERU6m8/QD5ts2v6B4JQjY/uSKRu W0DvvyRzvXLMGn09GZM+A6u8EA1bOosu7KGhoqOl9OiugkYV/rmOJGkuuHmh2DflUsHjZ6hsm d2KWmw8DLdSXPaC02hrdXsGd0tkT0fE6l/+eln7Vpv7Z6C9Wpee6SKAXFpkO/VGT6by6HPDTU VdizbFOkmw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 19 Jul 2015 20:17:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.8 (---) When performing a recursive copy of a large number of files it would be hel= pful to have an option to copy the files in each directory in sorted order = of the file names=2E There are a couple of use cases for this=2E =C2=A0 The first is to be able to easily observe the progress of the copy using t= he -v option=2E Currently, the "random" order of the copy means I can not t= ell how far the copy has progressed=2E On occasions I have seen cp -v displ= ay a top level directory starting with 'z' and assumed the copy was almost = done only to see it start copying files from another directory earlier in t= he alphabet=2E =C2=A0 The second use case is sometimes I would like to start working with the de= stination files before the copy has completed=2E For example if I see the d= estination has the top level directory "foo", an ordered copy means I can w= ork with directories that are alphabetically before "foo" knowing that they= will not change=2E Another minor use case is some mp3 players ignore the file names and metad= ata and always play tracks in the order they appear in the directory=2E Usu= ally the filesystems used by these players will order directories in the sa= me order files are added=2E For content like eBooks where track order is cr= itical, a sorted copy would be a useful workaround for the limitations of t= hese players=2E From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 19 20:34:53 2015 Received: (at 21094) by debbugs.gnu.org; 20 Jul 2015 00:34:53 +0000 Received: from localhost ([127.0.0.1]:54146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGz2i-0004yt-Qx for submit@debbugs.gnu.org; Sun, 19 Jul 2015 20:34:53 -0400 Received: from mail2.vodafone.ie ([213.233.128.44]:48584) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGz2g-0004ye-CI for 21094@debbugs.gnu.org; Sun, 19 Jul 2015 20:34:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqUIAFpBrFVtTPNY/2dsb2JhbABcgkFSwkOCVAKBHkwBAQEBAQGBC4QkAQEEIw8BVgsNCwICBRYLAgIJAwIBAgFFBgEMCAEBiC4BrlOFbo9RASuBIooqhQ2CaIFDBZFbgneHT40zkCYmg309gnwBAQE Received: from unknown (HELO localhost.localdomain) ([109.76.243.88]) by mail2.vodafone.ie with ESMTP; 20 Jul 2015 01:34:43 +0100 Message-ID: <55AC4222.5010601@draigBrady.com> Date: Mon, 20 Jul 2015 01:34:42 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Steve Russell , 21094@debbugs.gnu.org Subject: Re: bug#21094: cp: add option to sort when copying References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21094 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) On 19/07/15 07:09, Steve Russell wrote: > When performing a recursive copy of a large number of files it would be helpful to have an option to copy the files in each directory in sorted order of the file names. There are a couple of use cases for this. > > The first is to be able to easily observe the progress of the copy using the -v option. Currently, the "random" order of the copy means I can not tell how far the copy has progressed. On occasions I have seen cp -v display a top level directory starting with 'z' and assumed the copy was almost done only to see it start copying files from another directory earlier in the alphabet. > > The second use case is sometimes I would like to start working with the destination files before the copy has completed. For example if I see the destination has the top level directory "foo", an ordered copy means I can work with directories that are alphabetically before "foo" knowing that they will not change. > > Another minor use case is some mp3 players ignore the file names and metadata and always play tracks in the order they appear in the directory. Usually the filesystems used by these players will order directories in the same order files are added. For content like eBooks where track order is critical, a sorted copy would be a useful workaround for the limitations of these players. Thanks for the suggestion. The implementation would be quite simple given that we already sort directory entries by inode number to improve performance (though note that that performance enhancement may not be effective going forward with newer file systems and SSDs). The implementation would leverage gnulib's SAVEDIR_SORT_NAME functionality. The interface would probably mirror tar's --sort option. I'm 55:45 for exposing this option to cp, install and maybe mv. thanks, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 20 09:47:08 2015 Received: (at 21094) by debbugs.gnu.org; 20 Jul 2015 13:47:08 +0000 Received: from localhost ([127.0.0.1]:54475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHBPQ-00086F-7z for submit@debbugs.gnu.org; Mon, 20 Jul 2015 09:47:08 -0400 Received: from mail1.vodafone.ie ([213.233.128.43]:33310) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHBPO-00085h-F5 for 21094@debbugs.gnu.org; Mon, 20 Jul 2015 09:47:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am4IADb7rFVtTZAL/2dsb2JhbABcgkFShBJOvWmCVAKBKEwBAQEBAQGBC4QkAQEEIw8BVgsNCwICBRYLAgIJAwIBAgFFBgEJAwgBAYguAbE4hW6PZgErgSKKKoUNgmiBQwWUUodPjTOQJiaDfT2CfAEBAQ Received: from unknown (HELO localhost.localdomain) ([109.77.144.11]) by mail1.vodafone.ie with ESMTP; 20 Jul 2015 14:46:58 +0100 Message-ID: <55ACFBD3.6060403@draigBrady.com> Date: Mon, 20 Jul 2015 14:46:59 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Steve Russell , 21094@debbugs.gnu.org Subject: Re: bug#21094: cp: add option to sort when copying References: <55AC4222.5010601@draigBrady.com> In-Reply-To: <55AC4222.5010601@draigBrady.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21094 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) On 20/07/15 01:34, Pádraig Brady wrote: > On 19/07/15 07:09, Steve Russell wrote: >> When performing a recursive copy of a large number of files it would be helpful to have an option to copy the files in each directory in sorted order of the file names. There are a couple of use cases for this. >> >> The first is to be able to easily observe the progress of the copy using the -v option. Currently, the "random" order of the copy means I can not tell how far the copy has progressed. On occasions I have seen cp -v display a top level directory starting with 'z' and assumed the copy was almost done only to see it start copying files from another directory earlier in the alphabet. >> >> The second use case is sometimes I would like to start working with the destination files before the copy has completed. For example if I see the destination has the top level directory "foo", an ordered copy means I can work with directories that are alphabetically before "foo" knowing that they will not change. >> >> Another minor use case is some mp3 players ignore the file names and metadata and always play tracks in the order they appear in the directory. Usually the filesystems used by these players will order directories in the same order files are added. For content like eBooks where track order is critical, a sorted copy would be a useful workaround for the limitations of these players. > > Thanks for the suggestion. > > The implementation would be quite simple given that we already > sort directory entries by inode number to improve performance > (though note that that performance enhancement may not be > effective going forward with newer file systems and SSDs). > > The implementation would leverage gnulib's SAVEDIR_SORT_NAME functionality. > > The interface would probably mirror tar's --sort option. > > I'm 55:45 for exposing this option to cp, install and maybe mv. Upon consideration I'm down to 50:50. For the progress use case, one can use rsync, or perhaps an explicit progress option in cp. For the mp3 order case, one can use tar --sort to do the transfer. thanks, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 20 12:20:10 2015 Received: (at 21094) by debbugs.gnu.org; 20 Jul 2015 16:20:10 +0000 Received: from localhost ([127.0.0.1]:54780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHDnV-0004qq-Ie for submit@debbugs.gnu.org; Mon, 20 Jul 2015 12:20:09 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:42246) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHDnR-0004qg-KB for 21094@debbugs.gnu.org; Mon, 20 Jul 2015 12:20:07 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3mZpDh2Twvz3hj7X; Mon, 20 Jul 2015 18:20:04 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3mZpDf5MjWzvkKF; Mon, 20 Jul 2015 18:20:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id pTcxSrdhS8ZW; Mon, 20 Jul 2015 18:20:01 +0200 (CEST) X-Auth-Info: ypmwLZf/Hs490t+zNSHJbGGU0EGYMO6e+OALlQhRuKYVQRu5sX4PlypQ4F1KVdq9 Received: from igel.home (ppp-62-216-213-245.dynamic.mnet-online.de [62.216.213.245]) by mail.mnet-online.de (Postfix) with ESMTPA; Mon, 20 Jul 2015 18:20:00 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 9982D2C2631; Mon, 20 Jul 2015 18:20:00 +0200 (CEST) From: Andreas Schwab To: =?utf-8?Q?P=C3=A1draig?= Brady Subject: Re: bug#21094: cp: add option to sort when copying References: <55AC4222.5010601@draigBrady.com> <55ACFBD3.6060403@draigBrady.com> X-Yow: LBJ, LBJ, how many JOKES did you tell today??! Date: Mon, 20 Jul 2015 18:20:00 +0200 In-Reply-To: <55ACFBD3.6060403@draigBrady.com> (=?utf-8?Q?=22P=C3=A1draig?= Brady"'s message of "Mon, 20 Jul 2015 14:46:59 +0100") Message-ID: <87wpxuer7z.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21094 Cc: Steve Russell , 21094@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (/) Pádraig Brady writes: > For the progress use case, one can use rsync, > or perhaps an explicit progress option in cp. rsync also sorts. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 16:50:43 2018 Received: (at 21094) by debbugs.gnu.org; 24 Oct 2018 20:50:43 +0000 Received: from localhost ([127.0.0.1]:40580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFQ70-0001a6-SE for submit@debbugs.gnu.org; Wed, 24 Oct 2018 16:50:43 -0400 Received: from mail-pl1-f172.google.com ([209.85.214.172]:44977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFQ6y-0001Zo-QU; Wed, 24 Oct 2018 16:50:41 -0400 Received: by mail-pl1-f172.google.com with SMTP id d23-v6so2768447pls.11; Wed, 24 Oct 2018 13:50:40 -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=RNJXCt7wcVLfpTuS43eZtMZKYxcu7lqxz/lqwKCmyrA=; b=EoipqEkDBtyurHz52NS64DNmux1rk5Z/b/Ae40EKaCW+l37KEKjo/+/jpfB2Y4JCt4 EB7ThaCJxq3psD6EC18UkRf61FfndkpSwKQxTO6YEkD3ciK1pcei4Qkv2CGlPiDsCLR3 1BUA6UzeZHtB9sXOlL8VGSIHdXGq1DtGoR6b+xQZ0FuMqwjVuTOxfLyLjY8+PQOrctco wgzgDVL5PPTmYhAUJqU6sgAahBm2Vcgo8dHAZ+S5/mZpUJo19tiIqsEO/1KM9ryxrkg0 Lb6U4GrIQaRRwhP/Ghxo9RYSpeEiz/mAoM4OPGNbvNAP2xyc2VTDp8MEUjoWAU2NIGUO lg4A== 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=RNJXCt7wcVLfpTuS43eZtMZKYxcu7lqxz/lqwKCmyrA=; b=Ox0eRXo2mnxK3pYOPR6Tjwfv994G1NcDRajcxWkYL+lj6NV++pDvrvcROUsMaeBv2d 6rD481w/YSfHFobdsBqt0KY5Fu1ZA0JQN+ImRRMrJVs/ONd/dEPWcnSZ0oz4b6RS7LRY EnedLsuBijuXlDAoe7bYhY4i5KNJ1bqGzhnLxXCUDQtHg13iX3eK0kQ1ooyw6/YlDoav rvlDnflqBsLsoSbrrD2li9Bc42QxglHVXt+8dYRnVuEt2DKJgOKMVu4zAKqWSGU0N8gZ 2YPtHi0VGQAK+lHSYwIu+vW58zRoViwoekHbW8nc7SPmRpMkLlyP+eKln24a9syRpLiI muLw== X-Gm-Message-State: AGRZ1gKw0YPSEI6gjXNFRyMUnkUmjtb3wIVK8xOgR7SGyXFfFROI+M3v Vq2JUCS+TBxVVYv1M8NZegrYr/jJBfU= X-Google-Smtp-Source: AJdET5en7kp8Feb4/UhdM45x0KNjR3uf2dhRUs4Jui3ybuv3jz1LJoFz+345tpLMqGYIJ0LtzmBO7g== X-Received: by 2002:a17:902:7587:: with SMTP id j7-v6mr3847514pll.67.1540414234008; Wed, 24 Oct 2018 13:50:34 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id u124-v6sm15935033pgc.0.2018.10.24.13.50.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 13:50:32 -0700 (PDT) Subject: Re: bug#21094: cp: add option to sort when copying To: 21094@debbugs.gnu.org References: <55AC4222.5010601@draigBrady.com> <55ACFBD3.6060403@draigBrady.com> <87wpxuer7z.fsf@igel.home> From: Assaf Gordon Message-ID: <87578bba-4f33-aff3-f3e6-0b5c4f6b2e86@gmail.com> Date: Wed, 24 Oct 2018 14:50:31 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <87wpxuer7z.fsf@igel.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 21094 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: -1.0 (-) severity 21094 wishlist tags 21094 wontfix close 21094 stop (triaging old bugs) On 20/07/15 10:20 AM, Andreas Schwab wrote: > Pádraig Brady writes: > >> For the progress use case, one can use rsync, >> or perhaps an explicit progress option in cp. > > rsync also sorts. > Given the above, and no further comments in 3 years, I'm closing this bug. -assaf From unknown Sun Jun 15 09:03:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 22 Nov 2018 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator