From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Steve Stock <steve(at)technolope(dot)org> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net> |
Subject: | Re: initdb and data directories with lost+found |
Date: | 2001-03-22 17:08:49 |
Message-ID: | 10159.985280929@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Steve Stock <steve(at)technolope(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Marko Kreen | 2001-03-22 17:12:39 | Re: Call for platforms |
Previous Message | Tom Lane | 2001-03-22 17:06:50 | Re: Missing operator for numeric comparison |