Skip to content

Commit 6123bc1

Browse files
committed
inode fully understood now
1 parent 60747bc commit 6123bc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

orbisFSTool/OrbisFSFormat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ typedef struct {
8585
uint8_t _pad1[2]; //should be zero
8686
uint32_t uid;
8787
uint32_t gid;
88-
uint32_t unk1;
88+
uint32_t birthCnt; //how many times has this node existed at the same location with the same name. Set to 1 for new nodes, increase every time node was deleted, then re-created with the same name at the same location.
8989
uint32_t _pad2;
9090
union {
9191
uint32_t children; //only valid for directories

orbisFSTool/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ int main_r(int argc, const char * argv[]) {
326326
printf("\tfileMode : o0%o\n",node.fileMode);
327327
printf("\tuid : %d\n",node.uid);
328328
printf("\tgid : %d\n",node.gid);
329-
printf("\tunk1 : %d\n",node.unk1);
329+
printf("\tbirthCnt : %d\n",node.birthCnt);
330330
if (S_ISDIR(node.fileMode)) {
331331
printf("\tchildren : %d\n",node.children);
332332
}else{

0 commit comments

Comments
 (0)