From: Daniele F. <df...@gm...> - 2006-11-27 13:24:28
|
2006/11/27, P.G. Richardson wrote: > does anyone know of a method to get the block device > path based on a given mountpoint, ie. /mnt/ipod -> /dev/sda2 -> /dev/sda1? you might use setmntent() and friends it is used in the busybox version of umount http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/util-linux/umount.c umount from util-linux has it's own implementation called my_setmntent() in ./mount/mtent.c ftp://ftp.kernel.org/pub/linux/utils/util-linux/ -- Ciao, Daniele |