Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115080
b: refs/heads/master
c: ea43ddd
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed Oct 13, 2008
1 parent c8c4799 commit e2e4a48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d3c6f8717ee6c2bf6cba5fa0bda3b28fbda6015
refs/heads/master: ea43ddd8491feccf36267349748ea91b1194481e
8 changes: 7 additions & 1 deletion trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -2943,7 +2943,13 @@ metadata_store(mddev_t *mddev, const char *buf, size_t len)
{
int major, minor;
char *e;
if (!list_empty(&mddev->disks))
/* Changing the details of 'external' metadata is
* always permitted. Otherwise there must be
* no devices attached to the array.
*/
if (mddev->external && strncmp(buf, "external:", 9) == 0)
;
else if (!list_empty(&mddev->disks))
return -EBUSY;

if (cmd_match(buf, "none")) {
Expand Down

0 comments on commit e2e4a48

Please sign in to comment.