mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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>
29 lines
421 B
Plaintext
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
|