* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2013, Intel Corporation.
+ * Copyright (c) 2011, 2014, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
#define DEBUG_SUBSYSTEM S_LOG
#include <obd_class.h>
+#include <lustre_ioctl.h>
#include <lustre_log.h>
#include "llog_internal.h"
EXPORT_SYMBOL(llog_ioctl);
int llog_catalog_list(const struct lu_env *env, struct dt_device *d,
- int count, struct obd_ioctl_data *data)
+ int count, struct obd_ioctl_data *data,
+ const struct lu_fid *fid)
{
int size, i;
struct llog_catid *idarray;
ENTRY;
if (count == 0) { /* get total number of logs */
- rc = llog_osd_get_cat_list(env, d, 0, 0, NULL);
+ rc = llog_osd_get_cat_list(env, d, 0, 0, NULL, fid);
if (rc < 0)
RETURN(rc);
count = rc;
if (!idarray)
RETURN(-ENOMEM);
- rc = llog_osd_get_cat_list(env, d, 0, count, idarray);
+ rc = llog_osd_get_cat_list(env, d, 0, count, idarray, fid);
if (rc)
GOTO(out, rc);