From 31a17b36d5f7d875f9de8e86501eaf2338f94d2b Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 3 Jan 2001 13:04:12 +0000 Subject: [PATCH] ChangeLog, ext2fs.h, mkjournal.c: mkjournal.c: rename ext2fs_add_journal_fs() to the more descriptive ext2fs_add_journal_inode() --- lib/ext2fs/ChangeLog | 7 ++++++- lib/ext2fs/ext2fs.h | 4 ++-- lib/ext2fs/mkjournal.c | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index 6ec6d29..64261c2 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -1,3 +1,8 @@ +2000-12-14 Andreas Dilger + + * mkjournal.c: rename ext2fs_add_journal_fs() to the more descriptive + ext2fs_add_journal_inode() + 2001-01-01 * ext2fs.h: Remove definition of ext2fs_sb. Note: this may break @@ -30,7 +35,7 @@ 2000-12-09 - * ext2fs.h, mkjournal.c (ext2fs_add_journal_fs, + * ext2fs.h, mkjournal.c (ext2fs_add_journal_inode, ext2fs_add_journal_device): Add a new argument to the APIs of these function, which is a flags word. This is used to allow the creation of a V1 superblock for those folks who diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h index 067fc13..be2c534 100644 --- a/lib/ext2fs/ext2fs.h +++ b/lib/ext2fs/ext2fs.h @@ -712,8 +712,8 @@ extern errcode_t ext2fs_mkdir(ext2_filsys fs, ino_t parent, ino_t inum, /* mkjournal.c */ extern errcode_t ext2fs_add_journal_device(ext2_filsys fs, char *device, blk_t size, int flags); -extern errcode_t ext2fs_add_journal_fs(ext2_filsys fs, blk_t size, - int flags); +extern errcode_t ext2fs_add_journal_inode(ext2_filsys fs, blk_t size, + int flags); /* openfs.c */ extern errcode_t ext2fs_open(const char *name, int flags, int superblock, diff --git a/lib/ext2fs/mkjournal.c b/lib/ext2fs/mkjournal.c index 5246f64..3e5c223 100644 --- a/lib/ext2fs/mkjournal.c +++ b/lib/ext2fs/mkjournal.c @@ -195,7 +195,7 @@ static int mkjournal_proc(ext2_filsys fs, /* * This function adds a journal inode to a filesystem */ -errcode_t ext2fs_add_journal_fs(ext2_filsys fs, blk_t size, int flags) +errcode_t ext2fs_add_journal_inode(ext2_filsys fs, blk_t size, int flags) { journal_superblock_t jsb; errcode_t retval; @@ -272,7 +272,7 @@ main(int argc, char **argv) exit(1); } - retval = ext2fs_add_journal_fs(fs, 1024); + retval = ext2fs_add_journal_inode(fs, 1024); if (retval) { com_err(argv[0], retval, "while adding journal to %s", device_name); -- 1.8.3.1