Bug 293896 - newfs: gjournal is mutually exclusive with su/suj
Summary: newfs: gjournal is mutually exclusive with su/suj
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Dag-Erling Smørgrav
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-18 12:56 UTC by nvass
Modified: 2026-04-04 18:26 UTC (History)
1 user (show)

See Also:
des: mfc-stable15+
des: mfc-stable14+
des: mfc-stable13+


Attachments
Either su/suj or gjournal flag should be set (686 bytes, patch)
2026-03-18 12:56 UTC, nvass
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nvass 2026-03-18 12:56:45 UTC
Created attachment 268903 [details]
Either su/suj or gjournal flag should be set

Newfs allows creating a file system with both GEOM journaling and soft updates.

Attached patch enforces creating a file system with either soft updates/soft updates journaling or gjournal journaling
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2026-03-20 19:50:24 UTC
https://reviews.freebsd.org/D55999
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2026-03-20 22:32:00 UTC
https://reviews.freebsd.org/D56002
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-03-21 07:22:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=e30fcdaae2e68458da83d5420e6034c5f384e5f2

commit e30fcdaae2e68458da83d5420e6034c5f384e5f2
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-03-21 07:21:28 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-03-21 07:21:45 +0000

    newfs: Don't combine GEOM journaling with SU

    GEOM journaling shouldn't be used at the same time as soft updates, so
    don't enable soft updates if GEOM journaling has been requested, and
    error out if both are explicitly requested.

    MFC after:      1 week
    PR:             293896
    Reviewed by:    mckusick
    Differential Revision:  https://reviews.freebsd.org/D55999

 sbin/newfs/newfs.8 | 14 ++++++++++----
 sbin/newfs/newfs.c |  4 +++-
 2 files changed, 13 insertions(+), 5 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-03-21 07:22:49 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=b1f72dd2a9a5e69a310b9e76b55f16cff433b8da

commit b1f72dd2a9a5e69a310b9e76b55f16cff433b8da
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-03-21 07:21:33 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-03-21 07:21:45 +0000

    tunefs: Don't combine GEOM journaling with SU

    GEOM journaling shouldn't be used at the same time as soft updates, so
    don't enable one if the other is already in use.

    MFC after:      1 week
    PR:             293896
    Reviewed by:    mckusick
    Differential Revision:  https://reviews.freebsd.org/D56002

 sbin/tunefs/tunefs.8 |  8 ++++++--
 sbin/tunefs/tunefs.c | 17 +++++++++++++----
 2 files changed, 19 insertions(+), 6 deletions(-)
Comment 5 nvass 2026-03-21 10:16:16 UTC
Thanks!
Comment 6 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2026-03-21 10:44:31 UTC
please don't
Comment 7 commit-hook freebsd_committer freebsd_triage 2026-04-04 08:59:55 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=ae185dc5f409f330806efbf355c57e2e94a15440

commit ae185dc5f409f330806efbf355c57e2e94a15440
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-03-21 07:21:33 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-04-04 08:59:14 +0000

    tunefs: Don't combine GEOM journaling with SU

    GEOM journaling shouldn't be used at the same time as soft updates, so
    don't enable one if the other is already in use.

    MFC after:      1 week
    PR:             293896
    Reviewed by:    mckusick
    Differential Revision:  https://reviews.freebsd.org/D56002

    (cherry picked from commit b1f72dd2a9a5e69a310b9e76b55f16cff433b8da)

 sbin/tunefs/tunefs.8 |  8 ++++++--
 sbin/tunefs/tunefs.c | 17 +++++++++++++----
 2 files changed, 19 insertions(+), 6 deletions(-)
Comment 8 commit-hook freebsd_committer freebsd_triage 2026-04-04 08:59:56 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=f758262e66dd14964da327de322286586f9edaf2

commit f758262e66dd14964da327de322286586f9edaf2
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-03-21 07:21:28 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-04-04 08:59:14 +0000

    newfs: Don't combine GEOM journaling with SU

    GEOM journaling shouldn't be used at the same time as soft updates, so
    don't enable soft updates if GEOM journaling has been requested, and
    error out if both are explicitly requested.

    MFC after:      1 week
    PR:             293896
    Reviewed by:    mckusick
    Differential Revision:  https://reviews.freebsd.org/D55999

    (cherry picked from commit e30fcdaae2e68458da83d5420e6034c5f384e5f2)

 sbin/newfs/newfs.8 | 14 ++++++++++----
 sbin/newfs/newfs.c |  4 +++-
 2 files changed, 13 insertions(+), 5 deletions(-)
