Skip to content

Improve handling of longer PV names#88

Open
eddybl wants to merge 2 commits into
epics-modules:masterfrom
eddybl:allow-long-pv-names
Open

Improve handling of longer PV names#88
eddybl wants to merge 2 commits into
epics-modules:masterfrom
eddybl:allow-long-pv-names

Conversation

@eddybl

@eddybl eddybl commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

autosave defines a PV_NAME_LEN for the maximum allowed length of PVs. But there are various locations where the code uses other hard coded limits, which is sometimes 80 and sometimes 63.

  • The first commit of this PR improves that and uses PV_NAME_LEN more consistently.
  • The second commit then simply raises this number to 256

Background

We are using a slightly patched version of EPICS base, which increases the PV length limit from 61 to 256. While the patch itself is very small, only changing two lines of code ( https://gitlab.kit.edu/kit/ibpt/controls/epics/distribution/epics-build-tool/-/blob/master/customizations/ibpt/patches/base/01-record-name-length.patch ), autosave is not compatible to that. We therefore use this patched version of autosave since around 2019.

At least one other institute recently also started using our EPICS base patch and were encountering the same issue with autosave, so the idea came up to submit the patch upstream. The currently used number for PV_NAME_LEN seemed to be arbitrary anyway, so we could as well define a higher number ;)

Comment thread asApp/src/save_restore.h Outdated
@eddybl eddybl force-pushed the allow-long-pv-names branch from fdbaff3 to 1ebfe8b Compare March 16, 2026 07:57
@eddybl eddybl force-pushed the allow-long-pv-names branch from 1ebfe8b to 0632ba7 Compare March 16, 2026 08:07
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.

3 participants