- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with HP tar
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2000 01:58 AM
11-22-2000 01:58 AM
Problem with HP tar
tar:
long-file-path-name
tar: ././@LongLink - cannot create
Where the long-file-path-name represents the long path.
I tried installing PHCO_20028 and PHCO_20416 hoping those would help, but nothing changed.
If I use GNU tar it works without problems.
I'm unsure where should I report this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2000 02:17 AM
11-22-2000 02:17 AM
Re: Problem with HP tar
The POSIX standard specifies the header for tar files. The standard
limits the length of tar filenames to be 256 characters: 100 chars
for the filename, 155 characters for the path, and a / separating the name and path.
So I would suggest this is normal behaviour, however if you still have concerns and wish to hear the latest, log a call via the ITRC or with your local Response Centre.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2000 02:49 AM
11-22-2000 02:49 AM
Re: Problem with HP tar
Here is the tar header structure definition
as per 'man 4 tar'
struct {
char name[NAMSIZ]; (100)
char mode[MODE_SZ]; (8)
char uid[UID_SZ]; (8)
char gid[GID_SZ]; (8)
char size[SIZE_SZ]; (12)
char mtime[MTIME_SZ]; (12)
char chksum[CHKSUM_SZ]; (8)
char typeflag;
char linkname[NAMSIZ]; (100)
char magic[MAGIC_SZ]; (6)
char version[VERSION_SZ]; (2)
char uname[UNAME_SZ]; (32)
char gname[GNAME_SZ]; (32)
char devmajor[DEV_SZ]; (8)
char devminor[DEV_SZ]; (8)
char prefix[PREFIX_SZ]; (155)
} dbuf;
Unfortunately, you're hitting the limitations of posix tar.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2000 05:10 AM
11-22-2000 05:10 AM
Re: Problem with HP tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2000 06:36 AM
11-22-2000 06:36 AM
Re: Problem with HP tar
After a session with xemacs looking at tar file bytes I found out what was wrong.
The problem was that GNU tar had been used to create the archive. Because of the long paths, GNU tar started to split the information about the filename into multiple headers. This works fine as long GNU tar is also the extracting tar. Unfortunately GNU tar does not do the splitting smartly in this case, and starts to use multiple headers already when 100 character path+file is encountered. My path + file always fits in 155+100, so remaking the tar with HP tar produces one that both GNU tar and HP tar can correctly deal with.