I am mounting a remote network drive using FTP. When I do a statfs() on it, I get a -1. So I wanted to know
- Can statfs() read a remote network drive mounted using FTP?
- If not then how else can I get information (size, free space available) about this drive?
Thank you. Satya Sidhu
No.
There is a FTP SITE command which allows the client to send any command to the FTP server. Usually this is used for chmod and usually it is highly restricted by the server what commands you can use. You can try to check if the
df
command is available, but mostly it is not. Then you are out of luck, it least as long as you can only use ftp to communicate with the server.