Update of /cvsroot/srm/srm
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv11631
Modified Files:
NEWS TODO configure.in test.sh
Log Message:
overwrite POSIX attributes on Linux
Index: test.sh
===================================================================
RCS file: /cvsroot/srm/srm/test.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- test.sh 14 Jul 2011 07:02:27 -0000 1.8
+++ test.sh 24 Dec 2013 04:16:04 -0000 1.9
@@ -1,7 +1,9 @@
#!/bin/sh
# test script for srm
-make || exit 1
+set -e # exit if any commands fail
+
+make
SRM="src/srm -vvvvvvv"
@@ -107,7 +109,7 @@
# test file sizes
-SRM="$SRM -E"
+SRM="$SRM -s"
BS=123
SRC=/dev/zero # /dev/urandom
@@ -144,5 +146,16 @@
testsrm
done
-echo all tests successfull
+# test extended attributes
+DIR=test.test
+mkdir $DIR
+chmod +t $DIR
+FN=$DIR/test.atr
+echo "TEST" > $FN
+setfattr -n user.a1 -v "The value of extended attribute number 1" $FN
+setfattr -n user.num2 -v "A second attribute." $FN
+$SRM $FN
+rmdir $DIR
+
+echo all tests successful
exit 0
Index: NEWS
===================================================================
RCS file: /cvsroot/srm/srm/NEWS,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- NEWS 24 Dec 2013 03:07:09 -0000 1.15
+++ NEWS 24 Dec 2013 04:16:04 -0000 1.16
@@ -3,6 +3,7 @@
release-1_2_12
small updates to autotools build files.
support Haiku operating system.
+ overwrite POSIX extended attributes.
release-1_2_11
Win32 command line wildcard expansion
Index: TODO
===================================================================
RCS file: /cvsroot/srm/srm/TODO,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- TODO 24 Dec 2013 03:07:09 -0000 1.33
+++ TODO 24 Dec 2013 04:16:04 -0000 1.34
@@ -1,14 +1,12 @@
-- for srm 1.2.12
- + check ext2 special flags, unremovable, immutable, appendonly
- + FreeBSD test, check st_flags in sunlink.c
- + check with ext4 (http://ext4.wiki.kernel.org/index.php/Main_Page), jfs, xfs, reiserfs
+- check ext2 special flags, unremovable, immutable, appendonly
+- FreeBSD test, check st_flags in sunlink.c
+- check with ext4 (http://ext4.wiki.kernel.org/index.php/Main_Page), jfs, xfs, reiserfs
- make a library from sunlink.c so other programs can use the function
- use only code in lib/ on platforms which don't have these functions
- check for OS in configure.in
- only compile files in lib/ depending on platform
-- overwrite POSIX extended attributes: attr(5), listxattr, ...
- handle NTFS alternate data streams
http://www.flexhex.com/docs/articles/alternate-streams.phtml
- overwrite raw devices by using their /dev/ device node
@@ -28,6 +26,8 @@
completely and use srm instead, but problem is that only root can
write to /proc filesystem.
+- research if special erase commands for SSD are available to userspace
+
- HPux test
- Solaris test
- AIX test
Index: configure.in
===================================================================
RCS file: /cvsroot/srm/srm/configure.in,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- configure.in 24 Dec 2013 03:07:09 -0000 1.40
+++ configure.in 24 Dec 2013 04:16:04 -0000 1.41
@@ -15,7 +15,7 @@
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(sys/vfs.h sys/param.h sys/mount.h varargs.h stdarg.h linux/ext2_fs.h linux/ext3_fs.h)
+AC_CHECK_HEADERS(sys/vfs.h sys/param.h sys/mount.h varargs.h stdarg.h linux/ext2_fs.h linux/ext3_fs.h attr/xattr.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
|