Jump to content




Thoughts on Storing File Metadata


  • You cannot reply to this topic
5 replies to this topic

#1 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 17 January 2016 - 08:29 PM

Does anyone have thoughts on the best way to store metadata for a file? For example; owner, last modified, etc.
So far my thoughts have been a large table serialise to a file for storage after a shutdown that would be put into memory on boot.
My other thought was to store it within the file name as a serialised table and modify the fs api to unserialize it to get the data and the actual file name.
Anyone else have thoughts?

Edited by Selim, 17 January 2016 - 08:31 PM.


#2 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 17 January 2016 - 08:35 PM

Well file name one sounds problematic due to fact that some symbols are not allowed in file-names and they may exist in meta-data.
Personally would go with one big file updated every time data changes instead of shutdown cause you can't detect all shutdown types.

Edited by Wojbie, 17 January 2016 - 08:36 PM.


#3 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 17 January 2016 - 08:37 PM

View PostWojbie, on 17 January 2016 - 08:35 PM, said:

Well file name one sounds problematic due to fact that some symbols are not allowed in file-names and they may exist in meta-data.
Personally would go with one big file updated every time data changes instead of shutdown cause you can't detect all shutdown types.
That is what I had meant, save it on change rather than before shutdown.

#4 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 17 January 2016 - 08:39 PM

http://www.computerc...all-file-types/

#5 Selim

  • Members
  • 189 posts
  • LocationHiding in Online Storage

Posted 17 January 2016 - 08:49 PM

View PostKingofGamesYami, on 17 January 2016 - 08:39 PM, said:

Reading through that it appears to be a great solution. Thank you very much.

#6 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 18 January 2016 - 01:06 PM

View PostSelim, on 17 January 2016 - 08:49 PM, said:

Reading through that it appears to be a great solution. Thank you very much.

It's not only a good solution - it's being used by other programs already.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users