Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac9ef741 authored by Sandeep Dhavale's avatar Sandeep Dhavale
Browse files

libsnapshot: Centralize UBLK capability detection logic



The logic for determining whether the system supports UBLK-based snapshots
was duplicated across libsnapshot and libsnapuserd which is redundant.

This change consolidates the logic into a new, single function `IsUblkEnabled()`
within `fs_mgr/libsnapshot/capabilities.cpp`.

To allow this common code to be shared, it has been placed in a `filegroup`.
The build definitions for `libsnapshot` and `libsnapuserd` now include this
filegroup in their sources, ensuring a single source of truth for this check.

Bug: 362683283
Test: m and vts_libsnapshot_test with and without ublk

Change-Id: I88a118202045900911fe9fcd7fed538bb4c0e07e
Signed-off-by: default avatarSandeep Dhavale <dhavale@google.com>
parent d80a5693
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment