Re: initdb and data directories with lost+found

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: initdb and data directories with lost+found
Дата
Msg-id 10159.985280929@sss.pgh.pa.us
обсуждение исходный текст
Ответ на initdb and data directories with lost+found  (Steve Stock <steve@technolope.org>)
Список pgsql-hackers
Steve Stock <steve@technolope.org> writes:
> --- src/bin/initdb/initdb.sh    2001/03/13 21:37:15     1.122
> +++ src/bin/initdb/initdb.sh    2001/03/22 15:45:46
> @@ -402,7 +402,7 @@
>  # find out if directory is empty
>  pgdata_contents=`ls -A "$PGDATA" 2>/dev/null`
> -if [ x"$pgdata_contents" != x ]
> +if [ x"$pgdata_contents" != x -a "$pgdata_contents" != "lost+found" ]
>  then
>      (
>        echo "$CMDNAME: The directory $PGDATA exists but is not empty."

> This fix works for ext2, but will (obviously) not work if the filesystem
> uses something other than "lost+found".

AFAIK that name is universally used.  Seems like a reasonable change to
me; Peter, do you agree?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: initdb and data directories with lost+found
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Missing operator for numeric comparison