Skip to content

Port remote file transport operations to current upstream main (stage 5a) - #200

Merged
bedipritpal merged 1 commit into
FiveTechSoft:mainfrom
bedipritpal:stage5a/vf-file-transport-pr-v2
Nov 21, 2026
Merged

bedipritpal merged 1 commit into
FiveTechSoft:mainfrom
bedipritpal:stage5a/vf-file-transport-pr-v2

Conversation

@bedipritpal

Copy link
Copy Markdown
Collaborator

What

Adds the remaining remote file transport functions on top of the existing EnableFileFunc-gated server filesystem framework:

  • Whole-file: AdsCopyFile, AdsLoadFile, AdsSaveFile
  • Handle I/O: AdsFReadAt, AdsFWriteAt, AdsFFlush, AdsFEof, AdsFTrunc
  • Metadata: AdsSetFileAttr, AdsSetFileTime
  • Utilities: AdsTempFile, AdsDirSpace
    plus oads_* twins and .def manifest entries. (AdsFileExists, AdsFileErase, AdsFileRename, AdsGetFileSize already exist on main; this completes the hb_vf*-style set.)

Security boundaries (existing framework, reused)

  • Every operation is gated on the EnableFileFunc server option; disabled means denied.
  • All client-supplied paths resolve through the existing resolve_fs_client_path jail; resolution failure denies the operation.
  • Hard caps: 32 open session files per client, 1 MB per I/O chunk enforced at the session handler, 64 MB whole-file load/save cap.

Tests

  • New unit coverage for copy, load/save, positioned read/write, flush/EOF, attr/time, truncate, temp file, and dir space; extended remote embedded round-trip; EnableFileFunc-off denial (+254 lines in tests/unit/abi_oads_file_funcs_test.cpp).
  • oads_* file-transport suite locally: 18/18 passed.
  • Local full suite (Linux 2GB box; ace_exports.cpp precompiled at -O1 instead of -O3 as a memory workaround, so local outcomes are limited to that build configuration): 1816 cases, 1813 passed, 3 failed. The three failures are abi_mt_contention, abi_openindex_create_race, and abi_remote_create_stress. All three were already failing at base on this box before this change: abi_openindex_create_race consistently, the other two intermittently.
  • Fork CI Linux review job passed on the review branch: https://github.com/bedipritpal/OpenADS/actions/runs/44543456410

Validation status

Application-level: the owner confirmed the fork-kit copy function (Harbour wrapper OAds_FCopyFile) works with and without hConn. The remaining functions in this set have automated coverage (see Tests). In owner application testing since then, most of the Harbour OAds_vf* functions are running, and the owner approves proceeding with this stage; this is not a per-function full pass. A separate multi-instance concurrency exercise using these functions through the Harbour wrappers is still in progress, with no correctness conclusion either way.

Out of scope

  • Parent-sync stages 5b-5d (separate PRs).
  • No hbnetio compatibility layer; follows the OAds_vfPath-style design.

@bedipritpal
bedipritpal merged commit ca83d0e into FiveTechSoft:main Nov 21, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant