Displaying 1 result from an estimated 1 matches for "7df78fc".
2013 Apr 11
2
[PATCH 1/2] btrfs-progs: replace blkid_probe_get_wholedisk_devno
....17 and beyond.
If we happen to be missing that fix, the worst that happens is
that we''d fail to detect that a device is an ssd; the upside is
that this code compiles on older systems.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/mkfs.c b/mkfs.c
index c8cb395..7df78fc 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -1215,9 +1215,8 @@ static int check_leaf_or_node_size(u32 size, u32 sectorsize)
static int is_ssd(const char *file)
{
- char *devname;
blkid_probe probe;
- char *dev;
+ char dev[32];
char path[PATH_MAX];
dev_t disk;
int fd;
@@ -1227,24 +1226,16 @@ sta...