Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google site



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-30-2008
Registered User
 

Join Date: Jan 2008
Posts: 8
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
  #2 (permalink)  
Old 01-30-2008
blowtorch's Avatar
AFK
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,351
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.
  #3 (permalink)  
Old 01-31-2008
Registered User
 

Join Date: Jan 2008
Posts: 8
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0