On Wed, Mar 13, 2013 at 07:39:47PM -0500, Jeff Epler wrote: > In a recent discussion on #debian-kbsd, rleigh brought up the fact that > findmnt isn't available on kfreebsd; he feels it would be useful in > initscripts. Do you mean for fstab/mtab parsing? ... because I cannot imagine anything else without Linux kernel. > I had a look at what it would take to enable findmnt, which needs > libmount. It turns out that not much is required: mostly, make a few > bits of code return (-)ENOSYS. There were also a few more bits that > needed tweaking before kfreebsd was happy (LIST_HEAD is also in some > bsd-origin header, and of course <linux/posix_types.h> was not > available). > > I'm not sure I correctly intuited where it was proper to return +ENOSYS > and where it was proper to return -ENOSYS, so this merits further study. Maybe you can #ifdef whole context{.c,_umount.c,mount.c} API. All you need is probably fs.c tab*.c files. Maybe you can modify libmount/src/Makemodule.am rather than code to create a minimalistic kernel independent libmount :-) 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