Lines Matching defs:mount_point

126 invalid_mount_point (const char *mount_point)
129 fprintf (stderr, "The mount point '%s' is invalid\n", mount_point);
134 mount_point_not_available (const char *mount_point)
137 fprintf (stderr, "The mount point '%s' is already occupied\n", mount_point);
349 mounted_vol = volume_findby (hal_ctx, "volume.mount_point", _mount_point);
395 device_is_mounted (const char *device, char **mount_point)
408 while (((entry = mtab_next (handle, mount_point)) != NULL) && (ret == FALSE)) {
459 char mount_point[256];
542 if (strlen (fgets (mount_point, sizeof (mount_point), stdin)) > 0)
543 mount_point [strlen (mount_point) - 1] = '\0';
549 if (!g_utf8_validate (mount_point, -1, &end))
550 unknown_error ("Error validating mount_point as UTF-8");
559 for (i = 0; mount_point[i] != '\0'; i++) {
560 if (mount_point[i] == '\n' ||
561 mount_point[i] == G_DIR_SEPARATOR) {
562 unknown_error ("mount_point cannot contain the following characters: newline, G_DIR_SEPARATOR (usually /)");
567 is_abs_path = (mount_point[0] == G_DIR_SEPARATOR);
571 printf ("mount_point = '%s'\n", mount_point);
638 if (strlen (mount_point) == 0) {
652 g_strlcpy (mount_point, label, sizeof (mount_point));
655 g_strlcpy (mount_point, model, sizeof (mount_point));
657 g_strlcpy (mount_point, drive_type, sizeof (mount_point));
660 g_snprintf (mount_point, sizeof (mount_point), "disk");
664 p = mount_point;
666 p = g_utf8_strchr (mount_point, -1, G_DIR_SEPARATOR);
680 if (g_utf8_strchr (mount_point, -1, G_DIR_SEPARATOR) != NULL) {
681 printf ("'%s' is an invalid mount point\n", mount_point);
682 invalid_mount_point (mount_point);
695 mount_dir = g_strdup (mount_point);
699 mount_dir = g_strdup_printf ("/media/%s", mount_point);
701 mount_dir = g_strdup_printf ("/media/%s-%d", mount_point, i);