change log for rtems (2010-08-10)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Aug 10 18:11:40 UTC 2010


 *joel*:
2010-08-10	Bharath Suri <bharath.s.jois at gmail.com>

	PR 1663/testing
	* spmkdir/init.c: New cases to get the error path in rtems_mkdir
	routine.

M  1.414  testsuites/sptests/ChangeLog
M    1.2  testsuites/sptests/spmkdir/init.c

diff -u rtems/testsuites/sptests/ChangeLog:1.413 rtems/testsuites/sptests/ChangeLog:1.414
--- rtems/testsuites/sptests/ChangeLog:1.413	Mon Aug  9 09:29:36 2010
+++ rtems/testsuites/sptests/ChangeLog	Tue Aug 10 12:34:12 2010
@@ -1,3 +1,9 @@
+2010-08-10	Bharath Suri <bharath.s.jois at gmail.com>
+
+	PR 1663/testing
+	* spmkdir/init.c: New cases to get the error path in rtems_mkdir
+	routine.
+
 2010-08-09	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	PR 1661/testing

diff -u rtems/testsuites/sptests/spmkdir/init.c:1.1 rtems/testsuites/sptests/spmkdir/init.c:1.2
--- rtems/testsuites/sptests/spmkdir/init.c:1.1	Tue Jun  8 08:22:58 2010
+++ rtems/testsuites/sptests/spmkdir/init.c	Tue Aug 10 12:34:12 2010
@@ -64,6 +64,12 @@
   test_mkdir("a/b/c/4", S_IRWXO, 0);
   test_mkdir("a/b", omode, 0);
   test_mkdir("a", omode, 0);
+  test_mkdir("a/b/x", S_IRUSR, 0);
+  test_mkdir("a/b/x/y", S_IRUSR, -1);
+  
+  rv = mknod("a/n", S_IRWXU | S_IFREG, 0LL);
+
+  test_mkdir("a/n/b", S_IRUSR, -1);
 
   rv = open ("b", O_CREAT | O_RDONLY, omode);
   rtems_test_assert(rv >= 0);


 *joel*:
2010-08-09	Bharath Suri <bharath.s.jois at gmail.com>

	PR 1660/filesystem
	* libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed
	int pipe_release to void pipe_release.
	* libfs/src/imfs/imfs_fifo.c: Corresponding change to
	IMFS_fifo_close since pipe_release does not return any error.
	* libfs/src/imfs/imfs_initsupp.c: Changes to improve
	IMFS_determine_bytes_per_block

M 1.2558  cpukit/ChangeLog
M    1.7  cpukit/libfs/src/imfs/imfs_fifo.c
M   1.24  cpukit/libfs/src/imfs/imfs_initsupp.c
M   1.11  cpukit/libfs/src/pipe/fifo.c
M    1.6  cpukit/libfs/src/pipe/pipe.h
M   1.81  cpukit/score/include/rtems/score/object.h
M    1.8  cpukit/score/src/objectgetinfo.c
M   1.19  cpukit/score/src/objectinitializeinformation.c

diff -u rtems/cpukit/ChangeLog:1.2557 rtems/cpukit/ChangeLog:1.2558
--- rtems/cpukit/ChangeLog:1.2557	Tue Aug 10 08:15:30 2010
+++ rtems/cpukit/ChangeLog	Tue Aug 10 12:41:29 2010
@@ -1,3 +1,13 @@
+2010-08-09	Bharath Suri <bharath.s.jois at gmail.com>
+
+	PR 1660/filesystem
+	* libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed
+	int pipe_release to void pipe_release.
+	* libfs/src/imfs/imfs_fifo.c: Corresponding change to
+	IMFS_fifo_close since pipe_release does not return any error.
+	* libfs/src/imfs/imfs_initsupp.c: Changes to improve
+	IMFS_determine_bytes_per_block
+
 2010-08-10	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	PR 1661/testing

diff -u rtems/cpukit/libfs/src/imfs/imfs_fifo.c:1.6 rtems/cpukit/libfs/src/imfs/imfs_fifo.c:1.7
--- rtems/cpukit/libfs/src/imfs/imfs_fifo.c:1.6	Thu Jul 15 03:10:48 2010
+++ rtems/cpukit/libfs/src/imfs/imfs_fifo.c	Tue Aug 10 12:41:31 2010
@@ -49,15 +49,14 @@
   rtems_libio_t *iop
 )
 {
+  int err = 0;
   IMFS_jnode_t *jnode = iop->pathinfo.node_access;
 
-  int err = pipe_release(&JNODE2PIPE(jnode), iop);
-
-  if (err == 0) {
-    iop->flags &= ~LIBIO_FLAGS_OPEN;
-    IMFS_check_node_remove(jnode);
-  }
+  pipe_release(&JNODE2PIPE(jnode), iop);
 
+  iop->flags &= ~LIBIO_FLAGS_OPEN;
+  IMFS_check_node_remove(jnode);
+  
   IMFS_FIFO_RETURN(err);
 }
 

