summaryrefslogtreecommitdiffstats
path: root/common/bbu.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/bbu.c')
-rw-r--r--common/bbu.c2
1 files changed, 2 insertions, 0 deletions
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 @@ static int bbu_std_file_handler(struct bbu_handler *handler,
return -EINVAL;
}
+ device_detect_by_name(devpath_to_name(data->devicefile));
+
ret = stat(data->devicefile, &s);
if (ret) {
oflags |= O_CREAT;