Searched refs:volume (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_004_pos.ksh42 # 1. Create a ZFS volume
43 # 2. Set the volume as dump or swap
75 typeset volume=$1
77 log_must zfs snapshot $volume@snap0
78 log_must zfs snapshot $volume@snap1
79 log_must datasetexists $volume@snap0 $volume@snap1
81 log_must zfs destroy $volume@snap1
82 log_must zfs snapshot $volume@snap1
84 log_mustnot zfs rollback -r $volume
[all...]
/illumos-gate/usr/src/lib/hal/libhal-storage/common/
H A Dlibhal-storage.h224 LibHalVolume *volume,
227 LibHalVolume *volume,
282 void libhal_volume_free (LibHalVolume *volume);
283 dbus_uint64_t libhal_volume_get_size (LibHalVolume *volume);
284 dbus_uint64_t libhal_volume_get_disc_capacity (LibHalVolume *volume);
286 const char *libhal_volume_get_udi (LibHalVolume *volume);
287 const char *libhal_volume_get_device_file (LibHalVolume *volume);
288 unsigned int libhal_volume_get_device_major (LibHalVolume *volume);
289 unsigned int libhal_volume_get_device_minor (LibHalVolume *volume);
290 const char *libhal_volume_get_fstype (LibHalVolume *volume);
[all...]
H A Dlibhal-storage.c157 libhal_volume_policy_compute_size_as_string (LibHalVolume *volume) argument
170 size = libhal_volume_get_size (volume);
203 /* 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
225 if (volume != NULL)
226 size_str = libhal_volume_policy_compute_size_as_string (volume);
351 libhal_volume_policy_compute_display_name (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
360 volume_label = libhal_volume_get_label (volume);
364 size_str = libhal_volume_policy_compute_size_as_string (volume);
366 /* If the volume labe
510 libhal_drive_policy_compute_icon_name(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
540 libhal_volume_policy_compute_icon_name(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
598 libhal_volume_policy_should_be_visible(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy, const char *target_mount_point) argument
1056 libhal_volume_get_storage_device_udi(LibHalVolume *volume) argument
1252 libhal_volume_get_msdos_part_table_type(LibHalVolume *volume) argument
1266 libhal_volume_get_msdos_part_table_start(LibHalVolume *volume) argument
1280 libhal_volume_get_msdos_part_table_size(LibHalVolume *volume) argument
1398 libhal_volume_get_size(LibHalVolume *volume) argument
1407 libhal_volume_get_disc_capacity(LibHalVolume *volume) argument
1525 libhal_volume_get_udi(LibHalVolume *volume) argument
1531 libhal_volume_get_device_file(LibHalVolume *volume) argument
1536 libhal_volume_get_device_major(LibHalVolume *volume) argument
1541 libhal_volume_get_device_minor(LibHalVolume *volume) argument
1547 libhal_volume_get_fstype(LibHalVolume *volume) argument
1553 libhal_volume_get_fsversion(LibHalVolume *volume) argument
1559 libhal_volume_get_fsusage(LibHalVolume *volume) argument
1565 libhal_volume_is_mounted(LibHalVolume *volume) argument
1571 libhal_volume_is_mounted_read_only(LibHalVolume *volume) argument
1577 libhal_volume_is_partition(LibHalVolume *volume) argument
1583 libhal_volume_is_disc(LibHalVolume *volume) argument
1589 libhal_volume_get_partition_number(LibHalVolume *volume) argument
1595 libhal_volume_get_partition_scheme(LibHalVolume *volume) argument
1601 libhal_volume_get_partition_type(LibHalVolume *volume) argument
1607 libhal_volume_get_partition_label(LibHalVolume *volume) argument
1613 libhal_volume_get_partition_uuid(LibHalVolume *volume) argument
1619 libhal_volume_get_partition_flags(LibHalVolume *volume) argument
1626 libhal_volume_get_partition_start_offset(LibHalVolume *volume) argument
1632 libhal_volume_get_partition_media_size(LibHalVolume *volume) argument
1638 libhal_volume_get_label(LibHalVolume *volume) argument
1644 libhal_volume_get_mount_point(LibHalVolume *volume) argument
1650 libhal_volume_get_uuid(LibHalVolume *volume) argument
1656 libhal_volume_disc_has_audio(LibHalVolume *volume) argument
1662 libhal_volume_disc_has_data(LibHalVolume *volume) argument
1668 libhal_volume_disc_is_blank(LibHalVolume *volume) argument
1674 libhal_volume_disc_is_rewritable(LibHalVolume *volume) argument
1680 libhal_volume_disc_is_appendable(LibHalVolume *volume) argument
1686 libhal_volume_get_disc_type(LibHalVolume *volume) argument
1692 libhal_volume_should_ignore(LibHalVolume *volume) argument
1745 libhal_volume_crypto_get_backing_volume_udi(LibHalVolume *volume) argument
1751 libhal_volume_crypto_get_clear_volume_udi(LibHalContext *hal_ctx, LibHalVolume *volume) argument
1983 libhal_volume_policy_is_mountable(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
1988 libhal_volume_policy_get_desired_mount_point(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
1993 libhal_volume_policy_get_mount_options(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
2018 libhal_volume_policy_get_mount_fs(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
[all...]
/illumos-gate/usr/src/cmd/hal/probing/
H A DMakefile26 SUBDIRS = storage volume printer network-printer acpi xkb
/illumos-gate/usr/src/cmd/hal/probing/volume/
H A DMakefile26 PROG = hald-probe-volume
27 OBJS = probe-volume.o cdutils.o fsutils.o logger.o
28 SRCS = probe-volume.c
/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapused/
H A Dsnapused.kshlib58 for child in $(zfs list -rH -t filesystem,volume -o name $dataset)
69 for child in $(zfs list -rH -t filesystem,volume -o name $dataset)
123 for child in $(zfs list -rH -t filesystem,volume -o name $dataset)
149 for child in $(zfs list -rH -t filesystem,volume -o name $dataset)
160 for child in $(zfs list -rH -t filesystem,volume,snapshot -o name $dataset)
/illumos-gate/usr/src/cmd/fs.d/ufs/labelit/
H A Dlabelit.c42 * Label a file system volume.
86 char *volume = NULL; local
114 volume = argv[2];
115 if (strlen(volume) > 6) {
118 gettext("volume can not be longer than 6 characters\n"));
122 label(special, fsname, volume);
131 "ufs usage: labelit [-F ufs] [gen opts] special [fsname volume]\n"));
136 label(char *special, char *fsname, char *volume) argument
196 if (sblock.fs_cpc <= 0 && (fsname || volume)) {
220 if (volume !
[all...]
/illumos-gate/usr/src/cmd/hal/tools/
H A Dhal-storage-zpool.c179 LibHalVolume *volume; local
223 /* should be a volume */
224 if ((volume = libhal_volume_from_udi (hal_ctx, udi)) == NULL) {
225 unknown_zpool_error ("Invalid volume");
227 if ((drive_udi = libhal_volume_get_storage_device_udi (volume)) == NULL ) {
233 if ((libhal_volume_get_fstype (volume) == NULL) ||
234 (strcmp (libhal_volume_get_fstype (volume), "zfs") != 0)) {
237 if ((libhal_volume_get_label (volume) == NULL) ||
238 (strlen (libhal_volume_get_label (volume)) == 0)) {
247 libhal_volume_get_label (volume),
[all...]
H A Dhal-storage-unmount.c80 LibHalVolume *volume; local
170 volume = libhal_volume_from_udi (hal_ctx, udi);
171 if (volume == NULL) {
191 drive_udi = libhal_volume_get_storage_device_udi (volume);
194 unknown_error ("Cannot get drive_udi from volume");
203 udi, volume, drive, device, invoked_by_uid,
H A Dhal-storage-mount.c86 fprintf (stderr, "Device has %s volume.ignore set to TRUE. Refusing to mount.\n", device);
282 if (libhal_device_query_capability (hal_ctx, udi, "volume", &error)) {
342 /* see if a volume is mounted at this mount point */
346 mounted_vol = volume_findby (hal_ctx, "volume.mount_point", _mount_point);
450 LibHalVolume *volume, LibHalDrive *drive, const char *device,
505 if (volume != NULL) {
507 if (libhal_device_get_property_bool (hal_ctx, udi, "volume.ignore", &error) ||
514 * set volume.ignore on all volumes, but still want
523 label = libhal_volume_get_label (volume);
524 uuid = libhal_volume_get_uuid (volume);
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
1066 LibHalVolume *volume; local
[all...]
H A Dhal-storage-eject.c81 LibHalVolume *volume; local
159 /* should be either volume or storage */
160 if ((volume = libhal_volume_from_udi (hal_ctx, udi)) != NULL) {
161 drive_udi = libhal_volume_get_storage_device_udi (volume);
184 printf ("processing drive's volume %s (%d of %d)\n", volume_udi, i + 1, num_volumes);
188 unknown_eject_error ("Cannot get volume object");
H A Dhal-storage-shared.h59 LibHalVolume *volume, LibHalDrive *drive, const char *device,
H A Dhal-storage-shared.c254 fprintf (stderr, "Device has %s volume.ignore set to TRUE. Refusing to mount.\n", device);
264 LibHalVolume *volume, LibHalDrive *drive, const char *device,
296 if (volume != NULL) {
298 if (libhal_device_get_property_bool (hal_ctx, udi, "volume.ignore", &error) ||
305 * set volume.ignore on all volumes, but still want
314 if (!libhal_volume_is_mounted (volume)) {
315 not_mounted ("According to HAL, the volume is not mounted");
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
/illumos-gate/usr/src/lib/libadm/common/
H A Dgetvol.c65 static char *volume; /* volume name */ variable
120 volume = devattr(device, "volume");
137 if (!(options & DM_BATCH) && volume) {
150 if ((options & DM_BATCH) || (volume == NULL))
167 volume == NULL)
257 "Enter text for volume label:"))
298 voltxt = (volume ? volume
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dro_props_001_pos.ksh48 set -A values filesystem volume snapshot -3 0 1 50K 10G 80G \
76 # Create filesystem and volume's snapshot
H A Dreadonly_001_pos.ksh39 # 1. Create pool, then create filesystem and volume within it.
115 volume)
H A Dzfs_set_common.kshlib112 typeset dtst=$(zfs list -H -r -o name -t filesystem,volume $pool)
/illumos-gate/usr/src/cmd/rmvolmgr/
H A Drmm_common.c157 * find volume from any type of name, similar to the old media_findname()
187 "volume.mount_point", name, volumes)) != NULL)) {
194 /* try volume label */
196 "volume.label", name, volumes)) != NULL) {
210 * find default volume. Returns volume pointer and name in 'name'.
245 * find volume by property=value
275 if (libhal_device_query_capability(hal_ctx, udis[i], "volume",
347 * print nicknames for each available volume
351 * RMM_PRINT_EJECTABLE print volume
1069 LibHalVolume *volume = volume_arg; local
[all...]
/illumos-gate/usr/src/boot/sys/sys/
H A Dvtoc.h72 char volume[VTOC_VOLUME_LEN]; member in struct:vtoc8
119 char v_volume[LEN_DKL_VVOL]; /* volume name */
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_get/
H A Dzfs_get_004_pos.ksh147 ds=`zfs list -H -r -o name -t filesystem,volume $pool`
186 volume )
/illumos-gate/usr/src/cmd/mandoc/
H A Dman_term.c1082 const char *volume; local
1089 volume = NULL == meta->vol ? "" : meta->vol;
1090 vollen = term_strlen(p, volume);
1107 /* At the top in the middle: manual volume. */
1114 term_word(p, volume);
H A Dmdoc_term.c493 char *volume, *title; local
505 * string depending on the manual volume. If not specified, it
511 volume = mandoc_strdup(meta->vol);
513 mandoc_asprintf(&volume, "%s (%s)",
515 vollen = term_strlen(p, volume);
539 term_word(p, volume);
556 free(volume);
H A Dmdoc_html.c471 char *volume, *title; local
474 volume = mandoc_strdup(meta->vol);
476 mandoc_asprintf(&volume, "%s (%s)",
493 print_text(h, volume);
501 free(volume);
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvds.c150 VD_DRIVER_VOLUME /* volume driver */
159 vd_driver_t type; /* driver type (disk or volume) */
164 * or a volume, especially with pseudo devices. So we maintain a list of well
166 * volume).
175 * <type> is either the string "disk" or "volume"
181 * driver-type-list="foo:disk","bar:volume";
183 * defines that "foo" is a disk driver, and driver "bar" is a volume driver.
240 ((vd)->file || (vd)->volume))
466 boolean_t volume; /* is vDisk backed by volume */ member in struct:vd
[all...]
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_storage.c512 /* trigger initial probe-volume */
557 /* remove child (can only be single volume) */
631 * sd instance -> HAL storage, sd minor node -> HAL volume,
775 * For volume's devfs_path we'll use minor_path/slice instead of
796 * Storage minor nodes are potential "volume" objects.
820 HalDevice *volume; local
948 /* XXX detect volume removal? */
949 volume = hal_device_store_match_key_value_string (hald_get_gdl (),
951 if ((volume == NULL) || !hal_device_has_capability(volume, "volum
[all...]

Completed in 337 milliseconds

12