search for: error_brelse

Displaying 5 results from an estimated 5 matches for "error_brelse".

2013 Mar 02
1
[PATCH] btrfs: return EPERM in btrfs_rm_device()
...EINVAL; + ret = -EPERM; goto out; } @@ -1449,14 +1449,14 @@ int btrfs_rm_device(struct btrfs_root *root, char *device_path) if (device->is_tgtdev_for_dev_replace) { pr_err("btrfs: unable to remove the dev_replace target dev\n"); - ret = -EINVAL; + ret = -EPERM; goto error_brelse; } if (device->writeable && root->fs_info->fs_devices->rw_devices == 1) { printk(KERN_ERR "btrfs: unable to remove the only writeable " "device\n"); - ret = -EINVAL; + ret = -EPERM; goto error_brelse; } -- 1.8.2.rc1 -- To unsubsc...
2011 Apr 20
4
[PATCH 1/5] Btrfs: fix bh leak on __btrfs_open_devices path
.../volumes.c index 8b9fb8c..69fc902 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -631,6 +631,7 @@ static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices, list_add(&device->dev_alloc_list, &fs_devices->alloc_list); } + brelse(bh); continue; error_brelse: -- 1.7.4.4
2012 Nov 14
0
fs/btrfs/volumes.c:1505:1: warning: label 'error_close' defined but not used
...ty(bh); dfe25020 Chris Mason 2008-05-13 1498 sync_dirty_buffer(bh); dfe25020 Chris Mason 2008-05-13 1499 } a061fc8d Chris Mason 2008-05-07 1500 a061fc8d Chris Mason 2008-05-07 1501 ret = 0; a061fc8d Chris Mason 2008-05-07 1502 a061fc8d Chris Mason 2008-05-07 1503 error_brelse: a061fc8d Chris Mason 2008-05-07 1504 brelse(bh); a061fc8d Chris Mason 2008-05-07 @1505 error_close: dfe25020 Chris Mason 2008-05-13 1506 if (bdev) e525fd89 Tejun Heo 2010-11-13 1507 blkdev_put(bdev, FMODE_READ | FMODE_EXCL); a061fc8d Chris Mason 2008-05-07 1508 out: a...
2011 Jan 22
32
Bug in mkfs.btrfs?!
Hi, I wanted to create a new btrfs fs for my backups. When trying to mkfs.btrfs for that device, I''m getting "error checking /dev/loop2 mount status" With strace I see where the problem is: lstat("/dev/disk/by-id/ata-INTEL_SSDSA2M160G2GC_CVPO939201JX160AGN-par", 0x7fffa30b3cf0) = -1 ENOENT (No such file or directory) The problem is there is something missing
2011 Mar 08
6
[PATCH v1 0/6] btrfs: scrub
This series adds an initial implementation for scrub. It works quite straightforward. The usermode issues an ioctl for each device in the fs. For each device, it enumerates the allocated device chunks. For each chunk, the contained extents are enumerated and the data checksums fetched. The extents are read sequentially and the checksums verified. If an error occurs (checksum or EIO), a good copy