| To: | linux-xfs@xxxxxxxxxxx |
|---|---|
| Subject: | Unable to match the Magic Number |
| From: | KrishnaPradeep Tamma <krishnapradeep@xxxxxxxxx> |
| Date: | Mon, 11 Apr 2005 12:11:43 -0500 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=Yb5iAMHqzrr1se/XBic5vXA4ImlCK+3u0UFHtX0o3qi6QnanExvTK+FJyp0bzaxmU1W/Oa/Orupv1U3Geik37DpyRGJYaC4j/tR5DVgulVxB1O56yOJ3U4XVQyzOyr9QE8cBRk71uY7ua/TaS8qa2UVP6C/yhNxz+UrR6DpLvxw= |
| Reply-to: | KrishnaPradeep Tamma <krishnapradeep@xxxxxxxxx> |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
Hi,
I am not able to read the super block using the following code. Can
some one help in reading the super block.
read_block is a routine of a driver and debug is just a print statement.
XFS created different allocation groups, and when I try to read the
first block of each allocation group the number returned is the same
but not equal to Magic Number.
if ((data = read_block(XFS_SB_DADDR)) != NULL) {
xfs_sb_t *xsb = (xfs_sb_t *)data;
if( xsb->magicnum == XFS_SB_MAGIC)
{
debug(1,"SUCCESS ! Found xfs superblock\n");
}
else
{
debug(1,"FAILED Not Found xfs superblock\n");
}
}
else
{
debug(1,"NULL Not Found xfs superblock\n");
}
Thanks
Pradeep
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: 2.6.11.6 XFS-LVM Crashes., Anders Saaby |
|---|---|
| Next by Date: | Re: Unable to match the Magic Number, Luciano Chavez |
| Previous by Thread: | 2.6.11.6 XFS-LVM Crashes., Anders Saaby |
| Next by Thread: | Re: Unable to match the Magic Number, Luciano Chavez |
| Indexes: | [Date] [Thread] [Top] [All Lists] |