From f6063d391372b19a07b85ae240384ac40e11742a Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 24 Aug 1995 15:47:48 +0000 Subject: (trivfs_goaway, trivfs_modify_stat): Update arguments. (trivfs_modify_stat): Get the device from CRED now that we have it. --- devio/devio.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'devio') 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) -- cgit v1.2.3