aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorYan <yanzheng@21cn.com>2008-04-01 11:21:34 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commite58ca0203d32869a01540a293df40ddc480dc378 (patch)
treea0a7c4f66d296ea9dd12d13f2c9e7531401b96bf /fs/btrfs/volumes.c
parent63b10fc4874a014e22bc4c64e3d92b71180661fe (diff)
Fix btrfs_fill_super to return -EINVAL when no FS found
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index d8fce32a3bbc..169be0f7285b 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -237,7 +237,7 @@ int btrfs_scan_one_device(const char *path, int flags, void *holder,
237 if (strncmp((char *)(&disk_super->magic), BTRFS_MAGIC, 237 if (strncmp((char *)(&disk_super->magic), BTRFS_MAGIC,
238 sizeof(disk_super->magic))) { 238 sizeof(disk_super->magic))) {
239 printk("no btrfs found on %s\n", path); 239 printk("no btrfs found on %s\n", path);
240 ret = -ENOENT; 240 ret = -EINVAL;
241 goto error_brelse; 241 goto error_brelse;
242 } 242 }
243 devid = le64_to_cpu(disk_super->dev_item.devid); 243 devid = le64_to_cpu(disk_super->dev_item.devid);