#include #include main() { struct stat Stat; stat("/dev/dm-2", &Stat); printf("st_rdev = %i\n", Stat.st_rdev); return 0; }