lkml.org 
[lkml]   [2007]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectfsx failure on ufs2
Hello,

For an embedded system, I'm currently evaluating the robustness of ufs2
write support on Linux, and my very first test, with fsx, shows serious
problems.

My test bed is a single CPU PC with a single IDE disk, that boots FreeBSD
6.2 and Ubuntu 7.10. The kernel on Ubuntu is a vanilla 2.6.23.9 with UFS2
write support. fsx is from the freebsd cvs (with a small patch to build on
Linux, see after my sig):
http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/regression/fsx/

The test is as follows:

# mount -t ufs -o ufstype=ufs2 /dev/sda10 /mnt
(Yes, /dev/sda but it's really IDE.)

$ ./fsx -c100 -N 100000 /mnt/test_fsx

fsx exits in error, after producing the following files:

-rw-r--r-- 1 foo foo 196256 2007-12-14 16:56 test_fsx
-rw-r--r-- 1 foo foo 196256 2007-12-14 16:56 test_fsx.fsxgood
-rw-r--r-- 1 foo foo 63167 2007-12-14 16:56 test_fsx.fsxlog

The file test_fsx.fsxgood contains what fsx expected to be in test_fsx;
the files differ only in the last 4K chunk (it seems there should be only
zeroes, but it's not so).

There does not seem to be any problem with ext3.

Can anyone else confirm this problem?


Cheers,

--
Jean-Marc Saffroy - Silicomp / Orange Business Services
mailto:jean-marc.saffroy@orange-ftgroup.com

Trivial patch for fsx.

diff -r 6888f21e18de -r 1aa7894fc4f8 fsx.c
--- a/fsx.c Thu Dec 13 17:51:02 2007 +0100
+++ b/fsx.c Thu Dec 13 17:52:08 2007 +0100
@@ -61,6 +61,8 @@
#include <unistd.h>
#include <stdarg.h>
#include <errno.h>
+#include <stdint.h>
+#include <time.h>

#define NUMPRINTCOLUMNS 32 /* # columns of data to print on each line */


\
 
 \ /
  Last update: 2007-12-14 17:59    [W:0.054 / U:2.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site