Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 2021 16:28:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 256535] swapon nukes non FreeBSD swap file systems
Message-ID:  <bug-256535-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256535

            Bug ID: 256535
           Summary: swapon nukes non FreeBSD swap file systems
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: bz@FreeBSD.org

Hi,

if one repurposes a FreeBSD swap file system for another file system (e.g. =
2nd
system) or mistyypes the partition in fstab
and FreeBSD boots with that swap in fstab, swapon -a will nuke that file sy=
stem
even if it is no longer a freebsd-swap in GPT
(no idea about MBR anymore).
It seems to be a good idea to put in a check, warn and let the user fix this
rather than simply activating swap and with
that likely nuking a file system there..
It's probably a bit tricky to find all the cases but it should be fairly ea=
sy
to test in a VM so..

#BeginnersTask

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256535-227>