diff --git a/common/bbu.c b/common/bbu.c index 3271d40..00bec32 100644 --- a/common/bbu.c +++ b/common/bbu.c @@ -299,6 +299,8 @@ return -EINVAL; } + device_detect_by_name(devpath_to_name(data->devicefile)); + ret = stat(data->devicefile, &s); if (ret) { oflags |= O_CREAT;