Subject: Re: disklabel not updating?
To: Bernard Gardner <B.Gardner@eng.usyd.edu.au>
From: Ken Nakata <kenn@eden.rutgers.edu>
List: port-mac68k
Date: 03/10/1996 23:34:41
> I think from memory that Kelly Campbell has done this and reported that it
> worked fine.
Yes, that is correct. Here's the patch Kelly sent me:
> I was able to recompile a kernal that allowed me to do native
> disklabels, and they seemed to work just fine. Here's a patch file
> that will fix it... it basically comments out some #if 0 lines
>
> This patches /sys/arch/mac68k/mac68k/disksubr.c
*** disksubr.c Thu Feb 15 06:35:57 1996
--- disksubr_new.c Sun Mar 10 15:30:25 1996
***************
*** 511,517 ****
u_long openmask;
struct cpu_disklabel *osdep;
{
! #if 0
register i;
register struct partition *opp, *npp;
--- 511,517 ----
u_long openmask;
struct cpu_disklabel *osdep;
{
! /* #if 0 */
register i;
register struct partition *opp, *npp;
***************
*** 541,547 ****
nlp->d_checksum = 0;
nlp->d_checksum = dkcksum(nlp);
*olp = *nlp;
! #endif
return (0);
}
--- 541,547 ----
nlp->d_checksum = 0;
nlp->d_checksum = dkcksum(nlp);
*olp = *nlp;
! /* #endif */
return (0);
}
***************
*** 557,563 ****
register struct disklabel *lp;
struct cpu_disklabel *osdep;
{
! #if 0
struct buf *bp;
struct disklabel *dlp;
int labelpart;
--- 557,563 ----
register struct disklabel *lp;
struct cpu_disklabel *osdep;
{
! /* #if 0 */
struct buf *bp;
struct disklabel *dlp;
int labelpart;
***************
*** 594,602 ****
done:
brelse(bp);
return (error);
! #else
return 0;
! #endif
}
/*
--- 594,602 ----
done:
brelse(bp);
return (error);
! /* #else
return 0;
! #endif */
}
/*
ken