dissect.qnxfs.qnx4

Module Contents

Classes

QNX4

QNX4 filesystem implementation.

INode4

class dissect.qnxfs.qnx4.QNX4(fh: BinaryIO)

QNX4 filesystem implementation.

Parameters:

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

fh
block_size
inode
root
get(path: str | int, node: INode4 | None = None) INode4

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.qnx4.INode4(fs: QNX4, inum: int)
fs
inum
__repr__() str
property inode: dissect.qnxfs.c_qnx4.c_qnx4.qnx4_inode_entry

Return the inode entry.

property name: str

Return the file name.

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 number of hard links.

property status: int

Return the file status.

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, INode4]

Return a directory listing.

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

Iterate directory contents.

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

Return the data runlist.

open() BinaryIO

Return a file-like object for reading the file.