Searched refs:DKIOCGGEOM (Results 1 - 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/lib/libsmedia/plugins/blkdev/common/
H A Db_generic.c115 ret_val = ioctl(handle->sm_fd, DKIOCGGEOM, &dkg);
117 DPRINTF("DKIOCGGEOM ioctl failed");
/illumos-gate/usr/src/lib/libbc/inc/include/sun/
H A Ddkio.h334 #define DKIOCGGEOM _IOR('d', 2, struct dk_geom) /* Get geometry */ macro
/illumos-gate/usr/src/cmd/devinfo/
H A Ddevinfo.c108 if (ioctl(fd, DKIOCGGEOM, &geom) == -1) {
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_repartition.c85 * DKIOCGGEOM, we have an EFI label.
88 ioctl_return = ioctl(fd, DKIOCGGEOM, &geom);
94 * If the DKIOCGGEOM ioctl succeeded, then the device has a
H A Dmeta_nameinfo.c581 * if our drivenamep points to a device not supporting DKIOCGGEOM,
585 if (ioctl(fd, DKIOCGGEOM, &geom) != 0) {
599 * If we are here, there was either no failure on DKIOCGGEOM or
603 /* DKIOCGGEOM yielded ENOTSUP => try efi_alloc_and_read */
663 /* no error on DKIOCGGEOM, try meta_getvtoc */
738 err = ioctl(fd, DKIOCGGEOM, &geom);
/illumos-gate/usr/src/cmd/diskscan/
H A Ddiskscan.c136 if ((ioctl(devfd, DKIOCGGEOM, &dkg)) == -1) {
/illumos-gate/usr/src/uts/common/sys/
H A Ddkio.h165 #define DKIOCGGEOM (DKIOC|1) /* Get geometry */ macro
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dmedia.c420 if (ioctl(fd, DKIOCGGEOM, &geometry) >= 0) {
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/
H A Df_format.c179 if (ioctl(fd, DKIOCGGEOM, &fdgeom) < 0) {
180 PERROR("DKIOCGGEOM failed.");
/illumos-gate/usr/src/cmd/addbadsec/
H A Daddbadsec.c169 if ((ioctl(devfd, DKIOCGGEOM, &dkg)) == -1) {
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_slice.c856 * DKIOCGGEOM is sufficient.
857 * x86 : floppy, pcmcia : Don't check for fdisk. DKIOCGGEOM is sufficient.
905 if (ioctl(fd, DKIOCGGEOM, &dkg) < 0) {
906 PERROR("DKIOCGGEOM Failed");
952 if (ioctl(fd, DKIOCGGEOM, &dkg) < 0)
1347 if (ioctl(fd, DKIOCGGEOM, &dkg) < 0)
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dioctl.c334 case DKIOCGGEOM:
/illumos-gate/usr/src/cmd/prtvtoc/
H A Dprtvtoc.c593 if ((ioctl(fd, DKIOCGGEOM, geom) < 0) && (errno != ENOTSUP)) {
/illumos-gate/usr/src/cmd/fmthard/
H A Dfmthard.c236 if (!eflag && ioctl(fd, DKIOCGGEOM, &disk_geom)) {
238 perror("DKIOCGGEOM failed");
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs.c1503 ioctl(fd, DKIOCGGEOM, &dginfo) == -1) {
1970 ioctl(fd, DKIOCGGEOM, &dginfo) == -1) {
2351 * support it, we can try to use disk DKIOCGGEOM ioctl
2357 * Note that DKIOCGGEOM cannot supply us with type
2362 if (ioctl(fd, DKIOCGGEOM, &dg) != -1 &&
/illumos-gate/usr/src/lib/libfdisk/common/
H A Dlibfdisk.c102 * Call DKIOCGGEOM if the ioctls for physical and virtual
107 if (ioctl(epp->dev_fd, DKIOCGGEOM, &disk_geom)) {
/illumos-gate/usr/src/cmd/sa/
H A Dsadp.c1188 if (ioctl(fd, DKIOCGGEOM, &dk_geom) == -1) {
/illumos-gate/usr/src/cmd/fs.d/ufs/newfs/
H A Dnewfs.c767 if (ioctl(fd, DKIOCGGEOM, &g))
/illumos-gate/usr/src/uts/common/io/
H A Dramdisk.c1325 case DKIOCGGEOM:
/illumos-gate/usr/src/cmd/format/
H A Dlabel.c482 * We also need a DKIOCGGEOM ioctl to get the disk's geometry.
492 ioctl(fd, DKIOCGGEOM, &geom) == -1 ||
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvds.c3063 case DKIOCGGEOM:
3300 case DKIOCGGEOM:
3625 DKIOCGGEOM, STRINGIZE(DKIOCGGEOM),
6283 status = ldi_ioctl(vd->ldi_handle[0], DKIOCGGEOM,
/illumos-gate/usr/src/cmd/fdformat/
H A Dfdformat.c537 if (ioctl(fd, DKIOCGGEOM, &fdgeom) == -1) {
539 gettext("%s: DKIOCGGEOM failed, "), myname);
/illumos-gate/usr/src/uts/common/io/lvm/softpart/
H A Dsp_ioctl.c1298 case DKIOCGGEOM:
/illumos-gate/usr/src/uts/common/io/lvm/stripe/
H A Dstripe_ioctl.c1120 case DKIOCGGEOM:
/illumos-gate/usr/src/cmd/fdisk/
H A Dfdisk.c981 * Call DKIOCGGEOM if the ioctls for physical and virtual
986 if (ioctl(Dev, DKIOCGGEOM, &disk_geom)) {
1055 if (ioctl(Dev, DKIOCGGEOM, &disk_geom)) {
4826 if (ioctl(fd, DKIOCGGEOM, &d) == -1) {

Completed in 179 milliseconds

12