#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
+#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <volume.h>
{
if (mnt_is_md_subvol(sb->st_rdev)) {
struct md_array_info md;
- int fd;
+ int fd;
/* Open device */
fd = open(dfile, O_RDONLY);
dfile);
exit(1);
}
+ close(fd);
/* Check state */
if (md.state) {