-
Notifications
You must be signed in to change notification settings - Fork 81
Description
I wanted to add a scanner for the Cray Scanner which consumes Lustre changelogs. That way instead of duc scanning I could use the Cray API which is kept up to date by consuming changelogs.
I made a test dir:
/home/MyUser/tmp:
total 12
drwxrwxr-x 2 MyUser MyUser 4096 Aug 16 13:48 DirA
drwxrwxr-x 2 MyUser MyUser 4096 Aug 16 13:48 DirB
drwxrwxr-x 2 MyUser MyUser 4096 Aug 16 13:49 DirC
/home/MyUser/tmp/DirA:
total 4
-rw-rw-r-- 1 MyUser MyUser 2 Aug 16 13:48 1
/home/MyUser/tmp/DirB:
total 8
-rw-rw-r-- 1 MyUser MyUser 3 Aug 16 13:48 2
-rw-rw-r-- 1 MyUser MyUser 4 Aug 16 13:48 3
/home/MyUser/tmp/DirC:
total 12
-rw-rw-r-- 1 MyUser MyUser 5 Aug 16 13:49 4
-rw-rw-r-- 1 MyUser MyUser 6 Aug 16 13:49 5
-rw-rw-r-- 1 MyUser MyUser 6 Aug 16 13:49 6
I made the database SQLITE, I figured it would be the easiest way to inspect the result. Here's the schema and dump:
$ cat schema
CREATE TABLE blobs(key unique primary key, value);
CREATE INDEX keys on blobs(key);
$ cat dump
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE blobs(key unique primary key, value);
INSERT INTO blobs VALUES('fc01/19c42d8',X'f9f311fb019c42d7fb66bfad15013102f907100105');
INSERT INTO blobs VALUES('fc01/19c42d9',X'f9f311fb019c42d7fb66bfad28013304f907100105013203f907100105');
INSERT INTO blobs VALUES('fc01/19c42da',X'f9f311fb019c42d7fb66bfad3b013506f907100105013405f907100105013606f907100105');
INSERT INTO blobs VALUES('fc01/19c42d7',X'0000fb66bfacce044469724102f917100202f9f311fb019c42d8044469724207f927100302f9f311fb019c42d9044469724311f937100402f9f311fb019c42da');
INSERT INTO blobs VALUES('duc_index_reports',X'2f686f6d652f6262726f61646c65792f746d7 [MANY ZEROS DELETED]');
INSERT INTO blobs VALUES('/home/MyUser/tmp',X'132f686f6d652f6262726f61646c65792f746d70f9f311fb019c42d7fb66bfad7efa0e8e37fb66bfad7efa0e8f0b06041af997100a');
CREATE INDEX keys on blobs(key);
COMMIT;
What's the value for "/home/MyUser/tmp"?
How does MyDirA/1 map to 'fc01/19c42d8' or similar?
Is the value for each dir some encoding of filename + size? So 3 files = file1+size,file2+size,file3+size or something?
What's the value for duc_index_reports?