Hi, It seems currently hardlink is not support by ocfs2, is it planned to do? Is it possible for the current ocfs format?
On Thu, Apr 08, 2004 at 10:46:43AM +0800, Ling, Xiaofeng wrote:> Hi, > It seems currently hardlink is not support by ocfs2, is it planned > to do? > Is it possible for the current ocfs format?Well, anything's possible :) But no, we have no immediate plans for hard link support :( Are you using an application that requires them? --Mark -- Mark Fasheh Software Developer, Oracle Corp mark.fasheh@oracle.com
I'm not using application, I'm doing the test for ocfs2 as a general file system.> -----Original Message----- > From: Mark Fasheh [mailto:mark.fasheh@oracle.com]=20 > Sent: 2004=C4=EA4=D4=C28=C8=D5 11:39 > To: Ling, Xiaofeng > Cc: Ocfs2-Devel > Subject: Re: [Ocfs2-devel] Is hardlink support in the todo list? >=20 >=20 > On Thu, Apr 08, 2004 at 10:46:43AM +0800, Ling, Xiaofeng wrote: > > Hi, > > It seems currently hardlink is not support by ocfs2, is it=20 > > planned to do? Is it possible for the current ocfs format? > Well, anything's possible :) But no, we have no immediate=20 > plans for hard link support :( Are you using an application=20 > that requires them? > --Mark >=20 > -- > Mark Fasheh > Software Developer, Oracle Corp > mark.fasheh@oracle.com >=20
Hi, It is currently not planned for version 2, but it would not be too difficult to implement. With recent changes to inode handling this is made much easier. The best approach based on the disk structure that is already there would be to have the first file entry be the "master" for the hardlink, and all other names which are added later would have a pointer back to this file entry. We have flags in the fs already for handling the case where the master is deleted (marking it so as not to show up in readdir). Would just need to do some refcounting on the master to do final cleanup. Renames would be just like they are today for regular files, but would just need to migrate the "master" pointer to the new file entry instead of the data pointers. If anyone feels like implementing this (hint hint ;-) we can discuss the specifics further. Thanks! -kurt On Thu, Apr 08, 2004 at 10:46:43AM +0800, Ling, Xiaofeng wrote:> Hi, > It seems currently hardlink is not support by ocfs2, is it planned > to do? > Is it possible for the current ocfs format? > _______________________________________________ > Ocfs2-devel mailing list > Ocfs2-devel@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-devel