Lines Matching defs:label
9 * This utility will display/change the label on an NTFS partition.
62 char *label; /* Set the label to this */
80 ntfs_log_info("\n%s v%s (libntfs-3g) - Display, or set, the label for an "
99 ntfs_log_info("\nUsage: %s [options] device [label]\n"
150 else if (!err && !opts.label)
151 opts.label = argv[optind-1];
341 * print_label - display the current label of a mounted ntfs partition.
342 * @dev: device to read the label from
346 * Print the label of the device @dev.
360 ntfs_log_info("Volume label : %s\n", vol->vol_name);
367 * change_label - change the current label on a device
368 * @dev: device to change the label on
371 * @label: the new label
373 * Change the label on the device @dev to @label.
375 static int change_label(ntfs_volume *vol, char *label)
381 label_len = ntfs_mbstoucs(label, &new_label);
383 ntfs_log_perror("Unable to convert label string to Unicode");
387 ntfs_log_warning("New label is too long. Maximum %u characters "
426 if ((opts.label || opts.new_serial)
436 if (!opts.label && !opts.new_serial)
453 if (opts.label)
454 result = change_label(vol, opts.label);