Skip to contentSkip to conversation

Is there a portable alternative to mount() ?

DISCUSSION Bryan Christ 3 participants 4 messages Aug 16, 2007 – Aug 17, 2007

lore
Share & tools
lore
#1 lore raw
Quoted 1 line · Bryan Christ

Is there a portable alternative to mount() ?

In general, no.

Running the "mount" program will work for simple cases (e.g. "mount <dir>" where <dir> is in /etc/fstab) on most Unix systems.

Beyond that, the names of devices, the types of filesystem which are supported, etc, are all highly platform specific.

Signature · 1 line
Glynn Clements <[email protected]>
#3 lore raw

Maybe I need to look into the source for Busybox and see what they do. What I was looking for though is a portable group of functions similar in fucntion to the Linux mount() in sys/mount.h

Quoted 14 lines · Raseel Bhagat
Quoted 1 line · Bryan Christ

Does anyone know?

Do you mean something like the mount command in Busybox ? It has been ported for PPC , ARM , MIPS and many more architectures .

Thanks,
Raseel.
http://www.opensorucedeal.com
http://screwgoth.blogspex.com
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html