Mailing List archive

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

[vdr] Re: How to delete recordings?





Klaus Schmidinger wrote:
>>
>> > If you can give me some code that determines that "will be freed"-space
>> > I'll gladly include it!
>>
>> find /video  -type d -name \*.del -exec du -s {} \; | cut -d " " -f 1
|awk
>> 'program to calculate the sum, don't have my awk book handy :) '
>
>Well, we've just gotten rid of the external 'df' call to get the total
>amount of free disk space, so I wouldn't want to start with a new external
>command for this. I was thinking of some "internal" program code...
>
>Klaus


This weekend i took a little time and wrote a small patch that take into
account the "marked to be deleted" files while calculating the disk usage.
It's a patch against the vanilla vdr1.0.0 and can (hopefully) be found at

http://home.arcor.de/c.v/vdr/patch/vdr-1.0.0FreeSpace.diff

It works fine on my machine, but i only have a "simple" video disk
configuration: A single local 40GB disk which holds both the system and the
recorded movies. (movies at /video) Although I expect no problems, it would
be nice if someone with a more complex configuration (maybe a mix of local
and NFS directories) could give it a try.

And:
I'm not very familiar with linux (and with mailinglists too), so if i've
done something strange, please let me know.

Greetings,
Christian






Home | Main Index | Thread Index