"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "super-ddf.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.

super-ddf.c  (mdadm-4.2-rc1.tar.xz):super-ddf.c  (mdadm-4.2-rc2.tar.xz)
skipping to change at line 3466 skipping to change at line 3466
int verbose) int verbose)
{ {
int fd; int fd;
unsigned long long ldsize; unsigned long long ldsize;
if (level != LEVEL_CONTAINER) if (level != LEVEL_CONTAINER)
return 0; return 0;
if (!dev) if (!dev)
return 1; return 1;
fd = open(dev, O_RDONLY|O_EXCL, 0); fd = dev_open(dev, O_RDONLY|O_EXCL);
if (fd < 0) { if (fd < 0) {
if (verbose) if (verbose)
pr_err("ddf: Cannot open %s: %s\n", pr_err("ddf: Cannot open %s: %s\n",
dev, strerror(errno)); dev, strerror(errno));
return 0; return 0;
} }
if (!get_dev_size(fd, dev, &ldsize)) { if (!get_dev_size(fd, dev, &ldsize)) {
close(fd); close(fd);
return 0; return 0;
} }
close(fd); close(fd);
if (freesize) {
*freesize = avail_size_ddf(st, ldsize >> 9, INVALID_SECTORS); *freesize = avail_size_ddf(st, ldsize >> 9, INVALID_SECTORS);
if (*freesize == 0) if (*freesize == 0)
return 0; return 0;
}
return 1; return 1;
} }
static int validate_geometry_ddf_bvd(struct supertype *st, static int validate_geometry_ddf_bvd(struct supertype *st,
int level, int layout, int raiddisks, int level, int layout, int raiddisks,
int *chunk, unsigned long long size, int *chunk, unsigned long long size,
unsigned long long data_offset, unsigned long long data_offset,
char *dev, unsigned long long *freesize, char *dev, unsigned long long *freesize,
int verbose) int verbose)
 End of changes. 2 change blocks. 
5 lines changed or deleted 6 lines changed or added

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