Bug 24054 – Devickit-disks doesn't support changing ntfs label
authorDavid Zeuthen <davidz@redhat.com>
Fri, 9 Oct 2009 13:58:51 +0000 (09:58 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 9 Oct 2009 13:58:51 +0000 (09:58 -0400)
src/job-change-filesystem-label.c

index d464c2c..e2847a4 100644 (file)
@@ -85,6 +85,8 @@ main (int argc, char **argv)
                 else
                         command_line = g_strdup_printf ("mlabel -i %s \"::%s\"", device, new_label);
 
+        } else if (strcmp (fstype, "ntfs") == 0) {
+                command_line = g_strdup_printf ("ntfslabel %s \"%s\"", device, new_label);
         } else {
                 g_printerr ("fstype %s not supported\n", fstype);
                 goto out;