On 04/09/2014 05:22 AM, LogIN wrote:
> Hello,
> i am new to s3ql so could you please help me understand this 3 questions:
> 
> I would like to know original name of file on S3 bucket like -
> s3ql_data_5 of some file.

Things aren't that simple. There is no 1:1 correspondence between files
and s3 objects. One file may be split among multiple S3 objects, and one
S3 object may hold contents for multiple files.

To figure out what parts of a file are stored in what objects, you need
to get the files inode from the contents table, the inode's block_ids
from the inode_blocks table, and then the object id that holds each
block from the blocks table.

> I would also like to know if i can read somewhere in db and know is it
> file in cache or its on s3, or only way is to check if's on local
> filesystem or not?

This information is not stored in the database. However, after you
unmount (or run s3ql flushcache), everything that's in the database is
guaranteed to be stored in S3.


Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to s3ql+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to