"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Dump.c" between
mdadm-4.1.tar.gz and mdadm-4.2.tar.gz

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

Dump.c  (mdadm-4.1):Dump.c  (mdadm-4.2)
skipping to change at line 275 skipping to change at line 275
close(fd); close(fd);
return 1; return 1;
} }
fl = open(fname, O_RDONLY); fl = open(fname, O_RDONLY);
if (!fl) { if (!fl) {
pr_err("Could not open %s for --restore.\n", pr_err("Could not open %s for --restore.\n",
fname); fname);
goto err; goto err;
} }
if (stat(fname, &stb) != 0) {
pr_err("Could not stat %s for --restore.\n",
fname);
goto err;
}
if (((unsigned long long)stb.st_size) != size) { if (((unsigned long long)stb.st_size) != size) {
pr_err("%s is not the same size as %s - cannot restore.\n", pr_err("%s is not the same size as %s - cannot restore.\n",
fname, dev); fname, dev);
goto err; goto err;
} }
if (st == NULL) if (st == NULL)
st = guess_super_type(fl, guess_array); st = guess_super_type(fl, guess_array);
if (!st) { if (!st) {
pr_err("Cannot find metadata on %s\n", fname); pr_err("Cannot find metadata on %s\n", fname);
goto err; goto err;
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

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