LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2017, 07:50 AM   #1
sum-box
LQ Newbie
 
Registered: Dec 2017
Posts: 5

Rep: Reputation: Disabled
File Formats Internal Data vs Meta-data


I cant get over the fact that file data and file Header infos(meta-datas eg:name , attributes,timestamp and etc) in HDD are stored in different sectors so if i download a file over the internet , then how does the file header infos get passed?Does the program have to assemble both the header and data together and pass over the internet and from the client side who is downloading take it and diassemble it and save the meta-data to i-nodes entry and points to a pointer of data to another sector?
 
Old 12-04-2017, 01:51 AM   #2
giis
Member
 
Registered: Nov 2013
Location: Third Rock from Moon
Distribution: RPM/DEB based and LFS
Posts: 73

Rep: Reputation: Disabled
If you interested in On-disk file format, check out this page. See "Programmer Docs" section. http://www.giis.co.in/manuals.html
 
Old 12-04-2017, 02:40 AM   #3
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
Generally, they don't. Most of the time, when you download a file, it's saved with new metadata, onto your system at time you downloaded it, with the permissions your user possesses. (Documents, image files, pdfs, anything that you download manually.)

There are two approaches. One, as you suggest, is to request that timestamps and other information are included in the headers. This is unreliable, because the server may not recognize or allow such information to be passed during a download, for various reasons.

The second (more common) approach is to have the requesting program note timestamps and other details itself while locating a desired file, and apply those details to the file after the download completes. This tends to be a preferred method, because it avoids situations where a server may not be setup correctly (applying an incorrect date/permissions to everything it sends), or a server that's purposely setup to give downloaders headaches (generally video sites. This is a problem not just for people "borrowing" videos, but archivers and historians).

As for inodes, they're specific to the system you're storing the program on, so inode data is never sent, unless you're transferring a complete disk backup over the internet.

Remember that sending extra information and recombining it at the endpoint is trivial for computers, and is pretty much how all data arrives at your system. The only major issue is whether the server and client care to acknowledge such data.

Last edited by scott_R; 12-04-2017 at 02:45 AM. Reason: Inodes addition
 
Old 12-04-2017, 03:45 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
additionally if you want to take care about that metadata you need to use tar or similar tool which will pack the content and metadata together and you can transfer all of them "in one".
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Meta Data backup solution? Ranko Kohime Linux - Software 4 09-04-2015 12:52 AM
LXer: Btrfs-Progs Changes Meta-Data Block Size LXer Syndicated Linux News 0 11-10-2013 10:13 PM
LXer: Show Image Properties (Meta Data) from CLI Linux LXer Syndicated Linux News 0 12-04-2008 11:20 PM
MP3 ID3 Tag/Meta Data heri0n Linux - Software 2 08-28-2006 10:45 AM
Amarok Edit Meta Data Crash Boffy Linux - Software 0 11-24-2004 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration