All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darrick J. Wong <darrick.wong@oracle.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/4] vfs: create a generic checking function for FS_IOC_SETFLAGS
Date: Tue, 25 Jun 2019 11:17:33 -0700	[thread overview]
Message-ID: <20190625181733.GG5375@magnolia> (raw)
In-Reply-To: <20190625171254.GT8917@twin.jikos.cz>

On Tue, Jun 25, 2019 at 07:12:54PM +0200, David Sterba wrote:
> On Fri, Jun 21, 2019 at 04:56:21PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <darrick.wong@oracle.com>
> > 
> > Create a generic checking function for the incoming FS_IOC_SETFLAGS flag
> > values so that we can standardize the implementations that follow ext4's
> > flag values.
> 
> I checked a few samples what's the type of the flags, there are unsigned
> types while the proposed VFS functions take signed type.
> 
> > +int vfs_ioc_setflags_check(struct inode *inode, int oldflags, int flags);
> 
> Specifically ext4 uses unsigned type and his was the original API that
> got copied so I'd think that it should unsigned everywhere.

Yeah, I'll change it.

> >  fs/btrfs/ioctl.c    |   13 +++++--------
> 
> For the btrfs bits
> 
> Acked-by: David Sterba <dsterba@suse.com>
> 
> and besides the signedness, the rest of the changes look good to me.

Thanks for the look around!  I'll have a new revision with all changes
out by the end of the day. :)

--D



WARNING: multiple messages have this Message-ID (diff)
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: dsterba@suse.cz, matthew.garrett@nebula.com, yuchao0@huawei.com,
	tytso@mit.edu, shaggy@kernel.org, ard.biesheuvel@linaro.org,
	josef@toxicpanda.com, clm@fb.com, adilger.kernel@dilger.ca,
	jk@ozlabs.org, jack@suse.com, dsterba@suse.com,
	jaegeuk@kernel.org, viro@zeniv.linux.org.uk,
	cluster-devel@redhat.com, jfs-discussion@lists.sourceforge.net,
	linux-efi@vger.kernel.org, Jan Kara <jack@suse.cz>,
	reiserfs-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-f2fs-devel@lists.sourceforge.net,
	linux-xfs@vger.kernel.org, linux-nilfs@vger.kernel.org,
	linux-mtd@lists.infradead.org, ocfs2-devel@oss.oracle.com,
	linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,
	linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 1/4] vfs: create a generic checking function for FS_IOC_SETFLAGS
Date: Tue, 25 Jun 2019 11:17:33 -0700	[thread overview]
Message-ID: <20190625181733.GG5375@magnolia> (raw)
In-Reply-To: <20190625171254.GT8917@twin.jikos.cz>

On Tue, Jun 25, 2019 at 07:12:54PM +0200, David Sterba wrote:
> On Fri, Jun 21, 2019 at 04:56:21PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <darrick.wong@oracle.com>
> > 
> > Create a generic checking function for the incoming FS_IOC_SETFLAGS flag
> > values so that we can standardize the implementations that follow ext4's
> > flag values.
> 
> I checked a few samples what's the type of the flags, there are unsigned
> types while the proposed VFS functions take signed type.
> 
> > +int vfs_ioc_setflags_check(struct inode *inode, int oldflags, int flags);
> 
> Specifically ext4 uses unsigned type and his was the original API that
> got copied so I'd think that it should unsigned everywhere.

Yeah, I'll change it.

> >  fs/btrfs/ioctl.c    |   13 +++++--------
> 
> For the btrfs bits
> 
> Acked-by: David Sterba <dsterba@suse.com>
> 
> and besides the signedness, the rest of the changes look good to me.

Thanks for the look around!  I'll have a new revision with all changes
out by the end of the day. :)

--D

