linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] use new mount API for bcachefs
@ 2024-05-28  4:36 Thomas Bertschinger
  2024-05-28  4:36 ` [PATCH 1/3] bcachefs: add printbuf arg to bch2_parse_mount_opts() Thomas Bertschinger
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thomas Bertschinger @ 2024-05-28  4:36 UTC (permalink / raw)
  To: kent.overstreet, linux-bcachefs, bfoster, linux-fsdevel, sandeen,
	dhowells
  Cc: Thomas Bertschinger

This updates bcachefs to use the new fs_context_operations functions for
mounting and remounting.

However, rather than using the parsing utilities defined in fs_parser.h,
I stick with using the existing options parsing code that bcachefs
already has. This simplifies the changes, since integrating the bcachefs
options with the generic parsing utilities in fs_context would otherwise
involve some tricky macro manipulations.

Following this series is a new test in Ktest [1] which exercises mount
and remount functionality to test the new code.

[1] https://evilpiepirate.org/git/ktest.git/

Thomas Bertschinger (3):
  bcachefs: add printbuf arg to bch2_parse_mount_opts()
  bcachefs: Add error code to defer option parsing
  bcachefs: use new mount API

 fs/bcachefs/chardev.c     |   4 +-
 fs/bcachefs/disk_groups.c |   2 +-
 fs/bcachefs/errcode.h     |   3 +-
 fs/bcachefs/fs.c          | 113 ++++++++++++++++++++++++++++-------
 fs/bcachefs/opts.c        | 120 ++++++++++++++++++++++++--------------
 fs/bcachefs/opts.h        |  12 +++-
 6 files changed, 185 insertions(+), 69 deletions(-)

-- 
2.45.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-28  4:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28  4:36 [PATCH 0/3] use new mount API for bcachefs Thomas Bertschinger
2024-05-28  4:36 ` [PATCH 1/3] bcachefs: add printbuf arg to bch2_parse_mount_opts() Thomas Bertschinger
2024-05-28  4:36 ` [PATCH 2/3] bcachefs: Add error code to defer option parsing Thomas Bertschinger
2024-05-28  4:36 ` [PATCH 3/3] bcachefs: use new mount API Thomas Bertschinger
2024-05-28  4:36 ` [PATCH KTEST] add test to exercise the new mount API for bcachefs Thomas Bertschinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).