On Sat, Apr 23, 2011 at 05:20:01PM +0200, Jan Engelhardt wrote: > I see a mnt_mangle function provided by libmount, but it seems to be > meant for *tab columns only. Is there also a function that mangles the > passed string such that it can be used as an option value, i.e. encodes > the set " ,\t\n\\"? Not sure if I good understand. Do you have any example? Do you mean mount options? The library uses the mnt_mangle functions for all strings that are read/write to/from the *tab files. You don't have to care about " \t\n\\". The problem is comma (','), it should not be used in the strings -- exception are SELinux mount options where comma is acceptable if the option uses quotes (e.g. context="aaa,bbb,ccc"). Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html