FreeBSD Bugzilla – Attachment 149077 Details for
Bug 194663
net/aoe and VIMAGE enabled kernel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for aoeblk.c
patch-aoeblk.c (text/plain), 1.15 KB, created by
Andreas Neiser
on 2014-11-05 18:07:35 UTC
(
hide
)
Description:
Patch for aoeblk.c
Filename:
MIME Type:
Creator:
Andreas Neiser
Created:
2014-11-05 18:07:35 UTC
Size:
1.15 KB
patch
obsolete
>--- aoeblk.c.orig 2006-05-25 17:19:23 UTC >+++ aoeblk.c >@@ -54,6 +54,8 @@ > { > struct aoedev *d; > >+ //IPRINTK("Disk opened: %s%d\n",disk->d_name, disk->d_unit); >+ > if (aoe_exiting) > return (EBUSY); > >@@ -77,6 +79,8 @@ > { > struct aoedev *d; > >+ //IPRINTK("Disk closed: %s%d\n",disk->d_name, disk->d_unit); >+ > d = disk->d_drv1; > atomic_clear_32(&d->ad_flags, DEVFL_OPEN); > if ((d->ad_flags & DEVFL_CLOSEWAIT) && /* (1) */ >@@ -190,7 +194,7 @@ > d->ad_disk = disk; > disk->d_drv1 = d; > /* disk->d_maxsize = DFLTPHYS; */ >- disk->d_maxsize = aoenet_maxsize(d->ad_ifp); >+ disk->d_maxsize = 2*DEV_BSIZE; //aoenet_maxsize(d->ad_ifp); > disk->d_sectorsize = DEV_BSIZE; > disk->d_mediasize = DEV_BSIZE * d->ad_nsectors; > disk->d_unit = d->ad_unit; >@@ -200,10 +204,14 @@ > disk->d_ioctl = aoeblk_ioctl; > disk->d_strategy = aoeblk_strategy; > >- disk_create(disk, DISK_VERSION_00); >+ disk_create(disk, DISK_VERSION_01); > > atomic_clear_32(&d->ad_flags, DEVFL_TASKON); > atomic_set_32(&d->ad_flags, DEVFL_UP); >+ >+ //IPRINTK("Disk created %s%d: maxsize=%d, mediasize=%ld\n", >+ // disk->d_name, disk->d_unit, >+ // disk->d_maxsize, disk->d_mediasize); > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194663
:
148740
|
148765
|
148766
|
148767
|
149076
| 149077 |
149078
|
149079
|
149080