All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Simmons <jsimmons@infradead.org>
To: lustre-devel@lists.lustre.org
Subject: [lustre-devel] [PATCH 7/7] lustre: ioctl: Add BLKSSZGET ioctl support
Date: Sun, 14 Oct 2018 15:00:46 -0400	[thread overview]
Message-ID: <1539543646-29717-8-git-send-email-jsimmons@infradead.org> (raw)
In-Reply-To: <1539543646-29717-1-git-send-email-jsimmons@infradead.org>

From: Emoly Liu <emoly@whamcloud.com>

Add BLKSSZGET ioctl and return PAGE_SIZE for the minimun
alignment from ll_file_ioctl() for this call.

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
WC-bug-id: https://jira.whamcloud.com/browse/LU-9347
Reviewed-on: https://review.whamcloud.com/28578
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
---
 drivers/staging/lustre/lustre/llite/file.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index f69eefc..d3ddfd2 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -2618,6 +2618,8 @@ int ll_ioctl_fssetxattr(struct inode *inode, unsigned int cmd,
 		return ll_ioctl_fsgetxattr(inode, cmd, arg);
 	case FS_IOC_FSSETXATTR:
 		return ll_ioctl_fssetxattr(inode, cmd, arg);
+	case BLKSSZGET:
+		return put_user(PAGE_SIZE, (int __user *)arg);
 	default: {
 		int err;
 
-- 
1.8.3.1

      parent reply	other threads:[~2018-10-14 19:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-14 19:00 [lustre-devel] [PATCH 0/7] lustre: project quota support and BLKSZGET James Simmons
2018-10-14 19:00 ` [lustre-devel] [PATCH 1/7] lustre: quota: cleanup codes of quota for new type James Simmons
2018-10-14 19:00 ` [lustre-devel] [PATCH 2/7] lustre: quota: add project quota support for Lustre James Simmons
2018-10-14 19:00 ` [lustre-devel] [PATCH 3/7] lustre: quota: add project id support James Simmons
2018-10-14 19:00 ` [lustre-devel] [PATCH 4/7] lustre: quota: add setting/getting project id function James Simmons
2018-10-14 19:00 ` [lustre-devel] [PATCH 5/7] lustre: quota: add project inherit attributes James Simmons
2018-10-14 19:00 ` [lustre-devel] [PATCH 6/7] lustre: llite: extend inode flags into GET/SETXATTR ioctl James Simmons
2018-10-14 19:00 ` James Simmons [this message]

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=1539543646-29717-8-git-send-email-jsimmons@infradead.org \
    --to=jsimmons@infradead.org \
    --cc=lustre-devel@lists.lustre.org \
    /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.