From 598e559855d79f38fe67c35878ae348948ff74c2 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 28 May 2003 18:28:33 +0000 Subject: [PATCH] More from b_devel->b_orphan merge (I guess I didn't commit anything last night). DEVEL_ORPHAN_UPDATE_PARENT_20030522->DEVEL_ORPHAN_UPDATE_PARENT_20030528 --- lustre/{lib => obdclass}/recov_log.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) rename lustre/{lib => obdclass}/recov_log.c (96%) diff --git a/lustre/lib/recov_log.c b/lustre/obdclass/recov_log.c similarity index 96% rename from lustre/lib/recov_log.c rename to lustre/obdclass/recov_log.c index 673acdf..fe230ff 100644 --- a/lustre/lib/recov_log.c +++ b/lustre/obdclass/recov_log.c @@ -28,6 +28,10 @@ #define DEBUG_SUBSYSTEM S_UNDEFINED +#ifndef EXPORT_SYMTAB +#define EXPORT_SYMTAB +#endif + #include #include #include @@ -54,6 +58,7 @@ struct llog_handle *llog_alloc_handle(void) RETURN(loghandle); } +EXPORT_SYMBOL(llog_alloc_handle); void llog_free_handle(struct llog_handle *loghandle) { @@ -64,6 +69,7 @@ void llog_free_handle(struct llog_handle *loghandle) OBD_FREE(loghandle->lgh_hdr, LLOG_CHUNK_SIZE); OBD_FREE(loghandle, sizeof(*loghandle)); } +EXPORT_SYMBOL(llog_free_handle); /* Create a new log handle and add it to the open list. * This log handle will be closed when all of the records in it are removed. @@ -145,6 +151,7 @@ struct llog_handle *llog_new_log(struct llog_handle *cathandle, RETURN(loghandle); } +EXPORT_SYMBOL(llog_new_log); /* Assumes caller has already pushed us into the kernel context. */ int llog_init_catalog(struct llog_handle *cathandle, struct obd_uuid *tgtuuid) @@ -189,6 +196,7 @@ write_hdr: llh->llh_hdr.lth_type = LLOG_CATALOG_MAGIC; up(&cathandle->lgh_lock); RETURN(rc); } +EXPORT_SYMBOL(llog_init_catalog); /* Return the currently active log handle. If the current log handle doesn't * have enough space left for the current record, start a new one. @@ -198,7 +206,8 @@ write_hdr: llh->llh_hdr.lth_type = LLOG_CATALOG_MAGIC; * * Assumes caller has already pushed us into the kernel context and is locking. */ -struct llog_handle *llog_current_log(struct llog_handle *cathandle, int reclen) +static struct llog_handle *llog_current_log(struct llog_handle *cathandle, + int reclen) { struct llog_handle *loghandle = NULL; ENTRY; @@ -324,6 +333,7 @@ out: up(&loghandle->lgh_lock); RETURN(rc); } +EXPORT_SYMBOL(llog_add_record); /* Remove a log entry from the catalog. * Assumes caller has already pushed us into the kernel context and is locking. @@ -356,12 +366,13 @@ int llog_delete_log(struct llog_handle *cathandle,struct llog_handle *loghandle) } RETURN(rc); } +EXPORT_SYMBOL(llog_delete_log); /* Assumes caller has already pushed us into the kernel context and is locking. * We return a lock on the handle to ensure nobody yanks it from us. */ -struct llog_handle *llog_id2handle(struct llog_handle *cathandle, - struct llog_cookie *logcookie) +static struct llog_handle *llog_id2handle(struct llog_handle *cathandle, + struct llog_cookie *logcookie) { struct llog_handle *loghandle; struct llog_logid *lgl = &logcookie->lgc_lgl; @@ -454,8 +465,10 @@ int llog_cancel_records(struct llog_handle *cathandle, int count, RETURN(rc); } +EXPORT_SYMBOL(llog_cancel_records); int llog_close_log(struct llog_handle *cathandle, struct llog_handle *loghandle) { return loghandle->lgh_log_close(cathandle, loghandle); } +EXPORT_SYMBOL(llog_close_log); -- 1.8.3.1