Lines Matching refs:name
198 * @name: Full pathname of the device/file to work with
201 * Check that the name refers to a device and that is isn't already mounted.
207 int utils_valid_device(const char *name, int force)
216 if (!name) {
221 if (stat(name, &st) == -1) {
223 ntfs_log_error("The device %s doesn't exist\n", name);
226 name);
231 if (ntfs_check_if_mounted(name, &mnt_flags)) {
233 name);
519 * add name to list
647 char *name;
650 // flags: attr, name, or both
658 name = NULL;
659 namelen = ntfs_ucsnlen(attrdef->name, sizeof(attrdef->name));
660 if (ntfs_ucstombs(attrdef->name, namelen, &name, 0) < 0) {
666 len = snprintf(buffer, bufsize, "%s", name);
684 name = NULL;
688 namelen, &name, 0) < 0) {
689 ntfs_log_error("Couldn't translate attribute name to current "
696 len = snprintf(buffer, bufsize, "(%s)", name);
697 free(name);
700 ntfs_log_error("Attribute name was truncated.\n");