Searched defs:drive (Results 1 - 25 of 41) sorted by path

12

/illumos-gate/usr/src/boot/sys/boot/i386/boot0/
H A Dboot0.S68 * (called 'packet') or CHS mode, whether to force a drive number,
93 * %dl drive number (0x80, 0x81, ... )
103 * to store the original drive number (%dl) passed to us, and to construct a
154 .set _NXTDRV, B0_OFF+6 # Next drive
220 * If the 'setdrv' flag is set in the boot sector, use the drive
224 * or a ZIP/flash drive in floppy emulation).
227 testb $SETDRV,_FLAGS(%bp) # Set drive number?
228 #ifndef CHECK_DRIVE /* disable drive checks */
236 * Disable updates if the drive number is forced.
239 movb _SETDRV(%bp),%dl # Use stored drive numbe
665 drive: .ascii "Drive " label
[all...]
/illumos-gate/usr/src/boot/sys/boot/i386/cdboot/
H A Dcdboot.S122 mov %dl,drive # Save BIOS boot device
137 mov drive,%dl # Store BIOS boot device
428 mov drive,%dl # BIOS Device
575 drive: .byte 0 label
/illumos-gate/usr/src/boot/sys/boot/i386/common/
H A Ddrv.h33 unsigned int drive; member in struct:dsk
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/
H A Dcommands.c2036 char *drive; local
2092 drive = sa_get_share_attr(share, "drive-letter");
2093 if (drive != NULL) {
2094 if (strlen(drive) > 0)
2096 drive);
2097 sa_free_attr_string(drive);
/illumos-gate/usr/src/cmd/hal/tools/
H A Dhal-storage-closetray.c81 LibHalDrive *drive; local
158 if ((drive = libhal_drive_from_udi (hal_ctx, udi)) == NULL) {
159 unknown_closetray_error ("Cannot get drive");
167 libhal_drive_get_udi (drive),
168 drive,
169 libhal_drive_get_device_file (drive),
H A Dhal-storage-eject.c80 LibHalDrive *drive; local
167 unknown_eject_error ("Cannot get drive udi");
169 if ((drive = libhal_drive_from_udi (hal_ctx, drive_udi)) == NULL) {
170 unknown_eject_error ("Cannot get drive from udi");
174 volume_udis = libhal_drive_find_all_volumes (hal_ctx, drive, &num_volumes);
184 printf ("processing drive's volume %s (%d of %d)\n", volume_udi, i + 1, num_volumes);
205 volume_udi, volume_to_unmount, drive,
226 libhal_drive_get_udi (drive),
227 drive,
228 libhal_drive_get_device_file (drive),
[all...]
H A Dhal-storage-mount.c450 LibHalVolume *volume, LibHalDrive *drive, const char *device,
579 append_ro = libhal_device_get_property_bool (hal_ctx, libhal_drive_get_udi(drive),
640 model = libhal_drive_get_model (drive);
641 drive_type = libhal_drive_get_type_textual (drive);
779 if (libhal_drive_is_hotpluggable (drive) || libhal_drive_uses_removable_media (drive))
877 /* non-pollable drive; force auto */
1116 LibHalDrive *drive; local
1118 drive = libhal_drive_from_udi (hal_ctx, udi);
1119 if (drive
445 handle_mount(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalVolume *volume, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, DBusConnection *system_bus) argument
1132 LibHalDrive *drive; local
[all...]
H A Dhal-storage-shared.c264 LibHalVolume *volume, LibHalDrive *drive, const char *device,
538 LibHalDrive *drive, const char *device,
259 handle_unmount(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalVolume *volume, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, gboolean option_lazy, gboolean option_force, DBusConnection *system_bus) argument
533 handle_eject(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, gboolean closetray, DBusConnection *system_bus) argument
H A Dhal-storage-unmount.c172 LibHalDrive *drive; local
174 drive = libhal_drive_from_udi (hal_ctx, udi);
175 if (drive == NULL) {
182 udi, NULL, drive, device, invoked_by_uid,
189 LibHalDrive *drive; local
195 drive = libhal_drive_from_udi (hal_ctx, drive_udi);
196 if (drive == NULL)
197 unknown_error ("Cannot get drive from hal");
203 udi, volume, drive, device, invoked_by_uid,
H A Dhal-storage-zpool.c178 LibHalDrive *drive; local
228 unknown_zpool_error ("Cannot get drive udi");
230 if ((drive = libhal_drive_from_udi (hal_ctx, drive_udi)) == NULL) {
231 unknown_zpool_error ("Cannot get drive from udi");
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_info.c93 * get the info about this drive
98 tlm_drive_t *drive; local
104 drive = library->tl_drive;
105 while (drive != NULL) {
106 if (drv == drive->td_number) {
107 return (drive);
109 drive = drive->td_next;
340 * add a new tape drive data blob to the list of drives in a library
341 * returns the new tape drive dat
347 tlm_drive_t *drive = ndmp_malloc(sizeof (tlm_drive_t)); local
[all...]
H A Dtlm_init.c338 * Make the tape drive not part of a tape library (stand alone)
353 NDMP_LOG(LOG_DEBUG, "Internal error: drive not found %d", d);
357 /* For stand-alone drives, the element number is the drive number. */
396 /* Not part of any library, this is a newly found tape drive. */
411 tlm_drive_t *drive; local
423 /* This tape drive was not found inside any robot. */
444 if ((drive = tlm_drive(l, d)) != NULL) {
445 drive->td_exists = TRUE;
446 drive->td_slink = slink;
511 "Error getting drive(
[all...]
/illumos-gate/usr/src/cmd/rmvolmgr/
H A Drmm_common.c164 LibHalDrive *drive; local
180 if (((drive = rmm_hal_volume_findby(hal_ctx,
182 ((drive = rmm_hal_volume_findby(hal_ctx,
184 ((drive = rmm_hal_volume_findby(hal_ctx,
186 ((drive = rmm_hal_volume_findby(hal_ctx,
195 if ((drive = rmm_hal_volume_findby(hal_ctx,
200 drive = rmm_hal_volume_findby_nickname(hal_ctx, name, volumes);
206 return (drive);
216 LibHalDrive *drive; local
223 if ((drive
254 LibHalDrive *drive = NULL; local
433 LibHalDrive *drive = NULL; local
981 LibHalDrive *drive = NULL; local
[all...]
/illumos-gate/usr/src/cmd/sa/
H A Dsadp.c37 to examine disk drive's I/O queue.
39 it reads the circular output queue for each drive
41 usage : sadp [-th][-d device[-drive]] s [n]
96 "Invalid drive specified for device %s, valid drives are: "
239 char drive[30]; variable
460 * Make sure device and drive specified is legitimate.
525 * Get current I/O count for each drive.
542 * If no drives are selected or illegal drive number
853 * Get drive number routine.
861 strcpy(drive, empt
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_vdev.c186 dm_descriptor_t *drive, *media, *slice; local
192 * Get the drive associated with this disk. This should never fail,
195 if ((drive = dm_get_associated_descriptors(disk, DM_DRIVE,
196 &err)) == NULL || *drive == NULL) {
202 if ((media = dm_get_associated_descriptors(*drive, DM_MEDIA,
204 dm_free_descriptors(drive);
210 dm_free_descriptors(drive);
213 * It is possible that the user has specified a removable media drive,
218 vdev_error(gettext("'%s' has no media in drive\n"), name);
/illumos-gate/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c238 assign_device_name (int drive, const char *device) argument
241 if (device_map[drive])
242 free (device_map[drive]);
245 if (disks[drive].flags != -1)
247 close (disks[drive].flags);
248 disks[drive].flags = -1;
253 device_map[drive] = 0;
255 device_map[drive] = strdup (device);
346 /* Copy MAP to the drive map and set up the int13 handler. */
445 track_int13 (int drive) argument
762 get_diskinfo(int drive, struct geometry *geometry) argument
933 biosdisk(int subfunc, int drive, struct geometry *geometry, unsigned long long sector, int nsec, int segment) argument
[all...]
/illumos-gate/usr/src/grub/grub-0.97/lib/
H A Ddevice.c138 /* Get the geometry of a drive DRIVE. */
140 get_drive_geometry (struct geometry *geom, char **map, int drive) argument
146 fd = open (map[drive], O_RDONLY);
257 if (drive & 0x80)
428 get_dac960_disk_name (char *name, int controller, int drive) argument
430 sprintf (name, "/dev/rd/c%dd%d", controller, drive);
484 /* Check if DEVICE is a CD-ROM drive by the HDIO_GETGEO ioctl. */
550 int drive; local
578 show_error (line_number, "Bad drive name");
586 drive
809 int controller, drive; local
859 is_disk_device(char **map, int drive) argument
870 write_to_partition(char **map, int drive, int partition, int sector, int size, const char *buf) argument
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dbios.c30 extern int biosdisk_int13_extensions (int ax, int drive, void *dap);
31 extern int biosdisk_standard (int ah, int drive,
34 extern int check_int13_extensions (int drive);
35 extern int get_diskinfo_standard (int drive,
40 extern int get_diskinfo_floppy (int drive,
54 biosdisk (int read, int drive, struct geometry *geometry,
88 err = biosdisk_int13_extensions ((read + 0x42) << 8, drive, &dap);
107 return biosdisk (read, drive, geometry, sector, nsec, segment);
126 err = biosdisk_standard (read + 0x02, drive,
136 get_cdinfo (int drive, struc
52 biosdisk(int read, int drive, struct geometry *geometry, unsigned long long sector, int nsec, int segment) argument
134 get_cdinfo(int drive, struct geometry *geometry) argument
211 get_diskinfo(int drive, struct geometry *geometry) argument
[all...]
H A Dbuiltins.c80 /* The BIOS drive map. */
308 /* Exchage SAVED_DRIVE with the mapped drive. */
847 char *drive = arg;
850 /* Get the drive number from DRIVE. */
851 if (! set_device (drive))
855 device = skip_to (0, drive);
877 "Specify DEVICE as the actual drive for a BIOS drive DRIVE. This command"
1536 " is a drive, or in the \"bootloader\" area if DEVICE is a FFS partition."
1597 set_root (char *root, unsigned long drive, unsigne
837 char *drive = arg; local
1578 set_root(char *root, unsigned long drive, unsigned long part) argument
1598 unsigned long drive; local
4553 sprint_device(int drive, int partition) argument
4573 embed_stage1_5(char *stage1_5, int drive, int partition) argument
[all...]
H A Dcommon.c159 int drive; local
270 /* Get the drive info. */
279 for (drive = 0x80; drive < 0x88; drive++)
285 /* Get the geometry. This ensures that the drive is present. */
286 if (get_diskinfo (drive, &geom))
297 track_int13 (drive);
301 info->drive_number = drive;
340 /* Set boot drive an
[all...]
H A Ddisk_io.c158 rawread(int drive, unsigned long long sector, int byte_offset, int byte_len, argument
177 if (buf_drive != drive)
179 if (get_diskinfo (drive, &buf_geom))
184 buf_drive = drive;
222 bios_err = biosdisk (BIOSDISK_READ, drive, &buf_geom,
237 || biosdisk (BIOSDISK_READ, drive, &buf_geom,
263 if (biosdisk (BIOSDISK_READ, drive, &buf_geom,
334 * -- It takes an extra parameter, the drive number.
346 rawwrite(int drive, unsigned long long sector, char *buf) argument
350 if (biosdisk (BIOSDISK_READ, drive,
596 next_partition(unsigned long drive, unsigned long dest, unsigned long *partition, int *type, unsigned long long *start, unsigned long long *len, unsigned long long *offset, int *entry, unsigned long long *ext_offset, unsigned long long *gpt_offset, int *gpt_count, int *gpt_size, char *buf) argument
1111 int drive = (dev >> 24) & 0xFF; local
[all...]
/illumos-gate/usr/src/lib/hal/libhal-storage/common/
H A Dlibhal-storage.c203 /* volume may be NULL (e.g. if drive supports removable media) */
205 libhal_drive_policy_compute_display_name (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
218 model = libhal_drive_get_model (drive);
219 vendor = libhal_drive_get_vendor (drive);
220 drive_type = libhal_drive_get_type (drive);
221 drive_is_hotpluggable = libhal_drive_is_hotpluggable (drive);
222 drive_is_removable = libhal_drive_uses_removable_media (drive);
223 drive_cdrom_caps = libhal_drive_get_cdrom_caps (drive);
248 /* Optical drive handling */
351 libhal_volume_policy_compute_display_name (LibHalDrive *drive, LibHalVolum argument
518 libhal_drive_policy_compute_icon_name(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
548 libhal_volume_policy_compute_icon_name(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
606 libhal_volume_policy_should_be_visible(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy, const char *target_mount_point) argument
781 libhal_drive_get_dedicated_icon_drive(LibHalDrive *drive) argument
787 libhal_drive_get_dedicated_icon_volume(LibHalDrive *drive) argument
797 libhal_drive_free(LibHalDrive *drive) argument
898 LibHalDrive *drive; local
1069 libhal_drive_get_physical_device_udi(LibHalDrive *drive) argument
1075 libhal_drive_requires_eject(LibHalDrive *drive) argument
1422 libhal_drive_is_hotpluggable(LibHalDrive *drive) argument
1428 libhal_drive_uses_removable_media(LibHalDrive *drive) argument
1434 libhal_drive_is_media_detected(LibHalDrive *drive) argument
1440 libhal_drive_get_size(LibHalDrive *drive) argument
1446 libhal_drive_get_media_size(LibHalDrive *drive) argument
1452 libhal_drive_get_partition_scheme(LibHalDrive *drive) argument
1459 libhal_drive_get_type(LibHalDrive *drive) argument
1465 libhal_drive_get_bus(LibHalDrive *drive) argument
1471 libhal_drive_get_cdrom_caps(LibHalDrive *drive) argument
1477 libhal_drive_get_device_major(LibHalDrive *drive) argument
1483 libhal_drive_get_device_minor(LibHalDrive *drive) argument
1489 libhal_drive_get_type_textual(LibHalDrive *drive) argument
1495 libhal_drive_get_device_file(LibHalDrive *drive) argument
1501 libhal_drive_get_udi(LibHalDrive *drive) argument
1507 libhal_drive_get_serial(LibHalDrive *drive) argument
1513 libhal_drive_get_firmware_version(LibHalDrive *drive) argument
1519 libhal_drive_get_model(LibHalDrive *drive) argument
1525 libhal_drive_get_vendor(LibHalDrive *drive) argument
1706 libhal_drive_find_all_volumes(LibHalContext *hal_ctx, LibHalDrive *drive, int *num_volumes) argument
1857 libhal_drive_policy_is_mountable(LibHalDrive *drive, LibHalStoragePolicy *policy) argument
1865 libhal_drive_policy_get_desired_mount_point(LibHalDrive *drive, LibHalStoragePolicy *policy) argument
1958 libhal_drive_policy_get_mount_options(LibHalDrive *drive, LibHalStoragePolicy *policy) argument
1984 libhal_drive_policy_get_mount_fs(LibHalDrive *drive, LibHalStoragePolicy *policy) argument
1991 libhal_volume_policy_is_mountable(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
1996 libhal_volume_policy_get_desired_mount_point(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
2001 libhal_volume_policy_get_mount_options(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
2026 libhal_volume_policy_get_mount_fs(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
2032 libhal_drive_no_partitions_hint(LibHalDrive *drive) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/comp/
H A Domitted.c783 int drive; local
813 drive = nat[0];
844 drive = 'C':
854 snprintf(tmp, sizeof(tmp), deleted, drive, base, suffix);
898 snprintf(tmp, sizeof(tmp), deleted, drive, base, suffix);
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Ddrive.c380 * Get the drive descriptors for the given media/alias/devpath.
387 /* at most one drive is associated with these descriptors */
434 * Check if we have the drive in our list, based upon the device id.
445 descriptor_t *drive = NULL; local
461 * want. Once drive is set, we don't need to compare any more.
464 if (drive == NULL && drives[i]->p.disk->devid != NULL &&
466 drive = drives[i];
476 if (drive == NULL) {
480 return (drive);
667 /* Make sure the drive typ
[all...]
H A Dentry.c496 * slices for the named disk drive.
499 dm_get_slices(char *drive, dm_descriptor_t **slices, int *errp) argument
508 if (drive == NULL) {
512 alias = dm_get_descriptor_by_name(DM_ALIAS, drive, errp);

Completed in 4737 milliseconds

12