From 9fa421d66411f2d37f29cd879cb74bfd56119d0e Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 12 Jun 2002 19:21:58 +0000 Subject: [PATCH] Commented-out mdc_statfs method. Not sure of how to set up all the portals stuff, but it should be close. --- lustre/mdc/mdc_request.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index ed4c5b2e..3a7fc63 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -236,6 +236,35 @@ int mdc_readpage(struct ptlrpc_client *cl, struct ptlrpc_connection *conn, return rc; } +#if 0 +int mdc_statfs(struct ptlrpc_client *cl, struct ptlrpc_connection *conn, + struct statfs *statfs, + struct ptlrpc_request **request) +{ + struct mds_rec_setattr *rec; + struct ptlrpc_request *req; + int rc, size = sizeof(*rec); + ENTRY; + + req = ptlrpc_prep_req(cl, conn, MDS_STATFS, 1, &size, NULL); + if (!req) + RETURN(-ENOMEM); + + rec = lustre_msg_buf(req->rq_reqmsg, 0); + mds_setattr_pack(rec, inode, iattr); + + size = sizeof(struct mds_body); + req->rq_replen = lustre_msg_size(1, &size); + + rc = mdc_reint(cl, req, LUSTRE_CONN_FULL); + *request = req; + if (rc == -ERESTARTSYS ) + rc = 0; + + RETURN(rc); +} +#endif + static int request_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) { -- 1.8.3.1