[mythtv] 'Special' storage groups and free space calculations
Alexander Fisher
alex at alexfisher.me.uk
Sat Dec 8 13:45:44 UTC 2012
Hi
I've recently migrated to zfs (zfs on linux, not zfs-fuse).
I've created separate zfs filesystems for all my storage groups
(zfspool/mythtv/recordings, zfspool/mythtv/livetv etc). I've only
actually got one 'recordings' storage group, the 'default' storage
group on a single mythtv master backend. All my other storage groups
are the specials ones created (fanart, db backups etc)
Now that all storage groups are on their own fileystems, the free
space calculations aren't making much sense.
Myth now detects 3 drives.
/var/lib/mythtv/recordings,/var/lib/mythtv/livetv and
/var/lib/mythtv/streaming.
It detects the same amount of free space in each of these filesystems
(since they all inherit from the same zfspool/mythtv filesystem), and
adds them all up resulting in 3 times as much free space being
reported as there actually is. Support for zfs shared storage might
be tricky to fix, and something i'll just have to put up with, but ...
Should the 'Streaming' storage group be added to the list of special
groups in mythtv/libs/libmythbase/storagegroup.cpp ?
Would this stop it being included in the same way that the mythvideo
special groups and 'db backups' haven't been included?
That would still leave the livetv filesystem.
Why is the livetv filesystem free space being included in the free
space statistics? It is already listed as a special group (and I've
verified you can't schedule a recording to go to this group). Does
this make it a special special group? :)
Kind regards,
Alex
More information about the mythtv-dev
mailing list