read_attribute(metadata_written);
 read_attribute(active_journal_entries);
 read_attribute(backing_dev_name);
+read_attribute(backing_dev_uuid);
 
 sysfs_time_stats_attribute(btree_gc,   sec, ms);
 sysfs_time_stats_attribute(btree_split, sec, us);
                return strlen(buf);
        }
 
+       if (attr == &sysfs_backing_dev_uuid) {
+               /* convert binary uuid into 36-byte string plus '\0' */
+               snprintf(buf, 36+1, "%pU", dc->sb.uuid);
+               strcat(buf, "\n");
+               return strlen(buf);
+       }
+
 #undef var
        return 0;
 }
        &sysfs_bypass_torture_test,
 #endif
        &sysfs_backing_dev_name,
+       &sysfs_backing_dev_uuid,
        NULL
 };
 KTYPE(bch_cached_dev);