Re: Can't figure out how to use mnt_table_get_root_fs from libmount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux