mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Transactions no longer take root dir, no longer lock & block: commit can fail spuriously with EAGAIN, not ETIMEDOUT. Speeds up transactions by over 1000 times, should be NFS safe. New program: xs_tdb_dump to dump raw TDB contents. Don't do failure testing: we are no longer robust against all ENOMEM 8( Introduce "struct node" which contains perms, children and data. Make struct xs_permissions unpadded, so we can write to tdb w/o valgrind complaints. Gently modify TDB to use talloc, not do alloc on tdb_delete. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
21 lines
342 B
Plaintext
21 lines
342 B
Plaintext
# Remove non-existant is OK, as long as parent exists
|
|
rm /test
|
|
expect rm failed: No such file or directory
|
|
rm /dir/test
|
|
|
|
# Create file and remove it
|
|
write /test contents
|
|
rm /test
|
|
expect tool
|
|
dir /
|
|
|
|
# Create directory and remove it.
|
|
mkdir /dir
|
|
rm /dir
|
|
|
|
# Create directory, create file, remove all.
|
|
mkdir /dir
|
|
write /dir/test contents
|
|
rm /dir
|
|
|