linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] VFS API for getting filesystem's UUID
@ 2017-04-27  8:59 Amir Goldstein
  2017-04-27  8:59 ` [PATCH 1/5] vfs: define a flag to indicate sb->s_uuid is available Amir Goldstein
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Amir Goldstein @ 2017-04-27  8:59 UTC (permalink / raw)
  To: Miklos Szeredi
  Cc: Darrick J . Wong, Christoph Hellwig, Theodore Ts'o,
	Jaegeuk Kim, Mark Fasheh, Al Viro, linux-xfs, linux-unionfs,
	linux-fsdevel

Miklos,

As you observed, the sb->s_uuid field is not always filled by filesystems.

Consumers, like overlayfs, that wish to use this field can check if is
zeroed out as an indication for valid value.

Christoph suggested to make the test more explicit and require the
filesystems that fill the s_uuid field to set a super block flag.

Do you agree with the proposed API?

The first patch in the series defines the flag.
If you push this patch through your tree to Al or Linus, then filesystem
maintainers could later pick the individual patches to their trees.

The xfs patch is based on a patch I already sent to Darrick for filling
out the s_uuid field.

Thanks,
Amir.

Amir Goldstein (5):
  vfs: define a flag to indicate sb->s_uuid is available
  ext4: set the super block SB_I_HAVE_UUID flag
  f2fs: set the super block SB_I_HAVE_UUID flag
  ocfs2: set the super block SB_I_HAVE_UUID flag
  xfs: set the super block SB_I_HAVE_UUID flag

 fs/ext4/super.c    | 1 +
 fs/f2fs/super.c    | 1 +
 fs/ocfs2/super.c   | 1 +
 fs/xfs/xfs_mount.c | 1 +
 include/linux/fs.h | 3 +++
 5 files changed, 7 insertions(+)

-- 
2.7.4

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

end of thread, other threads:[~2017-04-30  5:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-27  8:59 [PATCH 0/5] VFS API for getting filesystem's UUID Amir Goldstein
2017-04-27  8:59 ` [PATCH 1/5] vfs: define a flag to indicate sb->s_uuid is available Amir Goldstein
2017-04-27 19:34   ` Darrick J. Wong
2017-04-27  8:59 ` [PATCH 2/5] ext4: set the super block SB_I_HAVE_UUID flag Amir Goldstein
2017-04-27  8:59 ` [PATCH 3/5] f2fs: " Amir Goldstein
2017-04-27  8:59 ` [PATCH 4/5] ocfs2: " Amir Goldstein
2017-04-27  8:59 ` [PATCH 5/5] xfs: " Amir Goldstein
2017-04-27  9:09 ` [PATCH 0/5] VFS API for getting filesystem's UUID Miklos Szeredi
2017-04-29 23:01 ` Dave Chinner
2017-04-30  0:54   ` Al Viro
2017-04-30  5:04     ` Amir Goldstein
2017-04-30  5:01   ` Amir Goldstein

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).