Am Montag, 14. August 2006 08:27 schrieb Roger Oberholtzer: [...]
This assumes that the mount point will not exist until the media is inserted. This is not always the case. I am interested in the case where the mount point exists even when the media is not mounted. Like in the old days of fstab. BTW, I am hoping to do this from a C program. Preferably without calling a script. Unless the script is better than sliced bread. [...]
Try the statvfs() call (demo program without any checks or
validations):
#include