WARNING: multiple messages have this Message-ID (diff)
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: dsterba@suse.cz, matthew.garrett@nebula.com, yuchao0@huawei.com,
	tytso@mit.edu, shaggy@kernel.org, ard.biesheuvel@linaro.org,
	josef@toxicpanda.com, clm@fb.com, adilger.kernel@dilger.ca,
	jk@ozlabs.org, jack@suse.com, dsterba@suse.com,
	jaegeuk@kernel.org, viro@zeniv.linux.org.uk,
	cluster-devel@redhat.com, jfs-discussion@lists.sourceforge.net,
	linux-efi@vger.kernel.org, Jan Kara <jack@suse.cz>,
	reiserfs-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-f2fs-devel@lists.sourceforge.net,
	linux-xfs@vger.kernel.org, linux-nilfs@vger.kernel.org,
	linux-mtd@lists.infradead.org, ocfs2-devel@oss.oracle.com,
	linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,
	linux-btrfs@vger.kernel.org
Subject: Re: [f2fs-dev] [PATCH 1/4] vfs: create a generic checking function for FS_IOC_SETFLAGS
Date: Tue, 25 Jun 2019 11:17:33 -0700	[thread overview]
Message-ID: <20190625181733.GG5375@magnolia> (raw)
In-Reply-To: <20190625171254.GT8917@twin.jikos.cz>

On Tue, Jun 25, 2019 at 07:12:54PM +0200, David Sterba wrote:
> On Fri, Jun 21, 2019 at 04:56:21PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <darrick.wong@oracle.com>
> > 
> > Create a generic checking function for the incoming FS_IOC_SETFLAGS flag
> > values so that we can standardize the implementations that follow ext4's
> > flag values.
> 
> I checked a few samples what's the type of the flags, there are unsigned
> types while the proposed VFS functions take signed type.
> 
> > +int vfs_ioc_setflags_check(struct inode *inode, int oldflags, int flags);
> 
> Specifically ext4 uses unsigned type and his was the original API that
> got copied so I'd think that it should unsigned everywhere.

Yeah, I'll change it.

> >  fs/btrfs/ioctl.c    |   13 +++++--------
> 
> For the btrfs bits
> 
> Acked-by: David Sterba <dsterba@suse.com>
> 
> and besides the signedness, the rest of the changes look good to me.

Thanks for the look around!  I'll have a new revision with all changes
out by the end of the day. :)

--D


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

WARNING: multiple messages have this Message-ID (diff)
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: dsterba@suse.cz, matthew.garrett@nebula.com, yuchao0@huawei.com,
	tytso@mit.edu, shaggy@kernel.org, ard.biesheuvel@linaro.org,
	josef@toxicpanda.com, clm@fb.com, adilger.kernel@dilger.ca,
	jk@ozlabs.org, jack@suse.com, dsterba@suse.com,
	jaegeuk@kernel.org, viro@zeniv.linux.org.uk,
	cluster-devel@redhat.com, jfs-discussion@lists.sourceforge.net,
	linux-efi@vger.kernel.org, Jan Kara <jack@suse.cz>,
	reiserfs-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-f2fs-devel@lists.sourceforge.net,
	linux-xfs@vger.kernel.org, linux-nilfs@vger.kernel.org,
	linux-mtd@lists.infradead.org, ocfs2-devel@oss.oracle.com,
	linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,
	linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 1/4] vfs: create a generic checking function for FS_IOC_SETFLAGS
Date: Tue, 25 Jun 2019 11:17:33 -0700	[thread overview]
Message-ID: <20190625181733.GG5375@magnolia> (raw)
In-Reply-To: <20190625171254.GT8917@twin.jikos.cz>

On Tue, Jun 25, 2019 at 07:12:54PM +0200, David Sterba wrote:
> On Fri, Jun 21, 2019 at 04:56:21PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <darrick.wong@oracle.com>
> > 
> > Create a generic checking function for the incoming FS_IOC_SETFLAGS flag
> > values so that we can standardize the implementations that follow ext4's
> > flag values.
> 
> I checked a few samples what's the type of the flags, there are unsigned
> types while the proposed VFS functions take signed type.
> 
> > +int vfs_ioc_setflags_check(struct inode *inode, int oldflags, int flags);
> 
> Specifically ext4 uses unsigned type and his was the original API that
> got copied so I'd think that it should unsigned everywhere.

