发布

  • [Feat][MP] Add runtime DAX hotplug http API (#3264)

    frostbyte_neo 发布于 2026-06-13 00:00:11 +00:00

    • Add runtime DAX hotplug API

    Rebase PR #3264 onto current dev and fix DAX hotplug security alerts:

    • replace the regex size parser with a bounded parser
    • return generic client errors for invalid sizes and DAX map failures
    • add regression tests for hostile size strings and sanitized map failures

    Signed-off-by: Dongjoo Seo dongjoo.seo1@samsung.com

    Signed-off-by: DongDongJu commisori28@gmail.com

    • Sanitize DAX hotplug validation errors

    Avoid returning raw exception messages from runtime DAX hotplug add and resize handlers.

    Signed-off-by: Dongjoo Seo dongjoo.seo1@samsung.com

    Signed-off-by: DongDongJu commisori28@gmail.com

    • Refactor DAX hotplug through L2 reconfigure API

    Replace the DAX-specific StorageManager hotplug methods with a generic L2 adapter reconfiguration protocol and route the existing DAX HTTP endpoints through it.

    Keep DAX operation semantics inside the DAX adapter, preserve serde-wrapped adapter discovery through the public inner_adapter property, and cover DAX-scoped HTTP adapter indexes.

    Signed-off-by: Dongjoo Seo dongjoo.seo1@samsung.com

    Signed-off-by: DongDongJu commisori28@gmail.com

    • Document generic L2 reconfigure for DAX hotplug

    Update the DAX design, storage backend, HTTP API, and MP L2 storage docs to describe the generic reconfiguration path while keeping the public DAX endpoint behavior explicit.

    Signed-off-by: Dongjoo Seo dongjoo.seo1@samsung.com

    Signed-off-by: DongDongJu commisori28@gmail.com

    • Switch DAX hotplug HTTP API to reconfigure route

    Replace DAX-specific /dax/* endpoints with generic /reconfigure/{backend}/{operation} routing while preserving DAX payload validation and backend-index mapping.

    Update HTTP tests and documentation for the generic reconfiguration interface.

    Signed-off-by: Dongjoo Seo dongjoo.seo1@samsung.com

    Signed-off-by: DongDongJu commisori28@gmail.com

    • Batch DAX lookup across devices

    Signed-off-by: DongDongJu commisori28@gmail.com

    • List reconfigurable backend names

    Signed-off-by: DongDongJu commisori28@gmail.com

    • Standardize L2 reconfigure status

    Signed-off-by: DongDongJu commisori28@gmail.com

    • Clarify reconfigure backend names

    Signed-off-by: DongDongJu commisori28@gmail.com

    • Rename reconfigurable adapter lister

    Signed-off-by: DongDongJu commisori28@gmail.com

    • Fix DAX reconfigure status typing

    Signed-off-by: DongDongJu commisori28@gmail.com


    Signed-off-by: DongDongJu commisori28@gmail.com
    Signed-off-by: Dongjoo Seo commisori28@gmail.com

    下载附件