Loopback Device mounten
Posted: 07. Jun 2010 19:41
Hi,
wie mountet man innerhalb eines c Programms ein Loopback Device?
Als commandline:
mount -t ext2 -o loop,ro file.img mnt
Ich habe es so versucht:
mount("file.img", "mnt", "ext2", MS_RDONLY, "-o loop");
Das tut aber nicht.
Habe ich einen Denkfehler?
Gruß,
Klaus
wie mountet man innerhalb eines c Programms ein Loopback Device?
Als commandline:
mount -t ext2 -o loop,ro file.img mnt
Ich habe es so versucht:
mount("file.img", "mnt", "ext2", MS_RDONLY, "-o loop");
Das tut aber nicht.
Habe ich einen Denkfehler?
Gruß,
Klaus