On 14 July 2014 18:49, Saul Wold <s...@linux.intel.com> wrote: > Why do two stats here? Can't you stat an entry inside of the > /sys/kernel/debug directory?
It's the idiomatic "is this a mount point" test: look at the device number inside and outside the hopeful mount point, and if they're different then there's a mount. You need to stat twice to determine this. Ross -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core