diff options
author | Miles Bader <miles@gnu.org> | 1995-08-24 15:47:48 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-08-24 15:47:48 +0000 |
commit | bf0aa813c42afa2fd542399c335aa4ee0461b318 (patch) | |
tree | ad9339d4388b07f0fcd7742da5e61f88d602e279 /devio/devio.c | |
parent | 5e49cf795ec76f0fcca4807934ca103da37cb11d (diff) |
(trivfs_goaway, trivfs_modify_stat): Update arguments.
(trivfs_modify_stat): Get the device from CRED now that we have it.
Diffstat (limited to 'devio/devio.c')
-rw-r--r-- | devio/devio.c | 11 |
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) |