summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-19 09:17:46 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-19 09:17:46 +0200
commitf39c88473be7c7ec33aa247674a3026df80b8bad (patch)
treec991183a46066e31bee1499232619008709db91e /Makefile
parent9165243f9f5fda2dfefb4625231b95860ea8672e (diff)
downloadpgfuse-f39c88473be7c7ec33aa247674a3026df80b8bad.tar.gz
pgfuse-f39c88473be7c7ec33aa247674a3026df80b8bad.tar.bz2
reimplemented truncate
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 21bf9c0..c15bab5 100644
--- a/Makefile
+++ b/Makefile
@@ -70,6 +70,15 @@ test: pgfuse testfsync testpgsql
-stat mnt/dir/dir2/clink
# show filesystem stats (statvfs)
-stat -f mnt
+ # expect success, truncate a file (grow and shrink)
+ -touch mnt/trunc
+ -ls -al mnt/trunc
+ -truncate --size 2049 mnt/trunc
+ -ls -al mnt/trunc
+ -dd if=/dev/zero of=mnt/trunc bs=512 count=10
+ -truncate --size 513 mnt/trunc
+ -ls -al mnt/trunc
+ # END: unmount FUSE file system
fusermount -u mnt
pgfuse: pgfuse.o pgsql.o