TARFS 0.1.5
Read-only TAR filesystem for ESP32
Loading...
Searching...
No Matches
tarhdr_t Struct Reference

For TAR files with modified PADDING field (see tarsum.c TARFS Checksum Utility): The type and meaning of the last 8 bytes of the padding field. More...

#include <tar.h>

Data Fields

const char name [100]
const char mode [8]
const char uid [8]
const char gid [8]
const char size [12]
const char mtime [12]
char checksum [8]
const tart_t type
const char link_name [100]
const char magic [6]
const char version [2]
const char user [32]
const char group [32]
const char major [8]
const char minor [8]
const char prefix [155]
char zero
const char pad [11]

Detailed Description

For TAR files with modified PADDING field (see tarsum.c TARFS Checksum Utility): The type and meaning of the last 8 bytes of the padding field.

The very first byte of the padding[] field MUST be zero, this is checked on mount(). For the same reason the IDs below all have 0x00 byte in them in the first position.

Definition at line 55 of file tar.h.

Field Documentation

◆ checksum

char tarhdr_t::checksum[8]

Octal, ASCII

Definition at line 63 of file tar.h.

◆ gid

const char tarhdr_t::gid[8]

Ignored: VFS has no user/group concept

Definition at line 60 of file tar.h.

◆ group

const char tarhdr_t::group[32]

Ignored: VFS has no user/group concept

Definition at line 69 of file tar.h.

◆ link_name

const char tarhdr_t::link_name[100]

For records type#1 and #2 this field contains a name of the object

Definition at line 65 of file tar.h.

◆ magic

const char tarhdr_t::magic[6]

"ustar\0" signature

Definition at line 66 of file tar.h.

◆ major

const char tarhdr_t::major[8]

Ignored: device files make no sence

Definition at line 70 of file tar.h.

◆ minor

const char tarhdr_t::minor[8]

Ignored: device files make no sence

Definition at line 71 of file tar.h.

◆ mode

const char tarhdr_t::mode[8]

Ignored: RWX, we are ROFS

Definition at line 58 of file tar.h.

◆ mtime

const char tarhdr_t::mtime[12]

All times are set at mount time and never change (ROFS)

Definition at line 62 of file tar.h.

Referenced by inode_getinfo(), and inode_mount().

◆ name

const char tarhdr_t::name[100]

First (if prefix[0] == 0) or Second part of the entry name

Definition at line 57 of file tar.h.

◆ pad

const char tarhdr_t::pad[11]

Must be zero by the standart

Definition at line 79 of file tar.h.

◆ prefix

const char tarhdr_t::prefix[155]

First (if prefix[0] != 0) part of the entry name. A slash at the end does not exist but is assumed

Definition at line 72 of file tar.h.

◆ size

const char tarhdr_t::size[12]

Octal, ASCII string, terminated with a space \20, not \0

Definition at line 61 of file tar.h.

Referenced by inode_getinfo(), and inode_mtime().

◆ type

const tart_t tarhdr_t::type

Record type

Definition at line 64 of file tar.h.

Referenced by inode_getinfo(), inode_islink(), inode_mtime(), inode_rawtype(), and inode_type().

◆ uid

const char tarhdr_t::uid[8]

Ignored: VFS has no user/group concept

Definition at line 59 of file tar.h.

◆ user

const char tarhdr_t::user[32]

Ignored: VFS has no user/group concept

Definition at line 68 of file tar.h.

◆ version

const char tarhdr_t::version[2]

"00"

Definition at line 67 of file tar.h.

◆ zero

char tarhdr_t::zero

Must be zero by the standart

Definition at line 73 of file tar.h.


The documentation for this struct was generated from the following file:
  • /cygdrive/d/Arduino/libraries/tarfs/src/tar.h