diff options
author | NeilBrown <neilb@suse.de> | 2013-12-05 00:35:16 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-12-05 00:35:16 +0100 |
commit | 8832342d3aad09d3c86af6dc9b137d6fd83af1ae (patch) | |
tree | 7a5c843a1a1f3de1d546abea41cd9cc3d4074391 /mdadm.h | |
parent | Two small fixes related to enough() (diff) | |
download | mdadm-8832342d3aad09d3c86af6dc9b137d6fd83af1ae.tar.xz mdadm-8832342d3aad09d3c86af6dc9b137d6fd83af1ae.zip |
Assemble/Incremental: don't hold O_EXCL on mddev after assembly.
As soon as the array is assembled, udev or systemd might run
fsck and mount it. So we need to drop O_EXCL promptly.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1272,6 +1272,7 @@ extern int check_partitions(int fd, char *dname, extern int get_mdp_major(void); extern int dev_open(char *dev, int flags); extern int open_dev(char *devnm); +extern void reopen_mddev(int mdfd); extern int open_dev_flags(char *devnm, int flags); extern int open_dev_excl(char *devnm); extern int is_standard(char *dev, int *nump); |