[LAD] OT.C Library for mounting, processing data
Patrick Shirkey
pshirkey at boosthardware.com
Fri Mar 28 08:37:35 UTC 2008
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");
> }
>
Hi,
That is a useful tip. Thanks.
If I wanted to get a bit more detail from the transfer process what
would be the more elegant approach?
I'm planning to have a progress bar to display the amount of time left
to go for the transfer.
Cheers.
--
Patrick Shirkey
Boost Hardware Ltd.
More information about the Linux-audio-dev
mailing list