OpenBSD CVS

CVS log for src/sys/ntfs/ntfs_vfsops.c


[BACK] Up to [local] / src / sys / ntfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 11 03:13:59 2022 UTC (2 years, 4 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

spelling
ok jmc@

Revision 1.64 / (download) - annotate - [select for diffs], Thu Feb 27 09:10:31 2020 UTC (4 years, 3 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.63: +10 -10 lines
Diff to previous 1.63 (colored)

Remove unused "struct proc *" argument from the following functions:

- ufs_chown() & ufs_chmod()
- ufs_reclaim()
- ext2fs_chown() & ext2fs_chmod()
- ntfs_ntget() & ntfs_ntput()
- ntfs_vgetex(), ntfs_ntlookup() & ntfs_ntlookupfile()

While here use `ap->a_p' directly when it is only required to re-enter
the VFS layer in order to help reducing the loop.

ok visa@

Revision 1.63 / (download) - annotate - [select for diffs], Thu Dec 26 13:28:49 2019 UTC (4 years, 5 months ago) by bluhm
Branch: MAIN
Changes since 1.62: +14 -14 lines
Diff to previous 1.62 (colored)

Convert struct vfsops initializer to C99 style.
OK visa@

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jul 25 01:43:21 2019 UTC (4 years, 10 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

vinvalbuf(9): tlseep -> tsleep_nsec(9); ok millert@

Revision 1.61 / (download) - annotate - [select for diffs], Sun May 27 06:02:15 2018 UTC (6 years ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Drop unnecessary `p' parameter from vget(9).

OK mpi@

Revision 1.60 / (download) - annotate - [select for diffs], Wed May 2 02:24:56 2018 UTC (6 years, 1 month ago) by visa
Branch: MAIN
Changes since 1.59: +5 -5 lines
Diff to previous 1.59 (colored)

Remove proc from the parameters of vn_lock(). The parameter is
unnecessary because curproc always does the locking.

OK mpi@

Revision 1.59 / (download) - annotate - [select for diffs], Sat Apr 28 03:13:05 2018 UTC (6 years, 1 month ago) by visa
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is always
curproc that does the locking or unlocking, so the proc parameter
is pointless and can be dropped.

OK mpi@, deraadt@

Revision 1.58 / (download) - annotate - [select for diffs], Sat Feb 10 05:24:23 2018 UTC (6 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Syncronize filesystems to disk when suspending.  Each mountpoint's vnodes
are pushed to disk.  Dangling vnodes (unlinked files still in use) and
vnodes undergoing change by long-running syscalls are identified -- and
such filesystems are marked dirty on-disk while we are suspended (in case
power is lost, a fsck will be required).  Filesystems without dangling or
busy vnodes are marked clean, resulting in faster boots following
"battery died" circumstances.
Tested by numerous developers, thanks for the feedback.

Revision 1.57 / (download) - annotate - [select for diffs], Mon Dec 11 05:27:40 2017 UTC (6 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.56: +8 -13 lines
Diff to previous 1.56 (colored)

In uvm Chuck decided backing store would not be allocated proactively
for blocks re-fetchable from the filesystem.  However at reboot time,
filesystems are unmounted, and since processes lack backing store they
are killed. Since the scheduler is still running, in some cases init is
killed... which drops us to ddb [noted by bluhm].  Solution is to convert
filesystems to read-only [proposed by kettenis]. The tale follows:
sys_reboot() should pass proc * to MD boot() to vfs_shutdown() which
completes current IO with vfs_busy VB_WRITE|VB_WAIT, then calls VFS_MOUNT()
with MNT_UPDATE | MNT_RDONLY, soon teaching us that *fs_mount() calls a
copyin() late... so store the sizes in vfsconflist[] and move the copyin()
to sys_mount()... and notice nfs_mount copyin() is size-variant, so kill
legacy struct nfs_args3.  Next we learn ffs_mount()'s MNT_UPDATE code is
sharp and rusty especially wrt softdep, so fix some bugs adn add
~MNT_SOFTDEP to the downgrade.  Some vnodes need a little more help,
so tie them to &dead_vnops.

ffs_mount calling DIOCCACHESYNC is causing a bit of grief still but
this issue is seperate and will be dealt with in time.
couple hundred reboots by bluhm and myself, advice from guenther and
others at the hut

Revision 1.56 / (download) - annotate - [select for diffs], Mon Mar 20 16:44:03 2017 UTC (7 years, 2 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.55: +24 -11 lines
Diff to previous 1.55 (colored)

Read the free clusters bitmap in 1MB chunks

instead of trying to read it in one go and panic in malloc(9) with large
NTFS filesystems.  panic reported and fix tested by landry@

Revision 1.55 / (download) - annotate - [select for diffs], Wed Sep 7 17:30:12 2016 UTC (7 years, 9 months ago) by natano
Branch: MAIN
Changes since 1.54: +1 -13 lines
Diff to previous 1.54 (colored)

Remove usermount remnants. ok tedu

Revision 1.54 / (download) - annotate - [select for diffs], Thu Sep 1 08:40:39 2016 UTC (7 years, 9 months ago) by natano
Branch: MAIN
Changes since 1.53: +7 -11 lines
Diff to previous 1.53 (colored)

Remove the unused ntfs write code. ok benno beck

Revision 1.53 / (download) - annotate - [select for diffs], Sat Aug 13 20:53:17 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Eliminate pointless casts to qaddr_t of a value being assigned to a void*

ok kettenis@ krw@ natano@ dlg@ espie@

Revision 1.52 / (download) - annotate - [select for diffs], Sun Jun 19 11:54:33 2016 UTC (7 years, 11 months ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Remove the lockmgr() API. It is only used by filesystems, where it is a
trivial change to use rrw locks instead. All it needs is LK_* defines
for the RW_* flags.

tested by naddy and sthen on package building infrastructure
input and ok jmc mpi tedu

Revision 1.51 / (download) - annotate - [select for diffs], Sun May 22 20:27:04 2016 UTC (8 years ago) by bluhm
Branch: MAIN
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 (colored)

When pulling an msdos formated umass stick during mount while the
usb stack was busy, the kernel could trigger an uvm fault.  There
is a race between vop_generic_revoke() and sys_mount() where vgonel()
could reset v_specinfo.  Then v_specmountpoint is no longer valid.
So after sleeping, msdosfs_mountfs() could crash in the error path.
The code in the different *_mountfs() functions was inconsistent,
implement the same check everywhere.
OK krw@ natano@

Revision 1.50 / (download) - annotate - [select for diffs], Tue Apr 26 18:37:03 2016 UTC (8 years, 1 month ago) by natano
Branch: MAIN
Changes since 1.49: +4 -10 lines
Diff to previous 1.49 (colored)

Populate all necessary statfs members in .vfs_statfs. cd9660, udf,
msdosfs and nfsv2 don't set f_namemax. ntfs and ext2fs don't set
f_namemeax and f_favail. fusefs doesn't set f_mntfromspec, f_favail and
f_iosize. Also, make all filesystems use copy_statfs_info(), so that all
statfs information is filled in correctly for the (sb != &mp->mnt-stat)
case.

ok stefan

Revision 1.49 / (download) - annotate - [select for diffs], Sun Mar 27 11:39:37 2016 UTC (8 years, 2 months ago) by bluhm
Branch: MAIN
Changes since 1.48: +4 -6 lines
Diff to previous 1.48 (colored)

When pulling and unmounting an umass USB stick, the file system
could end up in an inconsistent state.  The fstype dependent
mp->mnt_data was NULL, but the general mp was still listed as a
valid mount point.  Next access to the file system would crash with
a NULL pointer dereference.
If closing the device fails, the mount point must go away anyway.
There is nothing we can do about it.  Remove the workaround for the
EIO error in the general unmount code, but do not generate any error
in the file system specific unmount functions.
OK natano@ beck@

Revision 1.48 / (download) - annotate - [select for diffs], Sat Mar 19 12:04:16 2016 UTC (8 years, 2 months ago) by natano
Branch: MAIN
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Remove the unused flags argument from VOP_UNLOCK().

torture tested on amd64, i386 and macppc
ok beck mpi stefan
"the change looks right" deraadt

Revision 1.47 / (download) - annotate - [select for diffs], Thu Mar 17 18:52:31 2016 UTC (8 years, 2 months ago) by bluhm
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Set mnt_data to NULL after freeing the file system specific mount point.
OK krw@ natano@ as part of a larger diff

Revision 1.46 / (download) - annotate - [select for diffs], Sat Mar 5 20:40:05 2016 UTC (8 years, 3 months ago) by natano
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

ntfs populates ntfs_args, not msdosfs_args; ok espie@

Revision 1.45 / (download) - annotate - [select for diffs], Sat Feb 27 18:50:38 2016 UTC (8 years, 3 months ago) by natano
Branch: MAIN
Changes since 1.44: +1 -2 lines
Diff to previous 1.44 (colored)

Move mnt_maxsymlink from struct mount to struct ufsmount.

The concept of differentiating between "short" and "long" symlinks is
specific to ufs/, so it shouldn't creep into the generic fs layer.
Inspired by a similar commit to NetBSD.

While there replace all references to mnt_maxsymlinklen in ufs/ext2fs
with EXT2_MAXSYMLINKLEN, which is the constant max short symlink len for
ext2fs. This allows to get rid of some (mnt_maxsymlinklen == 0) checks
there, which is always false for ext2fs.

input and ok stefan@
ok millert@

Revision 1.44 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:52 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.43 / (download) - annotate - [select for diffs], Tue Dec 16 19:56:33 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

must include lock.h if you want to play with locks

Revision 1.42 / (download) - annotate - [select for diffs], Tue Dec 9 07:16:41 2014 UTC (9 years, 6 months ago) by doug
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Sprinkle in a little more mallocarray().

ok deraadt@ tedu@

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 18 23:55:01 2014 UTC (9 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.40: +1 -2 lines
Diff to previous 1.40 (colored)

Nuke yet more obvious #include duplications.

ok miod@

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jul 12 18:43:52 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.39: +6 -6 lines
Diff to previous 1.39 (colored)

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jul 8 17:19:26 2014 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.38: +1 -3 lines
Diff to previous 1.38 (colored)

decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h
don't need to be married.
ok guenther miod beck jsing kettenis

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jan 19 18:35:45 2014 UTC (10 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

lazy init nthash to save some memory when it's not used. ok jsing

Revision 1.37 / (download) - annotate - [select for diffs], Mon Dec 2 16:05:07 2013 UTC (10 years, 6 months ago) by jsing
Branch: MAIN
Changes since 1.36: +9 -10 lines
Diff to previous 1.36 (colored)

Use appropriate format specifiers in debug messages. In particular, avoid
casting almost everything to u_int32_t, then formatting as a signed int
(which really helps when you're trying to debug based on 64-bit values).

Looked over by krw@

Revision 1.36 / (download) - annotate - [select for diffs], Sun Nov 24 16:02:30 2013 UTC (10 years, 6 months ago) by jsing
Branch: MAIN
Changes since 1.35: +29 -28 lines
Diff to previous 1.35 (colored)

Clean up the NTFS debug code - use uppercase names for the debug macros,
especially since 'dprintf' now has another meaning (at least outside of
the kernel). Tweak the macro syntax so we can avoid having to double
bracket all invocations. Also apply a good dose of style(9).

ok krw@

Revision 1.35 / (download) - annotate - [select for diffs], Thu May 30 20:11:06 2013 UTC (11 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.34: +4 -2 lines
Diff to previous 1.34 (colored)

More of the same: ntfs doesn't do inode numbers >2^32, so use a smaller type
internally, only using ino_t in the VFS layer APIs: vget, readdir, getattr

Revision 1.34 / (download) - annotate - [select for diffs], Mon Apr 15 15:32:19 2013 UTC (11 years, 1 month ago) by jsing
Branch: MAIN
Changes since 1.33: +9 -4 lines
Diff to previous 1.33 (colored)

Add an f_mntfromspec member to struct statfs, which specifies the name of
the special provided when the mount was requested. This may be the same as
the special that was actually used for the mount (e.g. in the case of a
device node) or it may be different (e.g. in the case of a DUID).

Whilst here, change f_ctime to a 64 bit type and remove the pointless
f_spare members.

Compatibility goo courtesy of guenther@

ok krw@ millert@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 18 05:09:21 2013 UTC (11 years, 4 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

Constrain the amount of kernel memory used by NTFS. Keep a small cache of
loaded ntnodes and once the maximum is reached, unload the least recently
used ntnode before loading a new one. This avoids leaving large data
structures hanging around, which only get cleaned up when the vnode is
reclaimed. Additionally, the buffer cache should contain the data needed
to reload the ntnode.

ok beck@

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jan 14 02:41:03 2013 UTC (11 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.31: +23 -77 lines
Diff to previous 1.31 (colored)

Ansify and apply style(9) to function definitions.

ok krw@

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jan 13 04:07:49 2013 UTC (11 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.30: +28 -31 lines
Diff to previous 1.30 (colored)

Destatic.

ok krw@

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 2 08:12:13 2013 UTC (11 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.29: +1 -26 lines
Diff to previous 1.29 (colored)

Remove code that is not used on OpenBSD.

ok miod@ krw@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Sep 10 11:11:00 2012 UTC (11 years, 9 months ago) by jsing
Branch: MAIN
Changes since 1.28: +7 -14 lines
Diff to previous 1.28 (colored)

Cleanup VFS mount string handling:

- Avoid using copyinstr() without checking the return value.

- sys_mount() has already copied the path in, so pass this to the
  filesystem mount code so that it does not have to copy it in again.

- Avoid copyinstr()/bzero() dance when we can simply bzero() and strlcpy().

ok krw@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Dec 20 09:13:07 2011 UTC (12 years, 5 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.27: +7 -5 lines
Diff to previous 1.27 (colored)

respect the MNT_FORCE flag in ntfs_unmount and proceed even if there's
someone holding a system vnode.  prevents crashes with forced unmounts.
silence ntfs_reclaim so that kernel won't spit out vprint's angrily.

ok krw, beck

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jul 4 20:35:35 2011 UTC (12 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.26: +2 -3 lines
Diff to previous 1.26 (colored)

move the specfs code to a place people can see it; ok guenther thib krw

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jul 4 04:30:41 2011 UTC (12 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

bread does nothing with its ucred argument.  remove it.  ok matthew

Revision 1.25 / (download) - annotate - [select for diffs], Sun Apr 3 17:17:41 2011 UTC (13 years, 2 months ago) by jsing
Branch: MAIN
Changes since 1.24: +15 -4 lines
Diff to previous 1.24 (colored)

Teach ntfs_mount() how to handle disklabel UIDs.

Diff from Antti Harri.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 21 20:14:43 2010 UTC (13 years, 5 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.23: +2 -9 lines
Diff to previous 1.23 (colored)

Bring back the "End the VOP experiment." diff, naddy's issues where
unrelated, and his alpha is much happier now.

OK deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Fri Sep 10 16:34:09 2010 UTC (13 years, 9 months ago) by thib
Branch: MAIN
Changes since 1.22: +9 -2 lines
Diff to previous 1.22 (colored)

Backout the VOP diff until the issues naddy was seeing on alpha (gcc3)
have been resolved.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Sep 7 00:41:05 2010 UTC (13 years, 9 months ago) by thib
Branch: MAIN
Changes since 1.21: +2 -9 lines
Diff to previous 1.21 (colored)

Allow NTFS to compile by cutting it over to the new VOP world order.
Small cleanup while here, nuke the ntfs_bypass function and just
use eopnotsupp like every other filesystem, it makes no sense to
return ENOTTY for unimplemented VOPs.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 4 21:35:58 2010 UTC (13 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.20: +14 -3 lines
Diff to previous 1.20 (colored)

revert previous "simplification".  kcornies at gmail says it doesn't work.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Aug 22 21:23:07 2010 UTC (13 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.19: +3 -14 lines
Diff to previous 1.19 (colored)

the upper case table code was a lot more complicated than it needed to be.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 12 04:05:03 2010 UTC (13 years, 10 months ago) by tedu
Branch: MAIN
Changes since 1.18: +14 -17 lines
Diff to previous 1.18 (colored)

clean up some macro obfuscation and assorted styling problems.
fix a bonus off by one bug.  ok matthew

Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 8 01:28:33 2010 UTC (13 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

do not unlock vnode before calling vput. should fix ray's panic.
ok deraadt krw

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 3 00:12:31 2010 UTC (13 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.16: +6 -4 lines
Diff to previous 1.16 (colored)

Last bit of thib@ locking diff from long ago. Put proper locking
around vinvalbuf(). vrele() -> vput() after VOP_CLOSE().

ok tedu@

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jun 29 04:09:32 2010 UTC (13 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

makefstype was only used in ported from freebsd filesystems.  fix them
and remove the function.  ok thib

Revision 1.15 / (download) - annotate - [select for diffs], Thu Aug 13 16:00:53 2009 UTC (14 years, 10 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.14: +6 -315 lines
Diff to previous 1.14 (colored)

- remove super-obvious comments from vnodeop_entries[]
- remove #ifdef someos blocks, makes this a tad easier to read

agreed by art@ and thib@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 9 22:29:56 2009 UTC (14 years, 11 months ago) by thib
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

Remove the VREF() macro and replaces all instances with a call to verf(),
which is exactly what the macro does.

Macro's that are nothing more then:
#define FUNCTION(arg) function(arg)
are almost always pointless and should go away.

OK blambert@
Agreed by many.

Revision 1.13 / (download) - annotate - [select for diffs], Tue May 13 02:24:08 2008 UTC (16 years, 1 month ago) by brad
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.12: +1 -6 lines
Diff to previous 1.12 (colored)

Remove commented out NetBSD __KERNEL_RCSID macro usage.

ok dlg@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Sep 17 01:33:33 2007 UTC (16 years, 8 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.11: +2 -3 lines
Diff to previous 1.11 (colored)

Only the most obvious bzero() -> M_ZERO changes. No cast changes, no
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an
immediately adjacent bzero().

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 19 11:55:55 2006 UTC (18 years, 1 month ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.10: +2 -3 lines
Diff to previous 1.10 (colored)

Remove unused mount list simple_lock() goo

Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 10 15:55:07 2005 UTC (18 years, 8 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Use free(9) to free memory allocated with malloc(9), okay krw@, marius@

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 21 18:05:58 2005 UTC (19 years ago) by brad
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.8: +7 -3 lines
Diff to previous 1.8 (colored)

- use MIN()/MAX() rather than min()/max(), to avoid possible truncation
  of 64bit values to 'int'
- read always single cluster of data, to avoid confusing the buffer
  cache; this appears to fix the random file content corruption which
  happens when more than one cluster is read at the same time, i.e. for
  files > 3*cluster_size
- fix some questionable pointer arithmetics; gcc-3.4.x didn't like it
- g/c redundant debug printf
- remove all traces of non-working quota support
  add quota support to TODO - makes sense only once writing support
  would be implemented, and only once NTFS would support notion of file 'owner'
- use 64bit local variable for free space computation

From NetBSD

- Comment fixes from joris@

ok millert@ joris@ pedro@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 8 15:45:20 2005 UTC (19 years, 3 months ago) by pat
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)

fix a page fault that occurs when a reclaimed vnode is then reused.
from FreeBSD

ok pedro tedu miod, tested by millert and myself

Revision 1.7 / (download) - annotate - [select for diffs], Tue Feb 1 11:29:59 2005 UTC (19 years, 4 months ago) by pedro
Branch: MAIN
Changes since 1.6: +18 -2 lines
Diff to previous 1.6 (colored)

Before carrying on with the mount request, make sure the process has
enough permissions to access the given device. ok millert@

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 9 22:58:57 2004 UTC (19 years, 6 months ago) by pat
Branch: MAIN
Changes since 1.5: +16 -8 lines
Diff to previous 1.5 (colored)

* plug memory leak on mount failure.
* spacing

ok tedu pedro millert otto

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Thu Feb 19 10:57:27 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.4.2.1: +1 -1 lines
Diff to previous 1.4.2.1 (colored) next main 1.5 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.5 / (download) - annotate - [select for diffs], Thu Aug 14 07:46:40 2003 UTC (20 years, 10 months ago) by mickey
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

constify vfsops; tedu@ ok

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Sat Jun 7 10:47:03 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

add file to SMP branch

Revision 1.4 / (download) - annotate - [select for diffs], Sat May 24 21:48:05 2003 UTC (21 years ago) by tedu
Branch: MAIN
Branch point for: SMP
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

rename export to export_info for c++ safety.  report by naddy@

Revision 1.3 / (download) - annotate - [select for diffs], Tue May 20 03:36:42 2003 UTC (21 years ago) by tedu
Branch: MAIN
Changes since 1.2: +39 -39 lines
Diff to previous 1.2 (colored)

un __P

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 20 03:23:12 2003 UTC (21 years ago) by mickey
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

fix the tags

Revision 1.1 / (download) - annotate - [select for diffs], Tue May 20 03:03:27 2003 UTC (21 years ago) by tedu
Branch: MAIN

by popular request, NTFS support.  read only.
The code comes from NetBSD and was ported by Julian Bordet.
ok deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.