Skip to content

v2.0.11

Latest

Choose a tag to compare

@Moonpuck Moonpuck released this 03 Dec 03:20
978145b

New Features

  • Add mount option oss_qps_limit_retry_timeout_ms: configure the total retry time budget for QPS-limit (QpsLimitExceeded) errors independently. Defaults to 0, which falls back to oss_request_timeout_ms; a single backoff sleep is capped at 20 seconds.
  • Add mount option oss_additional_headers: attach custom HTTP headers to all OSS requests, specified as semicolon-separated name=base64(value) pairs.
  • Add mount option oss_max_idle_timeout_ms: let the client proactively close pooled OSS connections idle beyond the given duration. Defaults to 0, keeping idle connections until the peer closes them. Also upgrades the PhotonLibOS dependency.
  • Add mount option oss_request_max_retries: configure the maximum number of retries after the initial attempt for OSS requests (default 2; total attempts = retries + 1).

Performance & Memory

  • Introduce a 20-byte fixed-size CompactEtag for ETag storage, eliminating string object and heap allocation overhead and significantly reducing metadata memory usage in million-file scenarios.
  • Replace the per-directory unordered_map children index with an intrusive index, cutting per-directory and per-child memory overhead.

Behavior Changes

  • No longer enables default_permissions unconditionally: it is enabled only when default_permissions is explicitly specified, or any of uid/gid/file_mode/dir_mode is explicitly configured. This fixes EPERM failures of chmod/utimensat for non-mounting users running cp -p, rsync -a, fs.copyFile, etc.

Bug Fixes

  • Security hardening: fix a local privilege escalation via symlink following in the log directory (CWE-59). Log files are now opened with O_NOFOLLOW plus ownership verification.
  • Security hardening: reject embedded NUL characters in credential JSON bodies, fixing an out-of-bounds heap read in the parsing path.
  • Fix a use-after-free crash in random-write flush caused by aborting an already-consumed multipart context after a failed CompleteMultipartUpload.