linux-2.6.24: avoid kernel error if ubifs superblock read fails
PATCH 1/1 linux-2.6.24: avoid kernel error if ubifs superblock read fails
* .get_sb is called on mounts with automatic fs detection too, so this function should not print an error if it cannot read the superblock (new behaviour conforms the other fs types)
--- .../linux-2.6.24/ubifs-v2.6.24-silent-get-sb.patch | 11 +++++++++++ recipes/linux/linux_2.6.24.bb | 1 + 2 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 recipes/linux/linux-2.6.24/ubifs-v2.6.24-silent-get-sb.patch
recipes/linux/linux-2.6.24/ubifs-v2.6.24-silent-get-sb.patch new file +11 -0
@@ -0,0 +1,11 @@ +--- linux-2.6.24.orig/fs/ubifs/super.c 2010-09-23 09:25:52.000000000 +0200 ++++ linux-2.6.24/fs/ubifs/super.c 2010-09-23 09:36:21.000000000 +0200 +@@ -2020,8 +2020,6 @@ + */ + ubi = open_ubi(name, UBI_READONLY); + if (IS_ERR(ubi)) { +- ubifs_err("cannot open \"%s\", error %d", +- name, (int)PTR_ERR(ubi)); + return PTR_ERR(ubi); + } + ubi_get_volume_info(ubi, &vi);
recipes/linux/linux_2.6.24.bb +1 -0
@@ -17,6 +17,7 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2;name=k ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.7.bz2;apply=yes;name=stablepatch \ file://squashfs-lzma-2.6.24.patch \ file://ubifs-v2.6.24.patch \ + file://ubifs-v2.6.24-silent-get-sb.patch \ file://defconfig" # Moved away temporarely until committed properly (work in progress).
Signature · 1 line
1.7.1
Ping!
Am 23.09.2010 10:33, schrieb Steffen Sledz:
Quoted 40 lines
* .get_sb is called on mounts with automatic fs detection too, so this function should not print an error if it cannot read the superblock (new behaviour conforms the other fs types)
Signed-off-by Steffen Sledz <[email protected]>--- .../linux-2.6.24/ubifs-v2.6.24-silent-get-sb.patch | 11 +++++++++++ recipes/linux/linux_2.6.24.bb | 1 + 2 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 recipes/linux/linux-2.6.24/ubifs-v2.6.24-silent-get-sb.patchrecipes/linux/linux-2.6.24/ubifs-v2.6.24-silent-get-sb.patch new file +11
-0@@ -0,0 +1,11 @@ +--- linux-2.6.24.orig/fs/ubifs/super.c 2010-09-23 09:25:52.000000000 +0200 ++++ linux-2.6.24/fs/ubifs/super.c 2010-09-23 09:36:21.000000000 +0200 +@@ -2020,8 +2020,6 @@ + */ + ubi = open_ubi(name, UBI_READONLY); + if (IS_ERR(ubi)) { +- ubifs_err("cannot open \"%s\", error %d", +- name, (int)PTR_ERR(ubi)); + return PTR_ERR(ubi); + } + ubi_get_volume_info(ubi, &vi);recipes/linux/linux_2.6.24.bb +1
-0@@ -17,6 +17,7 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2;name=k ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.7.bz2;apply=yes;name=stablepatch \ file://squashfs-lzma-2.6.24.patch \ file://ubifs-v2.6.24.patch \ + file://ubifs-v2.6.24-silent-get-sb.patch \ file://defconfig" # Moved away temporarely until committed properly (work in progress).
2010/9/27 Steffen Sledz <[email protected]>:
Quoted 42 lines
Ping!
Am 23.09.2010 10:33, schrieb Steffen Sledz:
Quoted 39 lines
* .get_sb is called on mounts with automatic fs detection too, so this function should not print an error if it cannot read the superblock (new behaviour conforms the other fs types)
Signed-off-by Steffen Sledz <[email protected]>---
.../linux-2.6.24/ubifs-v2.6.24-silent-get-sb.patch | 11 +++++++++++ recipes/linux/linux_2.6.24.bb | 1 +2 files changed, 12 insertions(+), 0 deletions(-)create mode 100644
recipes/linux/linux-2.6.24/ubifs-v2.6.24-silent-get-sb.patchrecipes/linux/linux-2.6.24/ubifs-v2.6.24-silent-get-sb.patch new file +11
-0@@ -0,0 +1,11 @@ +--- linux-2.6.24.orig/fs/ubifs/super.c 2010-09-23 09:25:52.000000000 +0200 ++++ linux-2.6.24/fs/ubifs/super.c 2010-09-23 09:36:21.000000000 +0200 +@@ -2020,8 +2020,6 @@ + */ + ubi = open_ubi(name, UBI_READONLY); + if (IS_ERR(ubi)) { +- ubifs_err("cannot open \"%s\", error %d", +- name, (int)PTR_ERR(ubi)); + return PTR_ERR(ubi); + } + ubi_get_volume_info(ubi, &vi);recipes/linux/linux_2.6.24.bb +1
-0@@ -17,6 +17,7 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2;name=k ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.7.bz2;apply=yes;name=stablepatch \ file://squashfs-lzma-2.6.24.patch \ file://ubifs-v2.6.24.patch \ + file://ubifs-v2.6.24-silent-get-sb.patch \file://defconfig"
Quoted 2 lines
Quoted 1 line
# Moved away temporarely until committed properly (work in progress).
Hm, I have some concerns:
the first concern is that mainline 2.6.34 still has the code you have deleted. I'd expect that others would have bumped into this too and that it would have been fixed this upstream.
Since it isn't, chances are that upstream might have fixed the autofs detection in a different way. If they do this differently maybe we should backport that solution.
the second concern is that you fix it for a single version. If we feel this patch is needed, I would suggest applying the patch to all linux recipes.
and the 3rd concern is that I am not too sure whether you do not remove a message that in other cases would be useful.
Best regards, Frans
Am 27.09.2010 09:40, schrieb Frans Meulenbroeks:
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
* .get_sb is called on mounts with automatic fs detection too, so this function should not print an error if it cannot read the superblock (new behaviour conforms the other fs types)
...
Quoted 8 lines
Hm, I have some concerns:
the first concern is that mainline 2.6.34 still has the code you have deleted. I'd expect that others would have bumped into this too and that it would have been fixed this upstream.
Since it isn't, chances are that upstream might have fixed the autofs detection in a different way. If they do this differently maybe we should backport that solution.
I've suggested the same patch at the LKML and informed the UBIFS authors. But i do believe because of it's "low prio" it will need some time to go into the mainline.
Quoted 3 lines
the second concern is that you fix it for a single version. If we feel this patch is needed, I would suggest applying the patch to all linux recipes.
Yes, that's true. I'll try to create a new patch.
Quoted 2 lines
and the 3rd concern is that I am not too sure whether you do not remove a message that in other cases would be useful.
I did not found any other filesystem printing out such a message at this level.
Steffen
Signature · 8 lines
Steffen Sledz DResearch Digital Media Systems GmbH Otto-Schmirgal-Str.3, D-10319 Berlin, Germany Tel: +49 (30) 515932237 mailto:[email protected] Fax: +49 (30) 515932299 http://www.DResearch.DE Geschäftsführer: Dr. Michael Weber, Werner Mögle; Amtsgericht Berlin Charlottenburg; HRB 54412; Ust.-IDNr. DE169013825; WEEE Reg.-Nr. DE 85995642
Quoted 7 lines · Steffen Sledz
Am 27.09.2010 09:40, schrieb Frans Meulenbroeks:
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
* .get_sb is called on mounts with automatic fs detection too, so this function should not print an error if it cannot read the superblock (new behaviour conforms the other fs types)
...Hm, I have some concerns:
Quoted 8 lines
Quoted 6 lines
the first concern is that mainline 2.6.34 still has the code you have deleted. I'd expect that others would have bumped into this too and that it would have been fixed this upstream.
Since it isn't, chances are that upstream might have fixed the autofs detection in a different way. If they do this differently maybe we should backport that solution.I've suggested the same patch at the LKML and informed the UBIFS authors. But i do believe because of it's "low prio" it will need some time to go into the mainline.
So it is queued somewhere then?
Signature · 2 lines
Tom Rini Mentor Graphics Corporation
Am 27.09.2010 22:15, schrieb Tom Rini:
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
the first concern is that mainline 2.6.34 still has the code you have deleted. I'd expect that others would have bumped into this too and that it would have been fixed this upstream. Since it isn't, chances are that upstream might have fixed the autofs detection in a different way. If they do this differently maybe we should backport that solution.
Quoted 5 lines
Quoted 3 lines
I've suggested the same patch at the LKML and informed the UBIFS authors. But i do believe because of it's "low prio" it will need some time to go into the mainline.
So it is queued somewhere then?
Yes, meanwhile in a modified way.
<http://marc.info/?l=linux-kernel&m=128532926311387&w=2>
<http://marc.info/?l=linux-kernel&m=128559006603975&w=2>
I'll wait the final decision there and then push the commit at least for the 2.6.24 backport.
I don't know, if it's really necessary to patch all linux recipes because there are a lot of them and it's just a cosmetic change.
Steffen
Signature · 8 lines
Steffen Sledz DResearch Digital Media Systems GmbH Otto-Schmirgal-Str.3, D-10319 Berlin, Germany Tel: +49 (30) 515932237 mailto:[email protected] Fax: +49 (30) 515932299 http://www.DResearch.DE Geschäftsführer: Dr. Michael Weber, Werner Mögle; Amtsgericht Berlin Charlottenburg; HRB 54412; Ust.-IDNr. DE169013825; WEEE Reg.-Nr. DE 85995642
Am 28.09.2010 08:10, schrieb Steffen Sledz:
Quoted 14 lines
Am 27.09.2010 22:15, schrieb Tom Rini:
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
the first concern is that mainline 2.6.34 still has the code you have deleted. I'd expect that others would have bumped into this too and that it would have been fixed this upstream. Since it isn't, chances are that upstream might have fixed the autofs detection in a different way. If they do this differently maybe we should backport that solution.
Quoted 5 lines
Quoted 3 lines
I've suggested the same patch at the LKML and informed the UBIFS authors. But i do believe because of it's "low prio" it will need some time to go into the mainline.
So it is queued somewhere then?
Quoted 7 lines
Yes, meanwhile in a modified way.
<http://marc.info/?l=linux-kernel&m=128532926311387&w=2>
<http://marc.info/?l=linux-kernel&m=128559006603975&w=2>I'll wait the final decision there and then push the commit at least for the 2.6.24 backport.
Pushed after upstream confirmation.
Steffen
Signature · 8 lines
Steffen Sledz DResearch Digital Media Systems GmbH Otto-Schmirgal-Str.3, D-10319 Berlin, Germany Tel: +49 (30) 515932237 mailto:[email protected] Fax: +49 (30) 515932299 http://www.DResearch.DE Geschäftsführer: Dr. Michael Weber, Werner Mögle; Amtsgericht Berlin Charlottenburg; HRB 54412; Ust.-IDNr. DE169013825; WEEE Reg.-Nr. DE 85995642