maybeQuestion at everyone that is better in scripting than me. I want to merge my ext4 and btrfs script so that both are compatible (for my ROM):
If i do:
....will the mount fail if done with ext partition because of the option ssd_spread? Or will it simply mount without that option?Code:busybox mount -o noatime,nodiratime,[COLOR="Red"]ssd_spread [/COLOR]/dev/block/mmcblk0p2 /data;
I also browsed "/proc" and "/sys" to see if i can "cat" the partition type somewhere to make a "if-then-else" mount part depending on the type... but i didn't find anything ....
Other option would be:
mount (auto)
mounts | grep btrfs
umount
then mount depending on type ... but i think mount -> umount -> mount is "bad" coding. Since mount recognizes the partition there must be some way to get the type of it .....![]()
-s Tolerate sloppy mount options rather than failing. This will ignore mount options not supported by a filesystem type. Not all filesystems support this option.
or --fake