Put 'partition free space' value into file on CIFS share
Hallo,
i have a debian based internet router running on a 16GB CompactFlash Card. It contains a 15GB partition for CIFS that gets accessed by windows systems. The problem is i don't see (on the windows client side) how much space is left on the share so i thought about creating a file on the share that always includes the free space value by creating a cron job that updates that file every second or so but i guess it would be much better if it only gets updated after actual I/O writes. Any ideas how to do that in bash? Additionally, i once stumbled upon some kind of 'mini http server' with curl, wget or something. But i can't remember anymore. Getting the 'free space' by http would be nice as well. Any ideas about that? |
Hi there,
Quote:
However, it does that only if the network share is mapped to a drive letter. But that's a flaw of Windows. Quote:
Quote:
Quote:
[X] Doc CPU |
Even though curl and wget can send raw http requests it is ncat i was actually searching for. It can listen on a port and send back the free space value. That's what i meant by simple httpd.
Regarding the 'free space' solution i'm currently looking into a wear-level friendly method. To place a file into ramdisk and use its name as descriptor like '200MB free'. That file should be linked to a file in the CIFS share in a way it also reflects/links the filename so there should be no I/O writes on the CompactFlash card but i'm not sure if ext4 supports that at all (having two files linked in a way that renaming one leads to renaming the 2nd as well). |
All times are GMT -5. The time now is 03:35 AM. |