commit | e58ca0203d32869a01540a293df40ddc480dc378 | [log] [tgz] |
---|---|---|
author | Yan <yanzheng@21cn.com> | Tue Apr 01 11:21:34 2008 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:04:01 2008 -0400 |
tree | a0a7c4f66d296ea9dd12d13f2c9e7531401b96bf | |
parent | 63b10fc4874a014e22bc4c64e3d92b71180661fe [diff] [blame] |
Fix btrfs_fill_super to return -EINVAL when no FS found Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index d8fce32..169be0f 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c
@@ -237,7 +237,7 @@ if (strncmp((char *)(&disk_super->magic), BTRFS_MAGIC, sizeof(disk_super->magic))) { printk("no btrfs found on %s\n", path); - ret = -ENOENT; + ret = -EINVAL; goto error_brelse; } devid = le64_to_cpu(disk_super->dev_item.devid);