libfstools: add uImage.FIT fitblk driver
[project/fstools.git] / libfstools / common.h
index b5cc692261a2e751a1cf41902e637967f4282844..28b82d2aee519de72aefce78cf1e2839f78ce649 100644 (file)
@@ -25,3 +25,5 @@ int read_uint_from_file(char *dirname, char *filename, unsigned int *i);
 char *read_string_from_file(const char *dirname, const char *filename, char *buf, size_t bufsz);
 int block_file_identify(FILE *f, uint64_t offset);
 int block_volume_format(struct volume *v, uint64_t offset, const char *bdev);
+
+static const char *const block_dir_name = "/sys/class/block";