#if defined(DEBUG) || defined(XLOG_NOLOG) 
xfs_start_flags(	struct vfs		*vfs,	struct xfs_mount_args	*ap,	struct xfs_mount	*mp){	/* Values are in BBs */	if ((ap->flags & XFSMNT_NOALIGN) != XFSMNT_NOALIGN) {		/*		 * At this point the superblock has not been read		 * in, therefore we do not know the block size.		 * Before the mount call ends we will convert		 * these to FSBs.		 */		mp->m_dalign = ap->sunit;		mp->m_swidth = ap->swidth;	}	if (ap->logbufs != -1 &&#if defined(DEBUG) || defined(XLOG_NOLOG)	    ap->logbufs != 0 &&#endif	    (ap->logbufs < XLOG_MIN_ICLOGS ||	     ap->logbufs > XLOG_MAX_ICLOGS)) {		cmn_err(CE_WARN,			"XFS: invalid logbufs value: %d [not %d-%d]",			ap->logbufs, XLOG_MIN_ICLOGS, XLOG_MAX_ICLOGS);		return XFS_ERROR(EINVAL);	}	mp->m_logbufs = ap->logbufs;	if (ap->logbufsize != -1 &&	    ap->logbufsize != 16 * 1024 &&	    ap->logbufsize != 32 * 1024 &&	    ap->logbufsize != 64 * 1024 &&	    ap->logbufsize != 128 * 1024 &&	    ap->logbufsize != 256 * 1024) {		cmn_err(CE_WARN,	"XFS: invalid logbufsize: %d [not 16k,32k,64k,128k or 256k]",			ap->logbufsize);		return XFS_ERROR(EINVAL);	}	mp->m_ihsize = ap->ihashsize;	mp->m_logbsize = ap->logbufsize;	mp->m_fsname_len = strlen(ap->fsname) + 1;	mp->m_fsname = kmem_alloc(mp->m_fsname_len, KM_SLEEP);	strcpy(mp->m_fsname, ap->fsname);	if (ap->rtname[0]) {		mp->m_rtname = kmem_alloc(strlen(ap->rtname) + 1, KM_SLEEP);		strcpy(mp->m_rtname, ap->rtname);	}	if (ap->logname[0]) {		mp->m_logname = kmem_alloc(strlen(ap->logname) + 1, KM_SLEEP);		strcpy(mp->m_logname, ap->logname);	}	if (ap->flags & XFSMNT_WSYNC)		mp->m_flags |= XFS_MOUNT_WSYNC;#if XFS_BIG_INUMS	if (ap->flags & XFSMNT_INO64) {		mp->m_flags |= XFS_MOUNT_INO64;		mp->m_inoadd = XFS_INO64_OFFSET;	}#endif	if (ap->flags & XFSMNT_NOATIME)		mp->m_flags |= XFS_MOUNT_NOATIME;	if (ap->flags & XFSMNT_RETERR)		mp->m_flags |= XFS_MOUNT_RETERR;	if (ap->flags & XFSMNT_NOALIGN)		mp->m_flags |= XFS_MOUNT_NOALIGN;	if (ap->flags & XFSMNT_SWALLOC)		mp->m_flags |= XFS_MOUNT_SWALLOC;	if (ap->flags & XFSMNT_OSYNCISOSYNC)		mp->m_flags |= XFS_MOUNT_OSYNCISOSYNC;	if (ap->flags & XFSMNT_32BITINODES)		mp->m_flags |= XFS_MOUNT_32BITINODES;	if (ap->flags & XFSMNT_IOSIZE) {		if (ap->iosizelog > XFS_MAX_IO_LOG ||		    ap->iosizelog < XFS_MIN_IO_LOG) {			cmn_err(CE_WARN,		"XFS: invalid log iosize: %d [not %d-%d]",				ap->iosizelog, XFS_MIN_IO_LOG,				XFS_MAX_IO_LOG);			return XFS_ERROR(EINVAL);		}		mp->m_flags |= XFS_MOUNT_DFLT_IOSIZE;		mp->m_readio_log = mp->m_writeio_log = ap->iosizelog;	}	if (ap->flags & XFSMNT_IHASHSIZE)		mp->m_flags |= XFS_MOUNT_IHASHSIZE;	if (ap->flags & XFSMNT_IDELETE)		mp->m_flags |= XFS_MOUNT_IDELETE;	if (ap->flags & XFSMNT_DIRSYNC)		mp->m_flags |= XFS_MOUNT_DIRSYNC;	if (ap->flags & XFSMNT_COMPAT_ATTR)		mp->m_flags |= XFS_MOUNT_COMPAT_ATTR;	if (ap->flags2 & XFSMNT2_COMPAT_IOSIZE)		mp->m_flags |= XFS_MOUNT_COMPAT_IOSIZE;	/*	 * no recovery flag requires a read-only mount	 */	if (ap->flags & XFSMNT_NORECOVERY) {		if (!(vfs->vfs_flag & VFS_RDONLY)) {			cmn_err(CE_WARN,	"XFS: tried to mount a FS read-write without recovery!");			return XFS_ERROR(EINVAL);		}		mp->m_flags |= XFS_MOUNT_NORECOVERY;	}	if (ap->flags & XFSMNT_NOUUID)		mp->m_flags |= XFS_MOUNT_NOUUID;	if (ap->flags & XFSMNT_BARRIER)		mp->m_flags |= XFS_MOUNT_BARRIER;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/cfcbbbd089eadcaa86abb2c0f352e1ab23e16f72/xfs_vfsops.c/clean/fs/xfs/xfs_vfsops.c