summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-08-24 15:47:48 +0000
committerMiles Bader <miles@gnu.org>1995-08-24 15:47:48 +0000
commitbf0aa813c42afa2fd542399c335aa4ee0461b318 (patch)
treead9339d4388b07f0fcd7742da5e61f88d602e279
parent5e49cf795ec76f0fcca4807934ca103da37cb11d (diff)
(trivfs_goaway, trivfs_modify_stat): Update arguments.
(trivfs_modify_stat): Get the device from CRED now that we have it.
-rw-r--r--devio/devio.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/devio/devio.c b/devio/devio.c
index 13e98b90..7adae2f0 100644
--- a/devio/devio.c
+++ b/devio/devio.c
@@ -249,11 +249,12 @@ int trivfs_support_exec = 0;
int trivfs_allow_open = O_READ | O_WRITE;
void
-trivfs_modify_stat (struct stat *st)
+trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st)
{
- struct dev *dev = device;
+ struct dev *dev = cred->po->hook;
if (dev)
+ /* An open device. */
{
vm_size_t size = dev->size;
@@ -285,15 +286,11 @@ trivfs_modify_stat (struct stat *st)
}
error_t
-trivfs_goaway (int flags, mach_port_t realnode,
- struct port_class *fsys_port_class,
- struct port_class *file_port_class)
+trivfs_goaway (struct trivfs_control *fsys, int flags)
{
int force = (flags & FSYS_GOAWAY_FORCE);
int nosync = (flags & FSYS_GOAWAY_NOSYNC);
- DEBUG(fprintf(debug, "trivfs_goaway(0x%x, %d)\n", flags, realnode));
-
mutex_lock(&device_lock);
if (device == NULL)