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

Commit c047be09 authored by Sage Weil's avatar Sage Weil Committed by Alex Elder
Browse files

ceph: ignore preferred_osd field



Old users may not expect EINVAL, and there is no clear user-visibile
behavior change now that we ignore it.

Signed-off-by: default avatarSage Weil <sage@inktank.com>
Reviewed-by: default avatarAlex Elder <elder@inktank.com>
parent 702aeb1f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -39,10 +39,6 @@ static long __validate_layout(struct ceph_mds_client *mdsc,
{
	int i, err;

	/* preferred_osd is no longer supported */
	if (l->preferred_osd != -1)
		return -EINVAL;

	/* validate striping parameters */
	if ((l->object_size & ~PAGE_MASK) ||
	    (l->stripe_unit & ~PAGE_MASK) ||