Lines Matching defs:error
144 int error;
149 if (error = ffs_mountfs(rvp, mp, context))
150 return (error);
169 int error = 0, flags;
193 if (error = ffs_flushfiles(mp, flags, p))
194 return (error);
197 if (error = ffs_sbupdate(ump, MNT_WAIT)) {
200 return (error);
208 (error = ffs_reload(mp, vfs_context_ucred(context), p)))
209 return (error);
240 error = ffs_mountfs(devvp, mp, context);
243 error = EINVAL; /* needs translation */
245 if (error) {
246 return (error);
262 int error;
291 if (args->error = (int)buf_bread(args->devvp, (daddr64_t)((unsigned)fsbtodb(fs, ino_to_fsba(fs, ip->i_number))),
335 int i, blks, size, error;
356 if (error = (int)buf_bread(devvp, (daddr64_t)((unsigned)(SBOFF/size)), SBSIZE, NOCRED,&bp)) {
358 return (error);
363 error = byte_swap_sbin(newfs);
364 if (error) {
366 return (error);
411 if (error = (int)buf_bread(devvp, (daddr64_t)((unsigned)fsbtodb(fs, fs->fs_csaddr + i)), size,
414 return (error);
447 args.error = 0;
457 return (args.error);
477 int error, i, blks, ronly;
498 error = ENXIO;
502 if (error = (int)buf_bread(devvp, (daddr64_t)((unsigned)(SBOFF/size)),
513 error = EINVAL;
516 if (error = byte_swap_sbin(fs))
522 error = EINVAL; /* XXX needs translation */
534 error = EINVAL; /* XXX needs translation */
539 error = EINVAL;
565 error = ENOTSUP;
590 error = EROFS; /* needs translation */
600 if (error = (int)buf_bread (devvp, (daddr64_t)((unsigned)fsbtodb(fs, cgtod(fs, 0))),
652 error = EINVAL;
656 error = EINVAL;
664 error = EINVAL;
670 error = EINVAL;
680 if (error = (int)buf_bread(devvp, (daddr64_t)((unsigned)fsbtodb(fs, fs->fs_csaddr + i)),
747 return (error);
790 int error, flags;
799 if ( (error = ffs_flushfiles(mp, flags, p)) && !force )
800 return (error);
806 if (error = ffs_sbupdate(ump, MNT_WAIT)) {
814 return (error);
834 int i, error;
860 error = vflush(mp, rootvp, SKIPSYSTEM|flags);
868 if ((error == 0) &&
870 error = EBUSY; /* root dir is still open */
874 if (error && (flags & FORCECLOSE) == 0)
875 return (error);
888 error = vflush(mp, NULLVP, SKIPSWAP|flags);
889 error = vflush(mp, NULLVP, flags);
890 return (error);
933 int bs, error, length;
962 if (error = (int)buf_meta_bread(devvp,
967 return (error);
1084 int bs, error;
1093 if (error = buf_meta_bread(devvp,
1098 return (error);
1141 int error;
1150 int error;
1157 error = VNOP_FSYNC(vp, args->waitfor, args->context);
1159 if (error)
1160 args->error = error;
1183 int error, allerror = 0;
1196 args.error = 0;
1204 if (args.error)
1205 allerror = args.error;
1210 if (error = VNOP_FSYNC(ump->um_devvp, waitfor, context))
1211 allerror = error;
1222 if (error = ffs_sbupdate(ump, waitfor))
1223 allerror = error;
1265 int i, type, error = 0;
1320 if (error = (int)buf_bread(ump->um_devvp, (daddr64_t)((unsigned)fsbtodb(fs, ino_to_fsba(fs, ino))),
1344 error = ESTALE;
1347 error = ENOENT;
1387 if ((error = vnode_create(VNCREATE_FLAVOR, VCREATESIZE, &vfsp, &vp)))
1442 return (error);
1465 int error;
1475 error = ffs_vget_internal(mp, ino, &nvp, NULL, NULL, 0, 1);
1476 if (error) {
1478 return (error);
1567 int i, size, error, allerror = 0;
1593 else if (error = (int)buf_bwrite(bp))
1594 allerror = error;
1644 else if (error = (int)buf_bwrite(bp))
1645 allerror = error;