Skip to content

Commit

Permalink
Merge pull request #1578 from Deixx/mtab-fix
Browse files Browse the repository at this point in the history
Fix for mtab changes
  • Loading branch information
katlapinka authored Oct 31, 2024
2 parents 82ce934 + 545a070 commit 37d91fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casadm/cas_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 37d91fd

Please sign in to comment.