* Use is subject to license terms.
*/
/*
+ * Copyright (c) 2011 Whamcloud, Inc.
+ */
+/*
* This file is part of Lustre, http://www.lustre.org/
* Lustre is a trademark of Sun Microsystems, Inc.
*
mdd = lu2mdd_dev(&m->md_lu_dev);
/* Doesn't use obd_ioctl_data */
- if (cmd == OBD_IOC_CHANGELOG_CLEAR) {
+ switch (cmd) {
+ case OBD_IOC_CHANGELOG_CLEAR: {
struct changelog_setinfo *cs = karg;
rc = mdd_changelog_user_purge(mdd, cs->cs_id, cs->cs_recno);
RETURN(rc);
}
+ case OBD_IOC_GET_MNTOPT: {
+ mntopt_t *mntopts = (mntopt_t *)karg;
+ *mntopts = mdd->mdd_dt_conf.ddp_mntopts;
+ RETURN(0);
+ }
+ }
/* Below ioctls use obd_ioctl_data */
if (len != sizeof(*data)) {
MCUD_UNREGISTER);
break;
default:
- rc = -EOPNOTSUPP;
+ rc = -ENOTTY;
}
RETURN (rc);