Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
md: replace deprecated strlcpy & remove duplicated line
This commit includes two topics: 1> replace deprecated strlcpy change strlcpy to strscpy for strlcpy is marked as deprecated in Documentation/process/deprecated.rst 2> remove duplicated strlcpy line in [email protected] there are two duplicated strlcpy(), the history: - commit cf921cc ("Add node recovery callbacks") introduced the first usage of strlcpy(). - commit b97e925 ("Use separate bitmaps for each nodes in the cluster") introduced the second strlcpy(). this time, the two strlcpy() are same, we can remove anyone safely. - commit d3b178a ("md: Skip cluster setup for dm-raid") added dm-raid special handling. And the "nodes" value is the key of this patch. but from this patch, strlcpy() which was introduced by b97e925 become necessary. - commit 3c462c8 ("md: Increment version for clustered bitmaps") used clustered major version to only handle in clustered env. this patch could look a polishment for clustered code logic. So cf921cc became useless after d3b178a, we could remove it safely. Signed-off-by: Heming Zhao <[email protected]> Signed-off-by: Song Liu <[email protected]>
- Loading branch information