Revert "Add nilfs2 label rename"
authorDavid Zeuthen <davidz@redhat.com>
Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)
This reverts commit 7a4a5e7f3ecb568a1670ec056d297e636e2a567f.

src/daemon.c
src/helpers/job-change-filesystem-label.c
tests/run

index d46c6da..44be94f 100644 (file)
@@ -395,7 +395,7 @@ static const Filesystem known_file_systems[] =
       TRUE, /* can_mount */
       TRUE, /* can_create */
       80, /* max_label_len */
-      TRUE, /* supports_label_rename */
+      FALSE, /* supports_label_rename */
       FALSE, /* supports_online_label_rename*/
       FALSE, /* supports_fsck */
       FALSE, /* supports_online_fsck */
index bdb28c6..5b3e746 100644 (file)
@@ -103,10 +103,6 @@ main (int argc,
     {
       command_line = g_strdup_printf ("ntfslabel %s \"%s\"", device, new_label);
     }
-  else if (strcmp (fstype, "nilfs2") == 0)
-    {
-      command_line = g_strdup_printf ("nilfs-tune -L %s \"%s\"", new_label, device);
-    }
   else
     {
       g_printerr ("fstype %s not supported\n", fstype);
index bc27cc9..d320333 100755 (executable)
--- a/tests/run
+++ b/tests/run
@@ -590,8 +590,8 @@ class FS(UDisksTestCase):
                 self.assertEqual(fs[3], type != 'swap') # can_mount
                 self.assert_(fs[4]) # can_create
                 supports_label_rename = fs[6]
-                # minix does not support labels; EXFAIL: swap, btrfs don't have a program for it
-                self.assertEqual(supports_label_rename, type not in ('btrfs', 'minix', 'swap'))
+                # minix does not support labels; EXFAIL: swap, btrfs, nilfs2 don't have a program for it
+                self.assertEqual(supports_label_rename, type not in ('nilfs2', 'btrfs', 'minix', 'swap'))
                 break
         else:
             self.fail('KnownFilesystems does not contain ' + type)