scottlamb / moonfire-nvr

Moonfire NVR, a security camera network video recorder
Other
1.19k stars 138 forks source link

Enhancement: Reduction of Disk Allocation --Warn & Wait #214

Open jlpoolen opened 2 years ago

jlpoolen commented 2 years ago

I have not updated Moonfire-nvr for about 2 months? But while moonfire is undertaking a disk allocation reduction, I thought I might use the time to log this enhancement request.

I've added three now cameras and needed to re-allocated the 8 TBs of disk space to bring onboard 6 new areas (main & sub) for storage for the three new cameras. As a result, I reduced the allocation on other cameras.

After I confirm the amount typing in the exact size requirements, the system goes into file removal mode and the colored console is replaced by a screen filled with numbers (presumably files) that are to be deleted. The process can take several minutes, and knowing what I do in working with large amount of files in the project, one must be patient and let the Western Digital Purple hard disk execute the file removals.

A new user may not realize what a task is being undertaken by removing files, so I suggest 1) the user be warned that the file removal may take 5-10 minutes or more, and/or 2) that the colorful ncurses interface may be replaced temporarily with a screen-full of files and that the program is not going into a tailspin. It's the final screen, an artifact of ncurses and a huge removal command, that may confuse new users.

Here are some relevant screenshots. putty_2022-04-03_13-51-33

putty_2022-04-03_13-52-30

putty_2022-04-03_13-52-47

edit: I should add that I'm also in a tmux "shell" when I execute the above.

jlpoolen commented 2 years ago

The deletion of saved files in the sub feed directory took approximately 36 minutes until the colorful ncurses screen was restored. putty_2022-04-03_14-29-02