From: | Mike Mascari <mascarm(at)mascari(dot)com> |
---|---|
To: | Mike Mascari <mascarm(at)mascari(dot)com> |
Cc: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>, Justin Clift <justin(at)postgresql(dot)org>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: PGXLOG variable worthwhile? |
Date: | 2002-09-12 17:29:20 |
Message-ID: | 3D80CEF0.1010900@mascari.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I wrote:
> scott.marlowe wrote:
>>
>> I wouldn't assume that. It's been years since I tested it, but back
>> then, the command line and all program I used could see the link
>> created by ln that came with the resource kit. They were distinctly
>> different from the shortcut type of links, in that they seems
>> transparent like short cuts in unix generally are.
>>
>> Do you have the resource kit or the gnu utils from it?
>
>
> The situation appears to be this:
>
> 1. Soft links are available on NTFS 5 (2K/XP) as Reparse Points via the
> DeviceIoControl() function for any application using the standard C
> library routines.
>
> 2. Soft links are available on any filesystem under 95/98/ME/NT4/2K/XP
> as OLE streams (.lnk files) for Shell-aware applications.
>
> 3. Hard links are available on NTFS 5 (2K/XP) via the CreateHardLink() API.
<snip>
> 4. Hard links are available on NTFS (NT3.1/NT4) via the BackupWrite()
> API by writing a special stream to the NTFS.
I also believe (I could be wrong) that for directories, the only
two methods of links are the Soft link methods above. So PGXLOG
cannot use soft links on a non-XP/2K machine unless it is
"Shell-Aware". For example, in a cygwin bash command window:
mkdir dir1
ln dir1 dir2 <- Error using Cygwin implementation
ln -s dir1 dir2 <- Creates a Shell short-cut (NT4)
echo "Hello" > dir1/test.txt
cat dir2/test.txt
"Hello" <- Cygwin's cat(bash?) is shell short-cut aware
Now, in a Windows NT command prompt:
notepad dir2\test.txt <- Notepad can't find file
notepad dir2.lnk <- Displays link contents
That means for a native port with a different PGXLOG directory
running on NT4, the only choice *using links* is to make the
native port shell short-cut aware.
I could be wrong but I don't think so.
Mike Mascari
mascarm(at)mascari(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-09-12 17:37:46 | Re: OPAQUE and 7.2-7.3 upgrade |
Previous Message | Thomas Swan | 2002-09-12 17:19:13 | Re: OPAQUE and 7.2-7.3 upgrade |