Files
xen/tools/xenstore/testsuite/03write.test
T
cl349@firebug.cl.cam.ac.uk 7fd9bccce2 Remove iflag argument to xs_write
xs_write with O_CREAT|O_EXCL causes problems over daemon restarts, since
it's not idempotent.
It turns out noone really needs the flags word at all, so get rid of it.
It's now as if everyone specified "O_CREAT".
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-19 14:34:30 +00:00

29 lines
421 B
Plaintext

# Write succeeds
write /test contents
expect contents
read /test
# Overwrite succeeds.
write /test contents2
expect contents2
read /test
# Write should implicitly create directories
write /dir/test contents
expect test
dir /dir
expect contents
read /dir/test
write /dir/1/2/3/4 contents4
expect test
expect 1
dir /dir
expect 2
dir /dir/1
expect 3
dir /dir/1/2
expect 4
dir /dir/1/2/3
expect contents4
read /dir/1/2/3/4