Amit <amit.uttam@...> writes: > > Hello, > > I have a simple program using libmount that simply gets the path of the > root filesystem. I can't seem to get it to work. I always get a > segmentation fault. There is probably something basic that I am missing > but can't figure it out. [snip] Using the following function works better. fs = mnt_table_find_target(tab, "/", MNT_ITER_BACKWARD); This is on until-linux 2.20.1 on debian wheezy. -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html