aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/StorageHelpers
AgeCommit message (Collapse)Author
2026-03-24Lint for the Linter GodsJoshua M. Boniface
2026-03-23Apply suggestions from code reviewJoshua M. Boniface
Co-authored-by: JPVenson <ger-delta-07@hotmail.de>
2026-03-23Properly define variable typeJoshua M. Boniface
2026-03-23Ensure ResolvedPath is sent on error tooJoshua M. Boniface
2026-03-23Fix FolderStorageInfo to show parent filesystemJoshua M. Boniface
A direct implementation using DriveInfo directly on a path does not work as expected. The method will return a DriveInfo object with the given path as both the Name and the RootDirectory, which is not helpful. Instead, add parsing logic to find the best possible match out of all filesystems on the system for the path, including handling edge cases involving symlinked paths in the chain. This ensures that the resulting DeviceId is a valid filesystem, allowing it to be used in the UI to show a better description. It also includes the new ResolvedPath which will show, if required, what the Path resolved to after all symlinks are interpolated. One possible issue here is that walking all drives as-is might become slow(er) on a system with many partitions, but even on my partition-heavy system with over a dozen ZVOLs and remote mounts, this takes under 0.4 seconds including runup time for `dotnet run`, so I imagine this should be fine.
2025-11-17Backport pull request #15390 from jellyfin/release-10.11.zBond-009
Don't enforce a minimum amount of free space for the tmp and log dirs Original-merge: 097cb87f6f6df662361a4cd536b56470e4cd68a3 Merged-by: crobibero <cody@robibe.ro> Backported-by: Bond_009 <bond.009@outlook.com>
2025-10-27Backport pull request #15098 from jellyfin/release-10.11.zBond-009
Lower required tmp dir size to 512MiB Original-merge: 0a6e8146be0ca207a9d4b30fa4eaa117a27786cd Merged-by: crobibero <cody@robibe.ro> Backported-by: Bond_009 <bond.009@outlook.com>
2025-05-04Cleanup file related code (#14023)Bond-009
2025-04-26Create directory before checking for size (#13962)JPVenson
2025-04-20Add Api and startup check for sufficient storage capacity (#13888)JPVenson