Yeah, I'll change it.

> >  fs/btrfs/ioctl.c    |   13 +++++--------
> 
> For the btrfs bits
> 
> Acked-by: David Sterba <dsterba@suse.com>
> 
> and besides the signedness, the rest of the changes look good to me.

Thanks for the look around!  I'll have a new revision with all changes
out by the end of the day. :)

--D

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

WARNING: multiple messages have this Message-ID (diff)
From: Darrick J. Wong <darrick.wong@oracle.com>
To: dsterba@suse.cz, matthew.garrett@nebula.com, yuchao0@huawei.com,
	tytso@mit.edu, shaggy@kernel.org, ard.biesheuvel@linaro.org,
	josef@toxicpanda.com, clm@fb.com, adilger.kernel@dilger.ca,
	jk@ozlabs.org, jack@suse.com, dsterba@suse.com,
	jaegeuk@kernel.org, viro@zeniv.linux.org.uk,
	cluster-devel@redhat.com, jfs-discussion@lists.sourceforge.net,
	linux-efi@vger.kernel.org, Jan Kara <jack@suse.cz>,
	reiserfs-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-f2fs-devel@lists.sourceforge.net,
	linux-xfs@vger.kernel.org, linux-nilfs@vger.kernel.org,
	linux-mtd@lists.infradead.org, ocfs2-devel@oss.oracle.com,
	linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,
	linux-btrfs@vger.kernel.org
Subject: [Ocfs2-devel] [PATCH 1/4] vfs: create a generic checking function for FS_IOC_SETFLAGS
Date: Tue, 25 Jun 2019 11:17:33 -0700	[thread overview]
Message-ID: <20190625181733.GG5375@magnolia> (raw)
In-Reply-To: <20190625171254.GT8917@twin.jikos.cz>

On Tue, Jun 25, 2019 at 07:12:54PM +0200, David Sterba wrote:
> On Fri, Jun 21, 2019 at 04:56:21PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <darrick.wong@oracle.com>
> > 
> > Create a generic checking function for the incoming FS_IOC_SETFLAGS flag
> > values so that we can standardize the implementations that follow ext4's
> > flag values.
> 
> I checked a few samples what's the type of the flags, there are unsigned
> types while the proposed VFS functions take signed type.
> 
> > +int vfs_ioc_setflags_check(struct inode *inode, int oldflags, int flags);
> 
> Specifically ext4 uses unsigned type and his was the original API that
> got copied so I'd think that it should unsigned everywhere.

Yeah, I'll change it.

> >  fs/btrfs/ioctl.c    |   13 +++++--------
> 
> For the btrfs bits
> 
> Acked-by: David Sterba <dsterba@suse.com>
> 
> and besides the signedness, the rest of the changes look good to me.

Thanks for the look around!  I'll have a new revision with all changes
out by the end of the day. :)

