Add comment about calling only after normalizing path

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
Slawomir Jankowski 2021-01-20 15:13:17 +01:00 committed by Adam Rutkowski
parent 636e083e22
commit 5f5c150c30

View File

@ -630,6 +630,7 @@ static bool is_dev_link_whitelisted(const char* path)
return false;
}
/* Call this only AFTER normalizing path */
static int _is_by_id_path(const char* dev_path)
{
static const char dev_by_id_dir[] = "/dev/disk/by-id";