On 10 July 2014 14:50, Saul Wold <[email protected]> wrote:
> I think Ross's suggestion of using stat() to check for the existance of a
> file in debugfs would be better.

At least one good way of checking if a directory is a mount point is
to compare the device of / and /debug using stat().  For example:

$ stat -c %d /
2049
$ stat -c %d /sys
13

Different devices, so /sys is a mount.

Ross
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to