I just found out that all the device handling in btrfs is based on pathnames, but shorter pathnames (1024) that PATH_MAX (4096). This is confusing, and concerning for multiple reasons: 1. pathnames are namespace-specific; what is a pathname in one namespace might not be in another. 2. different truncation rules in the rest of the kernel. There seem to be no way one can do the equivalent of BTRFS_IOC_DEV_INFO but actually get a device number or other stable information for that device (that could be compared to a file descriptor for verification); is that an accurate observation? -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
