dissect.qnxfs.qnx6

Module Contents

Classes

QNX6

QNX6 filesystem implementation.

INode6

class dissect.qnxfs.qnx6.QNX6(fh: BinaryIO)

QNX6 filesystem implementation.

Parameters:

fh – A file-like object of the volume containing the filesystem.

fh
sb2
sb
ctime
atime
volume_id
block_size
num_inodes
num_blocks
inode
root
get(path: str | int, node: INode6 | None = None) INode6

Return an inode object for the given path or inode number.

Parameters:
  • path – The path or inode number.

  • node – An optional inode object to relatively resolve the path from.

class dissect.qnxfs.qnx6.INode6(fs: QNX6, inum: int)
fs
inum
__repr__() str
property inode: dissect.qnxfs.c_qnx6.c_qnx6.qnx6_inode_entry

Return the inode entry.

property size: int

Return the file size.

property uid: int

Return the owner user ID.

property gid: int

Return the owner group ID.

property ftime: datetime.datetime

Return the file creation time.

property mtime: datetime.datetime

Return the file modification time.

property atime: datetime.datetime

Return the file access time.

property ctime: datetime.datetime

Return the file change time.

property mode: int

Return the file mode.

property type: int

Return the file type.

Return the symlink target.

is_dir() bool

Return whether this inode is a directory.

is_file() bool

Return whether this inode is a regular file.

Return whether this inode is a symlink.

is_block_device() bool

Return whether this inode is a block device.

is_character_device() bool

Return whether this inode is a character device.

is_device() bool

Return whether this inode is a device.

is_fifo() bool

Return whether this inode is a FIFO file.

is_socket() bool

Return whether this inode is a socket file.

is_ipc() bool

Return whether this inode is an IPC file.

listdir() dict[str, INode6]

Return a directory listing.

iterdir() collections.abc.Iterator[tuple[str, INode6]]

Iterate directory contents.

dataruns() list[tuple[int, int]]

Return the data runlist.

open() BinaryIO

Return a file-like object for reading the file.