diff options
author | Michael I. Bushnell <mib@gnu.org> | 1993-12-16 20:37:27 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1993-12-16 20:37:27 +0000 |
commit | 0a5915a478c0befe9af4a2621caacb16a39ffba6 (patch) | |
tree | 4945861d58cb9c4d4b21e646e912f764aa4e7684 /fstests/fstests.c | |
parent | a7f569b8a11578a91c248b78afe775ca210e17b3 (diff) |
Formerly fstests.c.~9~
Diffstat (limited to 'fstests/fstests.c')
-rw-r--r-- | fstests/fstests.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fstests/fstests.c b/fstests/fstests.c index 869a20c0..85d5db67 100644 --- a/fstests/fstests.c +++ b/fstests/fstests.c @@ -43,6 +43,7 @@ main () root = _hurd_ports[INIT_PORT_CRDIR].port; stdout = mach_open_devstream (_hurd_init_dtable[1], "w"); +#if 0 if ((err = dir_unlink (root, "CREATED")) && err != ENOENT) printf ("Error on unlink: %d\n", err); else if (err = dir_pathtrans (root, "CREATED", O_WRITE | O_CREAT, 0666, @@ -54,6 +55,12 @@ main () printf ("Short write: %d\n", written); else if (err = file_syncfs (filetowrite, 1, 0)) printf ("Error on sync: %d\n", err); +#endif + + if (err = dir_rename (root, "CREATED", root, "newname")) + printf ("Error on rename %d\n", err); + + file_syncfs (root, 1, 0); printf ("All done.\n"); malloc (0); |