Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Bug: Hard link in perl 5.8.6 under Solaris 8?

Thread Tools

Bug: Hard link in perl 5.8.6 under Solaris 8?

Posts: n/a
I have an interesting problem. I have a file and directory which exist
on the same device but are pointed to by symlinks from another device.
First the directory:

$ ls -l /var/opt/zip/Zantaz/spool
lrwxrwxrwx 1 root other 20 Mar 21 15:58
/var/opt/zip/Zantaz/spool -> /spool0/Zantaz-spool

I'll do a df to show the device it's pointing to:

$ df /var/opt/zip/Zantaz/spool
/spool0 (/dev/vx/dsk/dbdg/vol01):67653708 blocks 8456713

Now for the file:

$ ls -l /var/opt/zip/Zmaster/spool/00/0000033070.0003883500
-rw------- 1 zip zip 412 Mar 18 20:27

$ df /var/opt/zip/Zmaster/spool/00/0000033070.0003883500
/spool0 (/dev/vx/dsk/dbdg/vol01):67653708 blocks 8456713

OK. The Solaris link command works fine:

$ ln /var/opt/zip/Zmaster/spool/00/0000033070.0003883500 \
$ ls -lL /var/opt/zip/Zantaz/spool
total 2
-rw------- 2 zip zip 412 Mar 18 20:27

OK. I've removed the file. Now I'll try it with the following perl

$ cat /tmp/test
) || die "$0: link failed: $!\n";

$ perl /tmp/test
/tmp/test: link failed: Cross-device link

Any ideas what's going on here? Is this a well known bug?



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Link Link Link =?Utf-8?B?REw=?= Windows 64bit 0 05-17-2005 12:15 PM
Re: Link Link Link DANGER WILL ROBINSON!!! Kevin Spencer ASP .Net 0 05-17-2005 10:41 AM
Installation of Perl/Tk under Solaris 5.8 Jamie Perl Misc 0 02-23-2005 04:16 PM
Waiting for processes to finish under Solaris Behrang Dadsetan Python 1 07-15-2003 07:56 PM
java font selection under solaris 8 Michael Glavitsch Java 1 07-15-2003 07:10 PM