bluecherrydvr / bluecherry-apps

Bluecherry surveillance system (server application)
http://www.bluecherrydvr.com
GNU General Public License v2.0
211 stars 68 forks source link

Change from lazy media storage cleanup to eager #677

Closed andrey-utkin closed 6 months ago

andrey-utkin commented 6 months ago

Before, if there was any storage location below max use threshold, the cleanup was skipped. This might cause problem described in https://github.com/bluecherrydvr/bluecherry-apps/issues/656 : as long as one location has space, others might fill up if used by other processes. The default location, /var/lib/bluecherry/recordings/ is usually on the system rootfs, where many services' and users' activities contribute to increasing the filesystem space used.

Now, the media cleanup happens if any of the storage locations is over the threshold.

andrey-utkin commented 6 months ago

Tested, works.