Comment 9 commit-hook freebsd_committer freebsd_triage 2026-04-04 08:59:57 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=c514f8dbeab813c996d426de2aedceb669c4fa2a

commit c514f8dbeab813c996d426de2aedceb669c4fa2a
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-03-21 07:21:33 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-04-04 08:59:25 +0000

    tunefs: Don't combine GEOM journaling with SU

    GEOM journaling shouldn't be used at the same time as soft updates, so
    don't enable one if the other is already in use.

    MFC after:      1 week
    PR:             293896
    Reviewed by:    mckusick
    Differential Revision:  https://reviews.freebsd.org/D56002

    (cherry picked from commit b1f72dd2a9a5e69a310b9e76b55f16cff433b8da)

 sbin/tunefs/tunefs.8 |  8 ++++++--
 sbin/tunefs/tunefs.c | 17 +++++++++++++----
 2 files changed, 19 insertions(+), 6 deletions(-)
Comment 10 commit-hook freebsd_committer freebsd_triage 2026-04-04 08:59:58 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=94c236b7d806d676d485d0c55a1924af417e70d1

commit 94c236b7d806d676d485d0c55a1924af417e70d1
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-03-21 07:21:28 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-04-04 08:59:25 +0000

    newfs: Don't combine GEOM journaling with SU

    GEOM journaling shouldn't be used at the same time as soft updates, so
    don't enable soft updates if GEOM journaling has been requested, and
    error out if both are explicitly requested.

    MFC after:      1 week
    PR:             293896
    Reviewed by:    mckusick
    Differential Revision:  https://reviews.freebsd.org/D55999

    (cherry picked from commit e30fcdaae2e68458da83d5420e6034c5f384e5f2)

 sbin/newfs/newfs.8 | 14 ++++++++++----
 sbin/newfs/newfs.c |  4 +++-
 2 files changed, 13 insertions(+), 5 deletions(-)
Comment 11 commit-hook freebsd_committer freebsd_triage 2026-04-04 08:59:59 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=a4b2be2f6a9a155c56c876aabf3175301c4a84de

commit a4b2be2f6a9a155c56c876aabf3175301c4a84de
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-03-21 07:21:28 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-04-04 08:59:33 +0000

    newfs: Don't combine GEOM journaling with SU

    GEOM journaling shouldn't be used at the same time as soft updates, so
    don't enable soft updates if GEOM journaling has been requested, and
    error out if both are explicitly requested.

    MFC after:      1 week
    PR:             293896
    Reviewed by:    mckusick
    Differential Revision:  https://reviews.freebsd.org/D55999

    (cherry picked from commit e30fcdaae2e68458da83d5420e6034c5f384e5f2)

 sbin/newfs/newfs.8 | 14 ++++++++++----
 sbin/newfs/newfs.c |  4 +++-
 2 files changed, 13 insertions(+), 5 deletions(-)
Comment 12 commit-hook freebsd_committer freebsd_triage 2026-04-04 09:00:00 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=e28c20959cd3aa526a6e86d8e9fe55fda326a951

commit e28c20959cd3aa526a6e86d8e9fe55fda326a951
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-03-21 07:21:33 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-04-04 08:59:33 +0000

    tunefs: Don't combine GEOM journaling with SU

    GEOM journaling shouldn't be used at the same time as soft updates, so
    don't enable one if the other is already in use.

    MFC after:      1 week
    PR:             293896
    Reviewed by:    mckusick
    Differential Revision:  https://reviews.freebsd.org/D56002

    (cherry picked from commit b1f72dd2a9a5e69a310b9e76b55f16cff433b8da)

 sbin/tunefs/tunefs.8 |  8 ++++++--
 sbin/tunefs/tunefs.c | 17 +++++++++++++----
 2 files changed, 19 insertions(+), 6 deletions(-)