Merge pull request #1578 from Deixx/mtab-fix

Fix for mtab changes
This commit is contained in:
Katarzyna Treder 2024-10-31 11:04:26 +01:00 committed by GitHub
commit 37d91fdbc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1872,7 +1872,7 @@ int remove_core(unsigned int cache_id, unsigned int core_id,
/* verify if specific core is mounted */
cmplen = snprintf(pattern, sizeof(pattern), "/dev/cas%d-%d", cache_id, core_id);
mounts_detected = device_mounts_detected(pattern, cmplen)
mounts_detected = device_mounts_detected(pattern, cmplen);
if (!mounts_detected) {
/* verify if any partition of the core is mounted */
cmplen = snprintf(pattern, sizeof(pattern), "/dev/cas%d-%dp", cache_id, core_id) - 1;