From 2124d625637097aa2e4d9cfee5e15c9a444a351b Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Fri, 7 Sep 2001 05:00:05 +0000 Subject: [PATCH] macosx-dont-interfere-with-cd-audio-20010906 don't use constant VT_AFS for our vfs type --- src/afs/DARWIN/osi_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/afs/DARWIN/osi_module.c b/src/afs/DARWIN/osi_module.c index 322a46b22..70ec8aee2 100644 --- a/src/afs/DARWIN/osi_module.c +++ b/src/afs/DARWIN/osi_module.c @@ -17,6 +17,7 @@ extern int afs3_syscall(); extern int ioctl(); extern int setgroups(); +extern int maxvfsconf; kern_return_t afs_modload(struct kmod_info *ki, void *data) { if (sysent[AFS_SYSCALL].sy_call != nosys) { @@ -26,7 +27,7 @@ kern_return_t afs_modload(struct kmod_info *ki, void *data) memset(&afs_vfsconf, 0, sizeof(struct vfsconf)); strcpy(afs_vfsconf.vfc_name, "afs"); afs_vfsconf.vfc_vfsops=&afs_vfsops; - afs_vfsconf.vfc_typenum=VT_AFS; + afs_vfsconf.vfc_typenum=maxvfsconf++;/* oddly not VT_AFS */ afs_vfsconf.vfc_flags=MNT_NODEV; if (vfsconf_add(&afs_vfsconf)) { printf("AFS: vfsconf_add failed. aborting\n"); -- 2.39.5