Re: [RFC][PATCH] btrfs orphan code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-06-24 at 14:04 -0400, Josef Bacik wrote:
> Hello,
> 
> I want to throw this out here now that I've got most of the heavy lifting done
> for this code to make sure what I'm doing is ok for now.  I've added an
> ORPHAN_DIR item key to have a hidden dir per root.  Right now it just does it
> for whatever the default root is on mount, but I'm going to fix that to do the
> orphan dir check/creation on lookup of a subvolume root.  I also changed
> btrfs_insert_dir_item to take an index flag to indicate whether or not we want
> to add a DIR_INDEX item along with the dir item.  Let me know if there are any
> glaring design problems with what I've done.  Thanks much,
> 

Ok, I've poked my head out of the locking code now, this is a pretty
good start.  But, the plan you mentioned on irc to use a special item
type instead of a directory is a better way to go.

After that, we'll have to hammer on it a bit to flush out any races
between relinking a recently unlinked file and the orphan code.

Thanks a lot for tackling this.

-chris


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux