Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save gotbletu/da3643dc9c13995784d81b358a34349c to your computer and use it in GitHub Desktop.

Select an option

Save gotbletu/da3643dc9c13995784d81b358a34349c to your computer and use it in GitHub Desktop.
udpfs_server.py help man page ps2 nhddl neutrino udpfs server playstation 2
usage: udpfs_server.py [-h] [--block-device BLOCK_DEVICE] [--root-dir ROOT_DIR] [--port PORT] [--bind IP] [--sector-size SECTOR_SIZE]
[--read-only] [--verbose] [--enable-compression] [--compression-cache-size COMPRESSION_CACHE_SIZE]
UDPFS Server - Unified file and block device server over UDPRDMA
options:
-h, --help show this help message and exit
--block-device, -b BLOCK_DEVICE
Block device or disk image to serve as handle 0
--root-dir, -d ROOT_DIR
Root directory to serve files from
--port, -p PORT UDP port to listen on (default: 0xF5F6)
--bind, -i IP IP address to bind/listen on (default: all interfaces)
--sector-size, -s SECTOR_SIZE
Sector size for block device (default: 512)
--read-only, -r Serve in read-only mode
--verbose, -v Verbose output
--enable-compression, -c
Enable transparent decompression of .zso (LZ4), .cso (zlib), and .chd (CHD v5) files. Compressed files appear
as .iso in directory listings.
--compression-cache-size COMPRESSION_CACHE_SIZE
Number of decompressed blocks to cache per file (default: 32)
UDPFS Server over UDPRDMA
Unified server for PS2 file and block device access.
UDPBD is a subset of UDPFS using block I/O messages (BREAD/BWRITE/INFO).
Usage:
python udpfs_server.py --block-device disk.iso
python udpfs_server.py --root-dir /path/to/serve
python udpfs_server.py --block-device disk.iso --root-dir /path/to/serve
Examples:
python udpfs_server.py -b game.iso # Block device only (UDPBD mode)
python udpfs_server.py -d /home/user/ps2games # Filesystem only
python udpfs_server.py -b game.iso -d /games # Both block device and filesystem
python udpfs_server.py -b game.iso --sector-size 2048 # Custom sector size
python udpfs_server.py -b game.iso --read-only # Read-only mode
python udpfs_server.py -d /games --enable-compression # Transparent .zso/.cso/.chd decompression
Compression Support:
With --enable-compression, the server transparently decompresses .zso (LZ4),
.cso (zlib), and .chd (MAME CHD v5) files. Compressed files appear as .iso in
directory listings.
Requires 'lz4' package for ZSO support: pip install lz4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment