[Ocfs2-tools-commits] zab commits r425 - in trunk: libocfs2 libocfs2/include tunefs.ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Nov 19 13:50:54 CST 2004


Author: zab
Date: 2004-11-19 13:50:52 -0600 (Fri, 19 Nov 2004)
New Revision: 425

Modified:
   trunk/libocfs2/alloc.c
   trunk/libocfs2/include/ocfs2.h
   trunk/tunefs.ocfs2/tunefs.c
Log:
o fix trivial build warnings


Modified: trunk/libocfs2/alloc.c
===================================================================
--- trunk/libocfs2/alloc.c	2004-11-19 06:53:30 UTC (rev 424)
+++ trunk/libocfs2/alloc.c	2004-11-19 19:50:52 UTC (rev 425)
@@ -336,6 +336,7 @@
 	return ret;
 }
 
+#if 0
 /* This function needs to be filled out.  Essentially, it should be
  * calling a function in chainalloc.c.  Something like
  * "ocfs2_chain_alloc_range()".  The difference between that and
@@ -348,6 +349,7 @@
 {
 	return 0;
 }
+#endif
 
 #ifdef DEBUG_EXE
 #include <stdio.h>

Modified: trunk/libocfs2/include/ocfs2.h
===================================================================
--- trunk/libocfs2/include/ocfs2.h	2004-11-19 06:53:30 UTC (rev 424)
+++ trunk/libocfs2/include/ocfs2.h	2004-11-19 19:50:52 UTC (rev 425)
@@ -484,8 +484,9 @@
 errcode_t ocfs2_delete_inode(ocfs2_filesys *fs, uint64_t ino);
 errcode_t ocfs2_new_extent_block(ocfs2_filesys *fs, uint64_t *blkno);
 errcode_t ocfs2_delete_extent_block(ocfs2_filesys *fs, uint64_t blkno);
+errcode_t ocfs2_extend_allocation(ocfs2_filesys *fs, uint64_t ino,
+				  uint64_t new_clusters);
 
-
 /* 
  * ${foo}_to_${bar} is a floor function.  blocks_to_clusters will
  * returns the cluster that contains a block, not the number of clusters

Modified: trunk/tunefs.ocfs2/tunefs.c
===================================================================
--- trunk/tunefs.ocfs2/tunefs.c	2004-11-19 06:53:30 UTC (rev 424)
+++ trunk/tunefs.ocfs2/tunefs.c	2004-11-19 19:50:52 UTC (rev 425)
@@ -285,7 +285,8 @@
 			sprintf(fname, ocfs2_system_inode_names[i], j);
 			printf("Adding %s...  ", fname);
 			inode_num = 1000;
-			ret =  ocfs2_new_system_inode(fs, &inode_num);
+			ret =  ocfs2_new_system_inode(fs, &inode_num,
+						      0644 | S_IFREG);
 			if (ret)
 				goto bail;
 			ret = ocfs2_link(fs, fs->fs_sysdir_blkno, fname,



More information about the Ocfs2-tools-commits mailing list