summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-15 16:58:29 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-15 16:58:29 +0000
commitdc2c00fee99e8a6bc1f7033b50a672ba36e88304 (patch)
treeede8eca48a1c7ef83f3cc6741ab178d290221873 /libdiskfs
parentfa6fb59ee494851cf2b57311084db755167ffa70 (diff)
(diskfs_init_dir): Implement diskfs_synchronous.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/dir-init.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libdiskfs/dir-init.c b/libdiskfs/dir-init.c
index 21ea7e3c..04c1379c 100644
--- a/libdiskfs/dir-init.c
+++ b/libdiskfs/dir-init.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1995 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -46,6 +46,8 @@ diskfs_init_dir (struct node *dp, struct node *pdp, struct protid *cred)
{
dp->dn_stat.st_nlink--;
dp->dn_set_ctime = 1;
+ if (diskfs_synchronous)
+ diskfs_file_update (dp, 1);
return err;
}
@@ -58,8 +60,15 @@ diskfs_init_dir (struct node *dp, struct node *pdp, struct protid *cred)
{
pdp->dn_stat.st_nlink--;
pdp->dn_set_ctime = 1;
+ if (diskfs_synchronous)
+ {
+ diskfs_node_update (pdp, 1);
+ diskfs_file_update (dp, 1);
+ }
return err;
}
+ if (diskfs_synchronous)
+ diskfs_node_update (pdp, 1);
diskfs_node_update (dp, 1);
return 0;
}