systemctl equivalent of /sys/block/sda/device/state

From: Chaitanya Gotkhindikar
Date: Sun Nov 23 2014 - 19:16:04 EST


Hi folks,

Not sure if this is right place to ask this doubt.

I am trying to port my old script to centos7, in which earlier device
state was set using
echo "offline" > /sys/block/sda/device/state.

I am looking for systemctl equivalent for it. Can anyone please help?

Thank you.

-Chaitanya
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/