Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107691106
D35917.id108655.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D35917.id108655.diff
View Options
Index: stand/common/md.c
===================================================================
--- stand/common/md.c
+++ stand/common/md.c
@@ -75,6 +75,7 @@
.dv_ioctl = noioctl,
.dv_print = md_print,
.dv_cleanup = nullsys,
+ .dv_fmtdev = disk_fmtdev,
};
static int
Index: stand/common/vdisk.c
===================================================================
--- stand/common/vdisk.c
+++ stand/common/vdisk.c
@@ -53,6 +53,7 @@
.dv_ioctl = vdisk_ioctl,
.dv_print = vdisk_print,
.dv_cleanup = nullsys,
+ .dv_fmtdev = disk_fmtdev,
};
typedef STAILQ_HEAD(vdisk_info_list, vdisk_info) vdisk_info_list_t;
Index: stand/efi/libefi/efipart.c
===================================================================
--- stand/efi/libefi/efipart.c
+++ stand/efi/libefi/efipart.c
@@ -103,6 +103,7 @@
.dv_ioctl = efipart_ioctl,
.dv_print = efipart_printhd,
.dv_cleanup = nullsys,
+ .dv_fmtdev = disk_fmtdev,
};
static pdinfo_list_t fdinfo = STAILQ_HEAD_INITIALIZER(fdinfo);
Index: stand/i386/libi386/biosdisk.c
===================================================================
--- stand/i386/libi386/biosdisk.c
+++ stand/i386/libi386/biosdisk.c
@@ -190,6 +190,7 @@
.dv_ioctl = bd_ioctl,
.dv_print = bd_print,
.dv_cleanup = nullsys,
+ .dv_fmtdev = disk_fmtdev,
};
static bdinfo_list_t *
Index: stand/kboot/hostdisk.c
===================================================================
--- stand/kboot/hostdisk.c
+++ stand/kboot/hostdisk.c
@@ -30,6 +30,7 @@
#include <stdarg.h>
#include "bootstrap.h"
#include "host_syscall.h"
+#include "disk.h"
static int hostdisk_init(void);
static int hostdisk_strategy(void *devdata, int flag, daddr_t dblk,
@@ -49,6 +50,7 @@
.dv_ioctl = hostdisk_ioctl,
.dv_print = hostdisk_print,
.dv_cleanup = nullsys,
+ .dv_fmtdev = disk_fmtdev,
};
static int
Index: stand/libofw/ofw_disk.c
===================================================================
--- stand/libofw/ofw_disk.c
+++ stand/libofw/ofw_disk.c
@@ -39,7 +39,7 @@
#include <stand.h>
#include <sys/disk.h>
-#include "bootstrap.h"
+#include "disk.h"
#include "libofw.h"
static int ofwd_init(void);
@@ -60,6 +60,7 @@
.dv_ioctl = ofwd_ioctl,
.dv_print = ofwd_print,
.dv_cleanup = nullsys,
+ .dv_fmtdev = disk_fmtdev,
};
/*
Index: stand/libsa/geli/gelidev.c
===================================================================
--- stand/libsa/geli/gelidev.c
+++ stand/libsa/geli/gelidev.c
@@ -62,6 +62,7 @@
.dv_ioctl = geli_dev_ioctl,
.dv_print = geli_dev_print,
.dv_cleanup = geli_dev_cleanup,
+ .dv_fmtdev = disk_fmtdev,
};
/*
@@ -305,7 +306,7 @@
hlastblk = (hmediasize / DEV_BSIZE) - 1;
/* Taste the host provider. If it's not geli-encrypted just return. */
- gdev = geli_taste(diskdev_read, hdesc, hlastblk, disk_fmtdev(&hdesc->dd));
+ gdev = geli_taste(diskdev_read, hdesc, hlastblk, devformat(&hdesc->dd));
if (gdev == NULL)
return;
Index: stand/uboot/uboot_disk.c
===================================================================
--- stand/uboot/uboot_disk.c
+++ stand/uboot/uboot_disk.c
@@ -90,6 +90,7 @@
.dv_ioctl = stor_ioctl,
.dv_print = stor_print,
.dv_cleanup = stor_cleanup,
+ .dv_fmtdev = disk_fmtdev,
};
static int
Index: stand/usb/storage/umass_loader.c
===================================================================
--- stand/usb/storage/umass_loader.c
+++ stand/usb/storage/umass_loader.c
@@ -61,6 +61,7 @@
.dv_ioctl = umass_disk_ioctl,
.dv_print = umass_disk_print,
.dv_cleanup = umass_disk_cleanup,
+ .dv_fmtdev = disk_fmtdev,
};
static int
Index: stand/userboot/userboot/userboot_disk.c
===================================================================
--- stand/userboot/userboot/userboot_disk.c
+++ stand/userboot/userboot/userboot_disk.c
@@ -72,6 +72,7 @@
.dv_ioctl = userdisk_ioctl,
.dv_print = userdisk_print,
.dv_cleanup = userdisk_cleanup,
+ .dv_fmtdev = disk_fmtdev,
};
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 18, 2:49 PM (7 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15866889
Default Alt Text
D35917.id108655.diff (3 KB)
Attached To
Mode
D35917: stand: Add disk_fmtdev for dv_fmtdev for all the disk devices
Attached
Detach File
Event Timeline
Log In to Comment