[Bug 1871] [rfs] opening file with O_WRONL|O_APPEND doesn't work as expect

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Sun Aug 7 15:23:34 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1871

--- Comment #2 from Xiang Cui <medivhc at gmail.com> 2011-08-07 10:23:33 CDT ---
RFS fails in fsrdwr test in fstests.


101    * Open the file using O_APPEND and write the data
102    */
103   memset (readbuf, 0, len + 1);
104   fd = open (name01, O_WRONLY | O_APPEND);
105   pos = lseek (fd, 0, SEEK_CUR);
106   n = write (fd, databuf, len);
107
108   /*
109    *  After writing n bytes data, the current position here is 2 * len
110    */
111   rtems_test_assert (n == len);
112   pos = lseek (fd, 0, SEEK_CUR);
113   rtems_test_assert (pos == 2 * len);

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list