/* pdcs_auto_read - Stable Storage autoboot/search flag output. @buf: The output buffer to write to. @knob: The PF_AUTOBOOT or PF_AUTOSEARCH flag  */
static ssize_t pdcs_auto_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf, int knob)
/* pdcs_auto_read - Stable Storage autoboot/search flag output. @buf: The output buffer to write to. @knob: The PF_AUTOBOOT or PF_AUTOSEARCH flag  */
static ssize_t pdcs_auto_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf, int knob)
{
	char *out = buf;
	struct pdcspath_entry *pathentry;
	if (!buf)
		return -EINVAL;
	pathentry = &pdcspath_entry_primary;
	read_lock(&pathentry->rw_lock);
	out += sprintf(out, "%s\n", (pathentry->devpath.flags & knob) ?
					"On" : "Off");
	read_unlock(&pathentry->rw_lock);
	return out - buf;
}