could i-node numbers be made unique on a whole device, or somehow adjusted to avoid collisions, instead of simply disallowing this useful operation? On Thu, Oct 7, 2010 at 4:13 PM, Goffredo Baroncelli <kreijack@libero.it> wrote:> The link across subvolumes is not allowable. In the beginning it was > possible, but that was source of bugs. See the thread "Hard link across > subvolumes" > > http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg03286.html-- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Saturday, 09 October, 2010, you (David Nicol) wrote:> could i-node numbers be made unique on a whole device, or somehow > adjusted to avoid collisions, instead of simply disallowing this > useful operation?In case of a snapshot make sense to preserve the inode number.> On Thu, Oct 7, 2010 at 4:13 PM, Goffredo Baroncelli <kreijack@libero.it>wrote:> > > The link across subvolumes is not allowable. In the beginning it was > > possible, but that was source of bugs. See the thread "Hard link across > > subvolumes" > > > > http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg03286.html >-- gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it> Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
when i have some time to work on this I will figure out a way to pull inodes from a larger pool or include the subvolume id at creation time in them or something so that the collisions go away. Surely it must be possible to prefix or suffix the inode number with a few bits that are per-subvolume unique. On Sat, Oct 9, 2010 at 8:44 AM, Goffredo Baroncelli <kreijack@libero.it> wrote:> > In case of a snapshot make sense to preserve the inode number.-- l''égalité des droits pour les ambidextres -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
>> The link across subvolumes is not allowable. In the beginning it was >> possible, but that was source of bugs. See the thread "Hard link across >> subvolumes" >> >> http://www.mail-archive.com/linux-btrfs <at> vger.kernel.org/msg03286.htmlSimilar for cp --reflink across subvolumes - also won''t work. If btrfs is to support deduplication one day, it has to work across subvolumes - otherwise, it won''t be very useful. -- Tomasz Chmielewski http://wpkg.org -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html