-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request(hardlinking): Automagically hardlink to differing partition/disk/mount #625
Comments
@Audionut just to confirm you want something like: ["/datadir1" => "/linkdir1"]
["/datadir2" => "/linkdir2"] this is kind of solved by mergefs, but might make sense for some cases |
mergefs would appear to be unix only.
A cleaner solution, IMO: |
there are 2 things:
["/linkdir1" => ["/datadir1/tv", "/linkdir1/movies"]]
["/linkdir2" => ["/datadir2/tv", "/linkdir2/movies"]] |
At first, I didnt understand what you said because hardlinks by definition dont work across disks, volumes or partitions. But NooNameR makes me see that it's about mapping the dataDir to linkDir. Thanks. Usually we just use a fuse system that handles it, so cross-seed - or any other software - dont need to be working around it. Example, if you have 3 disks, a fuse system would create a single pool "/mnt/media" (or anything else) and you just use it. The fuse system is the one responsable to manage inodes and support - or not - the hardlink. |
Don't understand 1, as linking only works with data matching. 2 is good, although it would ideally parse the data directories only from the So instead of adding directories to Fuse system makes sense, and if that does indeed work, it would seem the logical solution. I'll have to edumacate myself though, as I don't understand how a single directory in the xseed config and storage pool, automagically creates the link on the correct disk. |
Well, it would be the same way that cross seed would do it. This seems like a pretty niche feature, so unless we see a swarm of demand for it, we probably won't implement it anytime soon . I would look at solutions for running a single file system on multiple disks, or running multiple instances of cross-seed. |
I was totally missing that point that everything is in the same mount, so of course the hard link would work within the mount, regardless of the underlying drive structure. |
This will change with v6, as torrent-based linking has been implemented if appropriately configured
This is how unraid operates, and I believe even mergerfs works in this manner. This is the general consensus on how to accomplish this currently. It requires some reading and understanding of the implementation, but isn't overly complex. I don't think someone's unwillingness and laziness to get their system configured in a way that accomplishes their desires is necessarily something we should just "solve" for them. It's not a small task, but it's not like a huge hurdle for the user. Spend a few hours and you can have it up rather easily without us "doing it for them" - just my thoughts though. I don't mean to sound like I'm attacking, but there are solutions to this issue, and the implementation isn't something we necessarily have to prioritize to accommodate people who don't want to bother with getting their system setup in a way to facilitate the optimal setup. |
Hardlinking seems like the most preferred linking solution, and indeed, #619 seeks to set hardlinking as the default.
Currently only one
linkDir:
is allowed to be set, resulting in what would appear to be non-optimal outcomes for those who have media files spread across different partition/disk/mount.The most ideal solution, for us dumb users, would seem to allow multiple entries within
linkDir:
, where the user can set the directories for each partition/disk/mount, and xseed automagically uses the appropriate directory when linking.The text was updated successfully, but these errors were encountered: