From owner-freebsd-ports@FreeBSD.ORG Fri Jan 6 11:13:12 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E60AE106564A for ; Fri, 6 Jan 2012 11:13:12 +0000 (UTC) (envelope-from jankyj@unfs.us) Received: from morbid.purplehat.org (morbid.purplehat.org [206.225.83.29]) by mx1.freebsd.org (Postfix) with ESMTP id C433D8FC14 for ; Fri, 6 Jan 2012 11:13:12 +0000 (UTC) Received: from localhost (morbid.purplehat.org [206.225.83.29]) by morbid.purplehat.org (Postfix) with ESMTP id 483A085B0A4; Fri, 6 Jan 2012 03:13:12 -0800 (PST) Received: from morbid.purplehat.org ([206.225.83.29]) by localhost (morbid.purplehat.org [206.225.83.29]) (maiad, port 10024) with ESMTP id 58365-10; Fri, 6 Jan 2012 03:13:10 -0800 (PST) Received: from [192.168.1.3] (mx2.purplehat.org [174.51.182.248]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ek@purplehat.org) by morbid.purplehat.org (Postfix) with ESMTPSA id BA19685B0A3; Fri, 6 Jan 2012 03:13:10 -0800 (PST) Message-ID: <4F06D768.6040404@unfs.us> Date: Fri, 06 Jan 2012 04:13:44 -0700 From: Janketh Jay User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: Ganael LAPLANCHE References: <20120106102656.M75753@martymac.org> In-Reply-To: <20120106102656.M75753@martymac.org> X-Enigmail-Version: 1.4a1pre Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Cc: freebsd-ports@freebsd.org Subject: Re: Introducing fpart - a file partitioning tool X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2012 11:13:13 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ganael, On 01/06/2012 03:36 AM, Ganael LAPLANCHE wrote: > Hi everyone, > > Have you ever wondered how you could split a file tree into parts of the > same size, or into parts with a limited size or file number ? > > I have developed a small BSD-licensed tool called fpart that can do that > for you (see http://contribs.martymac.org and > https://sourceforge.net/projects/fpart). > > This small C program will crawl a given set of file or directory paths, > organize them and print resulting partitions. This can be useful to e.g. > launch several rsync(1) in parallel or store files on media of limited size. > > Here are some examples : > > 1) Produce 3 partitions, with (approximatively) the same size and number > of files : > > $ fpart -n 3 -o var-parts /var > > 2) Produce partitions of 4.4 GB, containing music files ready to be > burnt to a DVD : > > $ fpart -s 4724464025 -o music-parts /path/to/my/music > > 3) Produce partitions containing 10000 files each by examining /usr and > /home : > > $ find /usr ! -type d | ./fpart -f 10000 -i - /home | grep '^0:' > > The tool is already available in ports (sysutils/fpart) but has also > successfully been used on GNU/Linux. > > Enjoy ! > > Best regards, > > PS : comment and patches are, of course, welcome :) Awesome! This seems like a great idea! Thanks! I'll definitely test and play with it and let you know if I have any issues, bugs, patches, etc.. Regards, Janky Jay, III -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8G12QACgkQGK3MsUbJZn4c6ACffLvyINEqki3nWuO+udPRiDAc S3UAnRw2aGlCo2uiQS5U7ogkcbqWIY4T =r90c -----END PGP SIGNATURE-----