Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140998217
D46469.id142577.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
511 B
Referenced Files
None
Subscribers
None
D46469.id142577.diff
View Options
diff --git a/sys/dev/virtio/block/virtio_blk.c b/sys/dev/virtio/block/virtio_blk.c
--- a/sys/dev/virtio/block/virtio_blk.c
+++ b/sys/dev/virtio/block/virtio_blk.c
@@ -755,6 +755,8 @@
dp->d_hba_device = virtio_get_device(dev);
dp->d_hba_subvendor = virtio_get_subvendor(dev);
dp->d_hba_subdevice = virtio_get_subdevice(dev);
+ strlcpy(dp->d_attachment, device_get_nameunit(dev),
+ sizeof(dp->d_attachment));
if (virtio_with_feature(dev, VIRTIO_BLK_F_RO))
dp->d_flags |= DISKFLAG_WRITE_PROTECT;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 31, 2:06 PM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27413369
Default Alt Text
D46469.id142577.diff (511 B)
Attached To
Mode
D46469: virtio_blk: Populate d_attachment
Attached
Detach File
Event Timeline
Log In to Comment