From 9dc896c9de2e08b9a71c1a95d836890eac14bc55 Mon Sep 17 00:00:00 2001 From: pooka Date: Fri, 3 Aug 2007 13:00:19 +0000 Subject: [PATCH] Set mnt_fs_bshift and mnt_dev_bshift to reasonable dummy-values. --- sys/fs/tmpfs/tmpfs_vfsops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index bd4e33090747..e53655338ea9 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: tmpfs_vfsops.c,v 1.26 2007/07/31 21:14:18 pooka Exp $ */ +/* $NetBSD: tmpfs_vfsops.c,v 1.27 2007/08/03 13:00:19 pooka Exp $ */ /* * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. @@ -49,7 +49,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tmpfs_vfsops.c,v 1.26 2007/07/31 21:14:18 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tmpfs_vfsops.c,v 1.27 2007/08/03 13:00:19 pooka Exp $"); #include #include @@ -178,6 +178,8 @@ tmpfs_mount(struct mount *mp, const char *path, void *data, size_t *data_len, mp->mnt_data = tmp; mp->mnt_flag |= MNT_LOCAL; mp->mnt_stat.f_namemax = MAXNAMLEN; + mp->mnt_fs_bshift = PAGE_SHIFT; + mp->mnt_dev_bshift = DEV_BSHIFT; vfs_getnewfsid(mp); return set_statvfs_info(path, UIO_USERSPACE, "tmpfs", UIO_SYSSPACE,