Whamcloud - gitweb
ChangeLog, fsck.c:
authorTheodore Ts'o <tytso@mit.edu>
Mon, 8 May 2000 14:47:15 +0000 (14:47 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 May 2000 14:47:15 +0000 (14:47 +0000)
  fsck.c (interpret_device): Add better error messages if a UUID= or
   LABEL= specification is given.

misc/ChangeLog
misc/fsck.c

index 2debf22..f9fc009 100644 (file)
@@ -1,5 +1,8 @@
 2000-05-08  Theodore Ts'o  <tytso@valinux.com>
 
+       * fsck.c (interpret_device): Add better error messages if a UUID=
+               or LABEL= specification is given.
+
        * mke2fs.c (main): We forcibly turn off the filetype feature if
                the OS is the hurd, since the hurd doesn't support it.
                (And since the hurd allows the transmogrification of files
index 1e76257..c9ed769 100644 (file)
@@ -274,7 +274,16 @@ static char *interpret_device(char *spec)
                fprintf(stderr, "Is /proc mounted?\n");
                exit(1);
        }
-       return spec;
+       /*
+        * Check to see if this is because we're not running as root
+        */
+       if (geteuid())
+               fprintf(stderr, "Must be root to scan for matching "
+                       "filesystems: %s\n", spec);
+       else
+               fprintf(stderr, "Couldn't find matching filesystem: %s\n", 
+                       spec);
+       exit(1);
 }
 
 /*