[LAD] OT.C Library for mounting, processing data

Bill White bill.white at griggsinst.com
Fri Mar 28 12:28:25 UTC 2008


On linux there is a system call for mounting disks.  Look at
the mount system call in section 2 with "man 2 mount" and
also man 2 umount.  It accomplishes pretty much the same
thing, but it will be much faster.  It may not matter to
you.


Christian Schoenebeck wrote:
> Am Freitag, 28. März 2008 09:07:21 schrieb Patrick Shirkey:
>> Hi,
>>
>> Can anyone point me to a library that lets me mount a disk, copy data to
>> the disk and unmount the disk?
>>
>> I'm using c and gtk.
> 
> Uhm... how about the short way:
> 
> #include <stdlib.h>
> 
> int main() {
>     system("mount /dev/foo /bar");
>     system("cp this there");
>     system("umount /bar");
> }
> 
> CU
> Christian
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
> http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev




More information about the Linux-audio-dev mailing list