From: Kenneth P. <sh...@se...> - 2008-06-22 11:13:49
|
On Friday, June 06, 2008 2:32 PM -0700 Kenneth Porter <sh...@se...> wrote: > It would be desirable if these miscompares were instead reported with a > different message to identify the true nature of the miscompare. For > example, "<path> masked by mount point <mount point>". > (Alas, I don't know which API to use to query a path's filesystem. I use > "df <path>" from the command line, so I'd go digging through the df > source for that.) It looks like the filesystem is identified by the st_dev member returned by stat(2). stat() is invoked on the root of the compared filesystem at the start of the compare operation, and for each node compared, so in principle one could compare the st_dev of the two before comparing anything else. |