diff -u rtems/cpukit/libfs/src/imfs/imfs_initsupp.c:1.23 rtems/cpukit/libfs/src/imfs/imfs_initsupp.c:1.24
--- rtems/cpukit/libfs/src/imfs/imfs_initsupp.c:1.23	Thu Jun 24 16:31:22 2010
+++ rtems/cpukit/libfs/src/imfs/imfs_initsupp.c	Tue Aug 10 12:41:32 2010
@@ -48,7 +48,10 @@
   for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
     if (bit_mask == requested_bytes_per_block) {
       is_valid = true;
+      break;
     }
+    if(bit_mask > requested_bytes_per_block)
+      break;
   }
   *dest_bytes_per_block = ((is_valid)
 			   ? requested_bytes_per_block

diff -u rtems/cpukit/libfs/src/pipe/fifo.c:1.10 rtems/cpukit/libfs/src/pipe/fifo.c:1.11
--- rtems/cpukit/libfs/src/pipe/fifo.c:1.10	Mon Aug  2 13:27:23 2010
+++ rtems/cpukit/libfs/src/pipe/fifo.c	Tue Aug 10 12:41:32 2010
@@ -241,7 +241,7 @@
  * *pipep points to pipe control structure. When the last user releases pipe,
  * it will be set to NULL.
  */
-int pipe_release(
+void pipe_release(
   pipe_control_t **pipep,
   rtems_libio_t *iop
 )
@@ -286,17 +286,16 @@
 
 #if 0
   if (! delfile)
-    return 0;
+    return;
   if (iop->pathinfo.ops->unlink_h == NULL)
-    return 0;
+    return;
 
   /* This is safe for IMFS, but how about other FSes? */
   iop->flags &= ~LIBIO_FLAGS_OPEN;
   if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
-    return -errno;
+    return;
 #endif
 
-  return 0;
 }
 
 /*

diff -u rtems/cpukit/libfs/src/pipe/pipe.h:1.5 rtems/cpukit/libfs/src/pipe/pipe.h:1.6
--- rtems/cpukit/libfs/src/pipe/pipe.h:1.5	Mon Jun 14 00:49:44 2010
+++ rtems/cpukit/libfs/src/pipe/pipe.h	Tue Aug 10 12:41:32 2010
@@ -52,7 +52,7 @@
  * *pipep points to pipe control structure. When the last user releases pipe,
  * it will be set to NULL.
  */
-extern int pipe_release(
+extern void pipe_release(
   pipe_control_t **pipep,
   rtems_libio_t *iop
 );

diff -u rtems/cpukit/score/include/rtems/score/object.h:1.80 rtems/cpukit/score/include/rtems/score/object.h:1.81
--- rtems/cpukit/score/include/rtems/score/object.h:1.80	Thu Jun 17 23:21:19 2010
+++ rtems/cpukit/score/include/rtems/score/object.h	Tue Aug 10 12:41:32 2010
@@ -476,7 +476,7 @@
 void _Objects_Initialize_information (
   Objects_Information *information,
   Objects_APIs         the_api,
-  uint32_t             the_class,
+  uint16_t             the_class,
   uint32_t             maximum,
   uint16_t             size,
   bool                 is_string,
@@ -754,7 +754,7 @@
  */
 Objects_Information *_Objects_Get_information(
   Objects_APIs   the_api,
-  uint32_t       the_class
+  uint16_t       the_class
 );
 
 /**

diff -u rtems/cpukit/score/src/objectgetinfo.c:1.7 rtems/cpukit/score/src/objectgetinfo.c:1.8
--- rtems/cpukit/score/src/objectgetinfo.c:1.7	Wed Jul  8 12:56:07 2009
+++ rtems/cpukit/score/src/objectgetinfo.c	Tue Aug 10 12:41:32 2010
@@ -20,7 +20,7 @@
 
 Objects_Information *_Objects_Get_information(
   Objects_APIs   the_api,
-  uint32_t       the_class
+  uint16_t       the_class
 )
 {
   Objects_Information *info;

diff -u rtems/cpukit/score/src/objectinitializeinformation.c:1.18 rtems/cpukit/score/src/objectinitializeinformation.c:1.19
--- rtems/cpukit/score/src/objectinitializeinformation.c:1.18	Wed Mar 10 12:15:33 2010
+++ rtems/cpukit/score/src/objectinitializeinformation.c	Tue Aug 10 12:41:32 2010
@@ -49,7 +49,7 @@
 void _Objects_Initialize_information(
   Objects_Information *information,
   Objects_APIs         the_api,
-  uint32_t             the_class,
+  uint16_t             the_class,
   uint32_t             maximum,
   uint16_t             size,
   bool                 is_string,



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100810/ff80829c/attachment-0001.html>


More information about the vc mailing list