From 10d092bf710791e82ef5f44ca7dcaeef7c0eab60 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sun, 31 May 2026 09:15:11 +0000 Subject: [PATCH] config: add initial salvage settings Prepare nwserv.conf/nw.ini template support for the upcoming NetWare salvage backend. Add configuration entries for enabling salvage support and for selecting the recycle/salvage repository names. The default layout keeps deleted file payloads below .recycle and stores JSON metadata below .salvage. This does not implement salvage handling yet. AFP 0x13 and the NCP salvage functions remain unsupported until the nwsalvage backend exists. --- opt/nw.ini.hook.cmake | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/opt/nw.ini.hook.cmake b/opt/nw.ini.hook.cmake index 048cca5..425cdf9 100644 --- a/opt/nw.ini.hook.cmake +++ b/opt/nw.ini.hook.cmake @@ -949,8 +949,29 @@ # <<< SMARTHOOK SECTION 47 END # ========================================================================= # >>> SMARTHOOK SECTION 48-49 BEGIN -# 43-44 = not in use +# Section 48-49: Salvage / recycle support +# +# 48 = enable NetWare salvage support +# 0 = disabled +# 1 = enabled +# +# 49 = salvage/recycle repository names +# first value = recycle data repository +# second value = salvage metadata repository +# +# Deleted file payloads are moved below the recycle repository. Salvage +# metadata is stored separately as JSON below the salvage repository. +# +# Example layout for a deleted file: +# SYS/.recycle/SUPERVISOR/PUBLIC/PMDFLTS.INI +# SYS/.salvage/SUPERVISOR/PUBLIC/PMDFLTS.INI.json +# +# The initial defaults intentionally only prepare configuration for the later +# nwsalvage backend. AFP 0x13 and NCP salvage calls remain unsupported until +# backend handling exists. # >>> SMARTHOOK SECTION 48-49 ACTIVE BEGIN +48 1 +49 .recycle .salvage # <<< SMARTHOOK SECTION 48-49 ACTIVE END # <<< SMARTHOOK SECTION 48-49 END # =========================================================================