From: Micah Dombrowski Subject: 'Subset' Hard Links Date: Thu, 17 Sep 2009 20:02:13 -0400 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit To: linux-fsdevel@vger.kernel.org Return-path: Received: from mail-qy0-f173.google.com ([209.85.221.173]:42686 "EHLO mail-qy0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040AbZIRACM (ORCPT ); Thu, 17 Sep 2009 20:02:12 -0400 Received: by qyk3 with SMTP id 3so542674qyk.4 for ; Thu, 17 Sep 2009 17:02:15 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hello, I couldn't think of anywhere else to ask such a question, and google is useless as I have no unique keywords. I am wondering if it is possible with some/any filesystems to have multiple hard links to a file, some of which only point to a subset of the file's data. Eg: firstname -> all data bytes 1 to 10 secondname -> bytes 3 to 10 thirdname -> bytes 5 to 7 This would clearly require some interesting locking of the file WRT writes, but it seems like it should be possible, and even easy for read-only access. I deal with moderately large data files (50+GB), and such a thing would be incredibly useful to me for pulling out interesting bits of my data without having to make copies of the data itself. A related method I was wishing existed would allow concatenation of files simply by deleting all but one hard link, and changing the remaining one to point to all of the original files' data as fragments. This would be great, as 'cat'ing together six 10GB files is pretty slow, and it seems silly to be copying all of that data around when I only need one actual instance of the full data on disk, and that instance already exists, albeit in a fragmented manner. Do any tools for doing this sort of thing exist? Thanks, Micah Dombrowski Department of Physics and Astronomy Dartmouth College