--D

  reply	other threads:[~2019-06-25 18:17 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-21 23:56 [Cluster-devel] [PATCH v2 0/4] vfs: clean up SETFLAGS and FSSETXATTR option processing Darrick J. Wong
2019-06-21 23:56 ` [Ocfs2-devel] " Darrick J. Wong
2019-06-21 23:56 ` Darrick J. Wong
2019-06-21 23:56 ` [f2fs-dev] " Darrick J. Wong
2019-06-21 23:56 ` Darrick J. Wong
2019-06-21 23:56 ` [Cluster-devel] [PATCH 1/4] vfs: create a generic checking function for FS_IOC_SETFLAGS Darrick J. Wong
2019-06-21 23:56   ` [Ocfs2-devel] " Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-21 23:56   ` [f2fs-dev] " Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-25 10:54   ` [Cluster-devel] " Christoph Hellwig
2019-06-25 10:54     ` [Ocfs2-devel] " Christoph Hellwig
2019-06-25 10:54     ` Christoph Hellwig
2019-06-25 10:54     ` [f2fs-dev] " Christoph Hellwig
2019-06-25 10:54     ` Christoph Hellwig
2019-06-25 17:12   ` [Cluster-devel] " David Sterba
2019-06-25 17:12     ` [Ocfs2-devel] " David Sterba
2019-06-25 17:12     ` David Sterba
2019-06-25 17:12     ` [f2fs-dev] " David Sterba
2019-06-25 17:12     ` David Sterba
2019-06-25 18:17     ` Darrick J. Wong [this message]
2019-06-25 18:17       ` [Ocfs2-devel] " Darrick J. Wong
2019-06-25 18:17       ` Darrick J. Wong
2019-06-25 18:17       ` [f2fs-dev] " Darrick J. Wong
2019-06-25 18:17       ` Darrick J. Wong
2019-06-21 23:56 ` [Cluster-devel] [PATCH 2/4] vfs: create a generic checking function for FS_IOC_FSSETXATTR Darrick J. Wong
2019-06-21 23:56   ` [Ocfs2-devel] " Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-21 23:56   ` [f2fs-dev] " Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-25 10:57   ` [Cluster-devel] " Christoph Hellwig
2019-06-25 10:57     ` [Ocfs2-devel] " Christoph Hellwig
2019-06-25 10:57     ` Christoph Hellwig
2019-06-25 10:57     ` [f2fs-dev] " Christoph Hellwig
2019-06-25 10:57     ` Christoph Hellwig
2019-06-25 17:02     ` [Cluster-devel] " David Sterba
2019-06-25 17:02       ` [Ocfs2-devel] " David Sterba
2019-06-25 17:02       ` David Sterba
2019-06-25 17:02       ` [f2fs-dev] " David Sterba
2019-06-25 17:02       ` David Sterba
2019-06-25 17:16       ` [Cluster-devel] " Darrick J. Wong
2019-06-25 17:16         ` [Ocfs2-devel] " Darrick J. Wong
2019-06-25 17:16         ` Darrick J. Wong
2019-06-25 17:16         ` [f2fs-dev] " Darrick J. Wong
2019-06-25 17:16         ` Darrick J. Wong
2019-06-25 17:33         ` [Cluster-devel] " David Sterba
2019-06-25 17:33           ` David Sterba
2019-06-25 17:33           ` [f2fs-dev] " David Sterba
2019-06-25 17:33           ` David Sterba
2019-06-21 23:56 ` [Cluster-devel] [PATCH 3/4] fs: teach vfs_ioc_fssetxattr_check to check project id info Darrick J. Wong
2019-06-21 23:56   ` [Ocfs2-devel] " Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-21 23:56   ` [f2fs-dev] " Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-25 10:57   ` [Cluster-devel] " Christoph Hellwig
2019-06-25 10:57     ` [Ocfs2-devel] " Christoph Hellwig
2019-06-25 10:57     ` Christoph Hellwig
2019-06-25 10:57     ` [f2fs-dev] " Christoph Hellwig
2019-06-25 10:57     ` Christoph Hellwig
2019-06-21 23:56 ` [Cluster-devel] [PATCH 4/4] vfs: teach vfs_ioc_fssetxattr_check to check extent size hints Darrick J. Wong
2019-06-21 23:56   ` [Ocfs2-devel] " Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-21 23:56   ` [f2fs-dev] " Darrick J. Wong
2019-06-21 23:56   ` Darrick J. Wong
2019-06-25 10:58   ` [Cluster-devel] " Christoph Hellwig
2019-06-25 10:58     ` [Ocfs2-devel] " Christoph Hellwig
2019-06-25 10:58     ` Christoph Hellwig
2019-06-25 10:58     ` [f2fs-dev] " Christoph Hellwig
2019-06-25 10:58     ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2019-06-11  4:45 [Cluster-devel] [PATCH 0/4] vfs: clean up SETFLAGS and FSSETXATTR option processing Darrick J. Wong
2019-06-11  4:45 ` [Cluster-devel] [PATCH 1/4] vfs: create a generic checking function for FS_IOC_SETFLAGS Darrick J. Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190625181733.GG5375@magnolia \
    --to=darrick.wong@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.