freebsd-nq/cmd/zfs
John M. Layman cbca6076b3 Fix for re-reading /etc/mtab.
This is a continuation of fb5c53ea65:

    When /etc/mtab is updated on Linux it's done atomically with
    rename(2).  A new mtab is written, the existing mtab is unlinked,
    and the new mtab is renamed to /etc/mtab.  This means that we
    must close the old file and open the new file to get the updated
    contents.  Using rewind(3) will just move the file pointer back
    to the start of the file, freopen(3) will close and open the file.

In this commit, a few more rewind(3) calls were replaced with freopen(3)
to allow updated mtab entries to be picked up immediately.

Signed-off-by: John M. Layman <jml@frijid.net>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2215
Issue #1611
2014-04-04 09:46:20 -07:00
..
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00
Makefile.am Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
zfs_iter.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
zfs_iter.h Illumos #2583 2013-11-21 11:13:53 -08:00
zfs_main.c Fix for re-reading /etc/mtab. 2014-04-04 09:46:20 -07:00
zfs_util.h Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00