rpms/kernel/devel linux-2.6-virtio_blk-fix-sysfs-bits.patch, NONE, 1.1 kernel.spec, 1.468, 1.469
Kyle McMartin (kyle)
fedora-extras-commits at redhat.com
Mon Mar 3 16:05:51 UTC 2008
- Previous message (by thread): rpms/libvirt/devel libvirt.spec,1.74,1.75
- Next message (by thread): rpms/graphviz/devel graphviz-multilib.patch, NONE, 1.1 .cvsignore, 1.11, 1.12 graphviz.spec, 1.44, 1.45 sources, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: kyle
Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22907
Modified Files:
kernel.spec
Added Files:
linux-2.6-virtio_blk-fix-sysfs-bits.patch
Log Message:
* Mon Mar 03 2008 Kyle McMartin <kmcmartin at redhat.com>
- Add virtio_blk patch from Jeremy Katz
linux-2.6-virtio_blk-fix-sysfs-bits.patch:
--- NEW FILE linux-2.6-virtio_blk-fix-sysfs-bits.patch ---
From: Jeremy Katz <katzj at redhat.com>
To: rusty at rustcorp.com.au
Cc: Jeremy Katz <katzj at redhat.com>
Subject: [PATCH] Fix sysfs bits to have proper block symlink
Date: Sun, 2 Mar 2008 17:00:15 -0500
Fix up so that the virtio_blk devices in sysfs link correctly to their
block device. This then allows them to be detected by hal, etc
Signed-off-by: Jeremy Katz <katzj at redhat.com>
---
drivers/block/virtio_blk.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 3b1a68d..0cfbe8c 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -238,6 +238,7 @@ static int virtblk_probe(struct virtio_device *vdev)
vblk->disk->first_minor = index_to_minor(index);
vblk->disk->private_data = vblk;
vblk->disk->fops = &virtblk_fops;
+ vblk->disk->driverfs_dev = &vdev->dev;
index++;
/* If barriers are supported, tell block layer that queue is ordered */
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.468
retrieving revision 1.469
diff -u -r1.468 -r1.469
--- kernel.spec 3 Mar 2008 15:09:40 -0000 1.468
+++ kernel.spec 3 Mar 2008 16:05:03 -0000 1.469
@@ -646,6 +646,8 @@
Patch2501: linux-2.6-ppc-use-libgcc.patch
+Patch2503: linux-2.6-virtio_blk-fix-sysfs-bits.patch
+
### HACK ###
Patch2502: linux-2.6-blkcipher-depend-on-chainiv.patch
@@ -1153,6 +1155,8 @@
ApplyPatch linux-2.6-ppc-use-libgcc.patch
+ApplyPatch linux-2.6-virtio_blk-fix-sysfs-bits.patch
+
ApplyPatch linux-2.6-blkcipher-depend-on-chainiv.patch
# ---------- below all scheduled for 2.6.24 -----------------
@@ -1741,6 +1745,9 @@
%changelog
* Mon Mar 03 2008 Kyle McMartin <kmcmartin at redhat.com>
+- Add virtio_blk patch from Jeremy Katz
+
+* Mon Mar 03 2008 Kyle McMartin <kmcmartin at redhat.com>
- Linux 2.6.25-rc3-git4
* Mon Mar 03 2008 Dave Airlie <airlied at redhat.com>
- Previous message (by thread): rpms/libvirt/devel libvirt.spec,1.74,1.75
- Next message (by thread): rpms/graphviz/devel graphviz-multilib.patch, NONE, 1.1 .cvsignore, 1.11, 1.12 graphviz.spec, 1.44, 1.45 sources, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list