"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Manage.c" between
mdadm-4.2-rc1.tar.xz and mdadm-4.2-rc2.tar.xz

About: mdadm is a tool for creating, managing and monitoring device arrays using the "md" driver in Linux, also known as Software RAID arrays.

Manage.c  (mdadm-4.2-rc1.tar.xz):Manage.c  (mdadm-4.2-rc2.tar.xz)
skipping to change at line 995 skipping to change at line 995
strcpy(devnm, fd2devnm(fd)); strcpy(devnm, fd2devnm(fd));
container_fd = open_dev_excl(devnm); container_fd = open_dev_excl(devnm);
if (container_fd < 0) { if (container_fd < 0) {
pr_err("add failed for %s: could not get exclusive access to container\n", pr_err("add failed for %s: could not get exclusive access to container\n",
dv->devname); dv->devname);
tst->ss->free_super(tst); tst->ss->free_super(tst);
return -1; return -1;
} }
/* Check if metadata handler is able to accept the drive */
if (!tst->ss->validate_geometry(tst, LEVEL_CONTAINER, 0, 1, NULL,
0, 0, dv->devname, NULL, 0, 1)) {
close(container_fd);
return -1;
}
Kill(dv->devname, NULL, 0, -1, 0); Kill(dv->devname, NULL, 0, -1, 0);
dfd = dev_open(dv->devname, O_RDWR | O_EXCL|O_DIRECT); dfd = dev_open(dv->devname, O_RDWR | O_EXCL|O_DIRECT);
if (tst->ss->add_to_super(tst, &disc, dfd, if (tst->ss->add_to_super(tst, &disc, dfd,
dv->devname, INVALID_SECTORS)) { dv->devname, INVALID_SECTORS)) {
close(dfd); close(dfd);
close(container_fd); close(container_fd);
return -1; return -1;
} }
if (!mdmon_running(tst->container_devnm)) if (!mdmon_running(tst->container_devnm))
tst->ss->sync_metadata(tst); tst->ss->sync_metadata(tst);
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)