Home
last modified time | relevance | path

Searched refs:mount_point (Results 1 – 18 of 18) sorted by relevance

/illumos-gate/usr/src/cmd/hal/tools/
H A Dhal-storage-mount.c123 invalid_mount_point (const char *mount_point) in invalid_mount_point() argument
126 fprintf (stderr, "The mount point '%s' is invalid\n", mount_point); in invalid_mount_point()
131 mount_point_not_available (const char *mount_point) in mount_point_not_available() argument
134 fprintf (stderr, "The mount point '%s' is already occupied\n", mount_point); in mount_point_not_available()
392 device_is_mounted (const char *device, char **mount_point) in device_is_mounted() argument
405 while (((entry = mtab_next (handle, mount_point)) != NULL) && (ret == FALSE)) { in device_is_mounted()
456 char mount_point[256]; local
535 if (strlen (fgets (mount_point, sizeof (mount_point), stdin)) > 0)
536 mount_point [strlen (mount_point) - 1] = '\0';
542 if (!g_utf8_validate (mount_point, -1, &end))
[all …]
H A Dhal-storage-cleanup-mountpoint.c49 do_cleanup (const char *mount_point) in do_cleanup() argument
110 if (strcmp (line_elements[5], mount_point) == 0) { in do_cleanup()
132 printf ("Found entry for mount point '%s' in /media/.hal-mtab", mount_point); in do_cleanup()
158 if (g_rmdir (mount_point) != 0) { in do_cleanup()
174 char *mount_point; in main() local
180 mount_point = getenv ("HALD_CLEANUP"); in main()
181 if (mount_point == NULL) in main()
185 printf ("in hal-storage-cleanup-mountpoint for mount point '%s'\n", mount_point); in main()
187 do_cleanup (mount_point); in main()
H A Dhal-storage-shared.c95 mtab_next (gpointer handle, char **mount_point) in mtab_next() argument
104 #error TODO: set *mount_point to g_strdup()-ed value if mount_point!=NULL in mtab_next()
109 if (mount_point != NULL) { in mtab_next()
110 *mount_point = g_strdup (mnt.mnt_mountp); in mtab_next()
122 if (mount_point != NULL) { in mtab_next()
123 *mount_point = g_strdup (mnt->mnt_dir); in mtab_next()
159 fstab_next (gpointer handle, char **mount_point) in fstab_next() argument
167 if (mount_point != NULL && fstab != NULL) { in fstab_next()
168 *mount_point = fstab->fs_file; in fstab_next()
181 if (mount_point != NULL && mnt != NULL) { in fstab_next()
[all …]
H A Dhal-storage-cleanup-all-mountpoints.c98 char *mount_point; in do_cleanup() local
112 mount_point = line_elements[5]; in do_cleanup()
115 if (g_rmdir (mount_point) == 0) { in do_cleanup()
118 printf ("Removed mount_point '%s'", mount_point); in do_cleanup()
H A Dhal-storage-shared.h42 char *mtab_next (gpointer handle, char **mount_point);
46 char *fstab_next (gpointer handle, char **mount_point);
76 const char *auth_used, const char *mount_point, const char *device, const char *options);
/illumos-gate/usr/src/cmd/stat/common/
H A Dmnt.c117 free(nfs->mount_point); in build_mnt_list()
125 free(ufs->mount_point); in build_mnt_list()
148 item->mount_point = in build_mnt_list()
H A Ddsr.h49 char *mount_point; member
/illumos-gate/usr/src/cmd/rmvolmgr/
H A Dvold.c139 char *mount_point,
637 char *mount_point; in create_notify_files() local
656 mount_point = aa[ai]->aa_mountpoint; in create_notify_files()
676 mount_point = "none"; in create_notify_files()
723 mount_point, in create_notify_files()
737 char *mount_point, in create_one_notify_file() argument
767 dprintf("\tcreate_one_notify_file(): mount_point = %s\n", mount_point); in create_one_notify_file()
829 mount_point, in create_one_notify_file()
836 mount_point, in create_one_notify_file()
H A Drmm_common.c314 const char *mount_point = NULL; in rmm_print_nicknames_one() local
337 ((mount_point = libhal_volume_get_mount_point(v)) != NULL) && in rmm_print_nicknames_one()
338 (strlen(mount_point) > 0)) { in rmm_print_nicknames_one()
339 (void) printf("%s%s", comma ? "," : "", mount_point); in rmm_print_nicknames_one()
1240 char *mount_point = NULL; in rmm_get_mnttab_mount_point() local
1248 mount_point = strdup(mnt.mnt_mountp); in rmm_get_mnttab_mount_point()
1253 return (mount_point); in rmm_get_mnttab_mount_point()
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_storage.c1434 char *mount_point = (char *) data1; in devinfo_storage_cleanup_mountpoint_cb() local
1436 HAL_INFO (("Cleaned up mount point '%s'", mount_point)); in devinfo_storage_cleanup_mountpoint_cb()
1437 g_free (mount_point); in devinfo_storage_cleanup_mountpoint_cb()
1451 char *mount_point; in devinfo_storage_mnttab_event() local
1509 mount_point = g_strdup (hal_device_property_get_string (d, "volume.mount_point")); in devinfo_storage_mnttab_event()
1510 if (mount_point == NULL || strlen (mount_point) == 0) { in devinfo_storage_mnttab_event()
1511 g_free (mount_point); in devinfo_storage_mnttab_event()
1524 if (hal_util_is_mounted_by_hald (mount_point)) { in devinfo_storage_mnttab_event()
1527 HAL_INFO (("Cleaning up '%s'", mount_point)); in devinfo_storage_mnttab_event()
1529 extra_env[0] = g_strdup_printf ("HALD_CLEANUP=%s", mount_point); in devinfo_storage_mnttab_event()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dsetup.c115 if (mount_point != NULL) { in read_super_block()
116 fd = open(mount_point, O_RDONLY); in read_super_block()
193 if (mount_point != NULL) { in flush_fs()
194 fd = open(mount_point, O_RDONLY); in flush_fs()
257 (((mount_point == NULL) && (sblock.fs_rolled != FS_ALL_ROLLED)) || in logsetup()
258 ((mount_point != NULL) && !mflag))) { in logsetup()
308 (sblock.fs_clean == FSSTABLE) && (mount_point != NULL))) in logsetup()
460 mount_point = NULL; in check_mount_state()
464 corefs = which_corefs(mount_point); in check_mount_state()
H A Dfsck.h348 extern char *mount_point; /* if mounted, this is where */
H A Dutilities.c66 caddr_t mount_point = NULL; variable
1075 if (mount_point == NULL) { in mounted()
1076 mount_point = strdup(mntent->mnt_mountp); in mounted()
1077 if (mount_point == NULL) { in mounted()
/illumos-gate/usr/src/cmd/fs.d/smbclnt/mount/
H A Dmount.c72 static char mount_point[MAXPATHLEN + 1]; variable
317 if ((realpath(argv[optind+1], mount_point) == NULL) || in main()
318 (stat(mount_point, &st) == -1)) { in main()
324 err(EX_MNT, gettext("can't mount on %s"), mount_point); in main()
/illumos-gate/usr/src/lib/hal/libhal-storage/common/
H A Dlibhal-storage.c604 const char *mount_point; in libhal_volume_policy_should_be_visible() local
636 mount_point = libhal_volume_get_mount_point (volume); in libhal_volume_policy_should_be_visible()
640 if (mount_point == NULL) in libhal_volume_policy_should_be_visible()
641 mount_point = target_mount_point; in libhal_volume_policy_should_be_visible()
648 if (mount_point != NULL) { in libhal_volume_policy_should_be_visible()
650 if (strcmp (mount_point, fhs23_toplevel_mount_points[i]) == 0) in libhal_volume_policy_should_be_visible()
724 char *mount_point; /* NULL iff !is_mounted */ member
827 libhal_free_string (vol->mount_point); in libhal_volume_free()
1148 LIBHAL_PROP_EXTRACT_STRING ("volume.mount_point", vol->mount_point); in libhal_volume_from_udi()
1646 return volume->mount_point; in libhal_volume_get_mount_point()
/illumos-gate/usr/src/cmd/hal/hald/
H A Dutil.h107 gboolean hal_util_is_mounted_by_hald (const char *mount_point);
H A Dutil.c997 hal_util_is_mounted_by_hald (const char *mount_point) in hal_util_is_mounted_by_hald() argument
1065 if (strcmp (line_elements[5], mount_point) == 0) { in hal_util_is_mounted_by_hald()
/illumos-gate/usr/src/cmd/stat/iostat/
H A Diostat.c926 mount_pt->mount_point); in show_disk()
929 mount_pt->mount_point); in show_disk()