dev-replace.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | dev-replace.c (0718afd47f70cf46877c39c25d06b786e1a3f36c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) STRATO AG 2012. All rights reserved. 4 */ 5 6#include <linux/sched.h> 7#include <linux/bio.h> 8#include <linux/slab.h> --- 244 unchanged lines hidden (view full) --- 253 254 *device_out = NULL; 255 if (srcdev->fs_devices->seeding) { 256 btrfs_err(fs_info, "the filesystem is a seed filesystem!"); 257 return -EINVAL; 258 } 259 260 bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) STRATO AG 2012. All rights reserved. 4 */ 5 6#include <linux/sched.h> 7#include <linux/bio.h> 8#include <linux/slab.h> --- 244 unchanged lines hidden (view full) --- 253 254 *device_out = NULL; 255 if (srcdev->fs_devices->seeding) { 256 btrfs_err(fs_info, "the filesystem is a seed filesystem!"); 257 return -EINVAL; 258 } 259 260 bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, |
261 fs_info->bdev_holder); | 261 fs_info->bdev_holder, NULL); |
262 if (IS_ERR(bdev)) { 263 btrfs_err(fs_info, "target device %s is invalid!", device_path); 264 return PTR_ERR(bdev); 265 } 266 267 if (!btrfs_check_device_zone_type(fs_info, bdev)) { 268 btrfs_err(fs_info, 269 "dev-replace: zoned type of target device mismatch with filesystem"); --- 1022 unchanged lines hidden --- | 262 if (IS_ERR(bdev)) { 263 btrfs_err(fs_info, "target device %s is invalid!", device_path); 264 return PTR_ERR(bdev); 265 } 266 267 if (!btrfs_check_device_zone_type(fs_info, bdev)) { 268 btrfs_err(fs_info, 269 "dev-replace: zoned type of target device mismatch with filesystem"); --- 1022 unchanged lines hidden --- |