Discussion:
Block device size
(too old to reply)
Jan Engelhardt
2005-03-29 11:12:25 UTC
Permalink
Hello list,

how can I found out the size of the underlying block device when I am in
somefs_fill_super()?

Jan Engelhardt
--
No TOFU for me, please.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



-------------------------------------------------------------------------------
Achtung: diese Newsgruppe ist eine unidirektional gegatete Mailingliste.
Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
Fragen zum Gateway -> ***@inka.de.
-------------------------------------------------------------------------------
Smets Jan
2005-03-29 11:58:25 UTC
Permalink
Hi list,

I have a Dell Poweredge 1600SC with kernel 2.6.11 running and using the ext3
FS + quota v2.

After a while the quota system was running out of sync. This shouldn't be a
problem, so I decided to turn off quota for a while and rescan my files...

When running the quotaoff utility, it suddenly segfaulted and my /home was 'dead'.
I also noticed that the load of my box was rising very high. After a few minutes
the whole server was 'dead'.

This is already the second time it occures, with a 2.6.7 kernel and with a
2.6.11 one. I have no clue if it has something to do with the SMP stuff.

Also, I didn't manage to get an crash/oops/whatever log, sorry.

If anyone has seen the same problem or has any idea howto solve this problem,
or howto get more debugging information, please let me know.

- Jan [having a dead box:]
--
Smets Jan
***@smets.cx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



-------------------------------------------------------------------------------
Achtung: diese Newsgruppe ist eine unidirektional gegatete Mailingliste.
Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
Fragen zum Gateway -> ***@inka.de.
-------------------------------------------------------------------------------
Jan Engelhardt
2005-03-29 12:11:33 UTC
Permalink
Post by Smets Jan
When running the quotaoff utility, it suddenly segfaulted and my /home was 'dead'.
I also noticed that the load of my box was rising very high. After a few minutes
the whole server was 'dead'.
If anyone has seen the same problem or has any idea howto solve this problem,
or howto get more debugging information, please let me know.
I had a similar problem once... upon quotaoff syscall, the system hung in a
spinlock or something. I dug deep into the assembly code (using kdb), found
out it hung, but the source code said it should not, so I recompiled all from
fresh and it was gone. :-/

Since you are getting a SIGSEGV (not SIGKILL?) at least, you should be able
to hook gdb on it, and grep the EIP. This is of course will only be the
userspace EIP, but it may show where it's happening (I guess it will be the
quota syscall nevertheless).

Jan Engelhardt
--
No TOFU for me, please.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



-------------------------------------------------------------------------------
Achtung: diese Newsgruppe ist eine unidirektional gegatete Mailingliste.
Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
Fragen zum Gateway -> ***@inka.de.
-------------------------------------------------------------------------------
Jan Engelhardt
2005-03-29 12:27:35 UTC
Permalink
As a response to myself, I've found it:
superblock->s_bdev->bd_inode->i_size
:)

Jan Engelhardt
--
No TOFU for me, please.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



-------------------------------------------------------------------------------
Achtung: diese Newsgruppe ist eine unidirektional gegatete Mailingliste.
Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
Fragen zum Gateway -> ***@inka.de.
-------------------------------------------------------------------------------
Loading...