Message ID | 20110215181257.GA9110@kwango.lan.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 2636a05..a228f63 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1631,7 +1631,7 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path) device->dev_root = root->fs_info->dev_root; device->bdev = bdev; device->in_fs_metadata = 1; - device->mode = 0; + device->mode = FMODE_EXCL; set_blocksize(device->bdev, 4096); if (seeding_dev) {