# Re: \[PATCH\] sysfs superblock read oops

- From: Neil Brown \<hidden\>
- Date: 2008-06-25 23:45:16 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2008/06/6603243
- Thread: https://ratatoskr.run/linux-raid/2008/06/6603243/t.md

```text
On Wednesday June 25, chris@arachsys.com wrote:
> Whilst correcting my rdev resize patch to deal with non-persistent metadata,
> I noticed that reading from /sys/block/mdX/md/rdY/super when there isn't a
> real superblock causes an oops rather than just returning zero length. The
> tiny attached patch fixes this.

You must be using a slightly old kernel.  The 'super' sysfs file was removed
on 19th March 2008 and is gone since 2.6.25-rc7.

commit 0e82989d95cc46cc58622381eafa54f7428ee679

Thanks,
NeilBrown

```
