List:Internals« Previous MessageNext Message »
From:Jorge Bernal Date:May 8 2007 2:25pm
Subject:[PATCH] Proposed patch for #22615: MySQL Server incorrectly catogorizes the lost+found directory as a database
View as plain text  
Hi,

here goes a patch for the bug <http://bugs.mysqsl.com/22615>.

Do you think this is enough, or it should be configurable?

Cheers,
	Koke

PS: Just in case attachments get lost, they're available at
	http://people.warp.es/~koke/patches/


# HG changeset patch
# User Jorge Bernal <jbernal@stripped>
# Date 1178666303 -7200
# Node ID 33cacf0e42cf057084d6dba57ebd80ca5665bf4d
# Parent  67963b78daef0bb6e54d4e53e568e76e59a03ea3
Don't interpret lost+found directories in data dir as databases. Fixes #22615

diff -r 67963b78daef -r 33cacf0e42cf sql/sql_show.cc
--- a/sql/sql_show.cc	Tue May 08 16:44:50 2007 +0200
+++ b/sql/sql_show.cc	Wed May 09 01:18:23 2007 +0200
@@ -528,6 +528,8 @@ find_files(THD *thd, List<char> *files, 
           ((file->name[1] == '.' && file->name[2] == '\0') ||
             file->name[1] == '\0')))
         continue;                               /* . or .. */
+      if (!strcmp(file->name,"lost+found"))
+        continue;                               /* #22615: Ignore lost+found directory */
 #ifdef USE_SYMDIR
       char *ext;
       char buff[FN_REFLEN];



--
Jorge Bernal Ordovás  <koke@stripped>
http://amedias.org/ [ES]
http://koke.amedias.org/ [EN]

Warp Networks         http://www.warp.es/
D. Jaime I 33 3º Dcha, 50001 Zaragoza, Spain




Thread
[PATCH] Proposed patch for #22615: MySQL Server incorrectly catogorizes the lost+found directory as a databaseJorge Bernal9 May
  • Re: [PATCH] Proposed patch for #22615: MySQL Server incorrectly catogorizes the lost+found directory as a databaseHolman Romero9 May
    • Re: [PATCH] Proposed patch for #22615: MySQL Server incorrectly catogorizes the lost+found directory as a databaseJorge Bernal Ordovás9 May
      • Re: [PATCH] Proposed patch for #22615: MySQL Server incorrectlycatogorizes the lost+found directory as a databaseStewart Smith10 May
        • Re: [PATCH] Proposed patch for #22615: MySQL Server incorrectly catogorizes the lost+found directory as a databaseHolman Romero10 May
          • Re: [PATCH] Proposed patch for #22615: MySQL Server incorrectlycatogorizes the lost+found directory as a databaseStewart Smith11 May
            • Re: [PATCH] Proposed patch for #22615: MySQL Server incorrectly catogorizes the lost+found directory as a databaseMarko Mäkelä11 May
        • Re: [PATCH] Proposed patch for #22615: MySQL Server incorrectly catogorizes the lost+found directory as a databaseChad MILLER14 May