ceph: ignore preferred_osd field
authorSage Weil <sage@inktank.com>
Mon, 14 May 2012 19:34:50 +0000 (12:34 -0700)
committerAlex Elder <elder@dreamhost.com>
Wed, 16 May 2012 19:28:28 +0000 (14:28 -0500)
Old users may not expect EINVAL, and there is no clear user-visibile
behavior change now that we ignore it.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
fs/ceph/ioctl.c

index c0b7314b90f9f0ffde96281def0c4afe5749a10b..8e3fb69fbe62e60cd3698c07d9fa8e53d6d2b184 100644 (file)
@@ -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) ||