Lines Matching defs:mount_point

123 invalid_mount_point (const char *mount_point)
126 fprintf (stderr, "The mount point '%s' is invalid\n", mount_point);
131 mount_point_not_available (const char *mount_point)
134 fprintf (stderr, "The mount point '%s' is already occupied\n", mount_point);
346 mounted_vol = volume_findby (hal_ctx, "volume.mount_point", _mount_point);
392 device_is_mounted (const char *device, char **mount_point)
405 while (((entry = mtab_next (handle, mount_point)) != NULL) && (ret == FALSE)) {
456 char mount_point[256];
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))
543 unknown_error ("Error validating mount_point as UTF-8");
552 for (i = 0; mount_point[i] != '\0'; i++) {
553 if (mount_point[i] == '\n' ||
554 mount_point[i] == G_DIR_SEPARATOR) {
555 unknown_error ("mount_point cannot contain the following characters: newline, G_DIR_SEPARATOR (usually /)");
560 is_abs_path = (mount_point[0] == G_DIR_SEPARATOR);
564 printf ("mount_point = '%s'\n", mount_point);
631 if (strlen (mount_point) == 0) {
645 g_strlcpy (mount_point, label, sizeof (mount_point));
648 g_strlcpy (mount_point, model, sizeof (mount_point));
650 g_strlcpy (mount_point, drive_type, sizeof (mount_point));
653 g_snprintf (mount_point, sizeof (mount_point), "disk");
657 p = mount_point;
659 p = g_utf8_strchr (mount_point, -1, G_DIR_SEPARATOR);
673 if (g_utf8_strchr (mount_point, -1, G_DIR_SEPARATOR) != NULL) {
674 printf ("'%s' is an invalid mount point\n", mount_point);
675 invalid_mount_point (mount_point);
688 mount_dir = g_strdup (mount_point);
692 mount_dir = g_strdup_printf ("/media/%s", mount_point);
694 mount_dir = g_strdup_printf ("/media/%s-%d", mount_point, i);