Comment 6 for bug 48517

Revision history for this message
In , johannes (qaz99af) wrote : Re: Bug#328582: /etc/init.d/umountfs: swapoff should be called before unmounting localfs and not after?

On Saturday 12 November 2005 13:14, Petter Reinholdtsen wrote:
> I believe the swapoff/umount order was changed to solve bug #84782,
> making sure tmpfs file systems are umounted before swap is turned off
> and thus improving the chance of not running out of memory for
> low-memory machines.
>
> I'm not sure how to modify umountfs to solve both problems.
>
> I agree that it should be possible to use swap files without having to
> run fsck at every boot, and that it should be possible to use tmpfs on
> some filesystems with fairly large data sets without having problems
> shutting down.

would this solve the problem?

first unmount tmpfs
then call swapoff
finally unmount normal filesystems