diff --git a/CLAUDE.md b/CLAUDE.md index 0ff3759..4bee39b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,79 +2,87 @@ ## What This Project Is -A storage plugin "wedge" for Proxmox VE (PVE) that allows PVE to manage iSCSI LUNs on TrueNAS/FreeNAS via the TrueNAS REST API instead of the traditional SSH-based `iscsiadm` approach. +A native `PVE::Storage::Custom` plugin for Proxmox VE (PVE) that manages TrueNAS ZFS volumes over iSCSI via the TrueNAS REST API. Each VM gets its own dedicated iSCSI target; QEMU drives the connection directly via `iscsi://` paths — no `iscsiadm`, no SSH keys, no patches to PVE core files. The plugin installs as a Debian package and works by: -1. Deploying a new Perl LunCmd handler (`FreeNAS.pm`) to `/usr/share/perl5/PVE/Storage/LunCmd/` -2. Patching three Proxmox VE system files at install time via `dpkg triggers` +1. Copying `TrueNAS.pm` to `/usr/share/perl5/PVE/Storage/Custom/` (auto-discovered by PVE) +2. Copying `truenas-storage.js` to `/usr/share/pve-manager/js/` and injecting one `