|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Reading the header of a tar file(posix header)
say i have these many file in a directory named exam.
1)/exam/newfolder/link.txt. 2)/exam/newfolder1/ and i create a tar say exam.tar well the problem is, when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories. on the first header all i can see in the name fiels is: name:/exam/newfolder/link.txt typeflag:0 is there any metadata about the directories.....? if it is, where can i find it and how.....? |
| Sponsored Links | ||
|
|
|
||||
|
What are you trying to do, exactly? libtar will help you if you are writing a C program to fiddle with tar files (have never used it, just found on google). And you can create a tar file filled with nothing but empty directories. I tried on Solaris 10, and it didn't give any problems.
|
|
|||
|
Well i am writing a filesystem called tarfs usinf fuse....
but for that i have to study the tar header. and nowhere in the header its giving me metadata about directories that are archived. and fc6 dosen't create a archive of empty directories. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inserting a String in a file header. | Hari123 | Shell Programming and Scripting | 3 | 05-14-2008 10:00 AM |
| Help in compiling header files with C file using GCC | ahjiefreak | Programming | 5 | 12-31-2007 03:25 PM |
| How to retain the header information of a file | ahjiefreak | UNIX for Dummies Questions & Answers | 0 | 12-04-2007 07:21 PM |
| how to include header file in b-sh script | bluemoon1 | Shell Programming and Scripting | 2 | 09-10-2007 07:45 PM |
| request_irq func. header file? | ppphah | Programming | 2 | 11-16-2002 04:55 AM |