"Fossies" - the Fresh Open Source Software Archive  

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

util.c  (mdadm-4.2-rc1.tar.xz):util.c  (mdadm-4.2-rc2.tar.xz)
skipping to change at line 1545 skipping to change at line 1545
} }
} }
return 0; return 0;
} }
int open_container(int fd) int open_container(int fd)
{ {
/* 'fd' is a block device. Find out if it is in use /* 'fd' is a block device. Find out if it is in use
* by a container, and return an open fd on that container. * by a container, and return an open fd on that container.
*/ */
char path[256]; char path[288];
char *e; char *e;
DIR *dir; DIR *dir;
struct dirent *de; struct dirent *de;
int dfd, n; int dfd, n;
char buf[200]; char buf[200];
int major, minor; int major, minor;
struct stat st; struct stat st;
if (fstat(fd, &st) != 0) if (fstat(fd, &st) != 0)
return -1; return -1;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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