The NetBSD Project

CVS log for src/sys/fs/smbfs/Attic/smbfs_smb.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / fs / smbfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.47.18.2, Wed Apr 8 14:08:50 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.47.18.1: +2 -2 lines
FILE REMOVED

Merge changes from current as of 20200406

Revision 1.49, Sat Apr 4 15:43:21 2020 UTC (4 years ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej-futex-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.48: +2 -2 lines
FILE REMOVED

remove SMBFS and nsmb(4) - kernel part

it's unmaintained and supports only obsolete SMB1

Revision 1.47.18.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:01 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Sync with HEAD

Revision 1.47.16.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:41 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.48 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.42.12.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:43 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.42.12.1: +7 -7 lines
Diff to previous 1.42.12.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

update from HEAD

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:19 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with HEAD

Revision 1.47 / (download) - annotate - [select for diffs], Sun Dec 21 10:48:53 2014 UTC (9 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Change smbfs from hashlist to vcache.
- Use (parent_vnode, name, name_len) as key.
- Change smbfs_nget() to return a referenced but unlocked vnode and
  adapt smbfs_setroot(), smbfs_create(), smbfs_mkdir() and smbfs_lookup().

Revision 1.44.12.2 / (download) - annotate - [select for diffs], Mon Dec 1 09:31:40 2014 UTC (9 years, 4 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.44.12.1: +5 -5 lines
Diff to previous 1.44.12.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

Pull up following revision(s) (requested by nakayama in ticket #275):
	sys/rump/dev/lib/libnetsmb/netsmb_iconv.c: revision 1.1
	external/bsd/smbfs/dist/mount_smbfs/mount_smbfs.8: revision 1.3
	sys/netsmb/smb_subr.c: revision 1.37
	external/bsd/smbfs/dist/mount_smbfs/mount_smbfs.8: revision 1.4
	sys/fs/smbfs/smbfs_subr.c: revision 1.17
	sys/rump/dev/lib/libnetsmb/Makefile: revision 1.5
	sys/fs/smbfs/smbfs_smb.c: revision 1.46
	sys/fs/smbfs/smbfs_node.c: revision 1.52
	sys/netsmb/mchain.h: revision 1.10
	external/bsd/smbfs/dist/lib/smb/ctx.c: revision 1.3
	sys/netsmb/subr_mchain.c: revision 1.23
	sys/rump/dev/lib/libnetsmb/netsmb_user.c: revision 1.1
	sys/rump/dev/lib/libnetsmb/netsmb_user.c: revision 1.2
	sys/rump/dev/lib/libnetsmb/netsmb_user.c: revision 1.3
	sys/rump/dev/lib/libnetsmb/netsmb_user.h: revision 1.1
	sys/netsmb/iconv.c: revision 1.14
	external/bsd/smbfs/dist/smbutil/smbutil.1: revision 1.3
	sys/fs/smbfs/smbfs_subr.h: revision 1.22
Make rump_smbfs(8) uses host iconv(3) to convert filenames
character set on NetBSD hosts.
Adjust smbfs/netsmb for filenames byte length changes that come as
a result of iconv conversion.  Most codes are taken from FreeBSD.
Disable unused codes that causes SIGBUS or SIGSEGV if character
sets option (-E) is specified to mount_smbfs/rump_smbfs.
Adjust man page accordingly.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Nov 15 18:52:44 2014 UTC (9 years, 5 months ago) by nakayama
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored)

Adjust smbfs/netsmb for filenames byte length changes that come as
a result of iconv conversion.  Most codes are taken from FreeBSD.

Revision 1.44.12.1 / (download) - annotate - [select for diffs], Mon Oct 20 09:55:54 2014 UTC (9 years, 6 months ago) by martin
Branch: netbsd-7
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Pullup the following revisions, requested by maxv in ticket #148:

sys/compat/svr4/svr4_stat.c                     1.70
sys/dev/dm/dm_target_snapshot.c                 1.17
sys/dev/if_ndis/if_ndis_pci.c                   1.20
sys/fs/smbfs/smbfs_smb.c                        1.45
sys/ufs/ext2fs/ext2fs_readwrite.c               1.65

Various fixes: two memory leaks, a typo, a dead compiler condition and
unused macros, respectively in if_ndis and dm, smbfs, svr4 and ext2fs.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Aug 12 06:57:20 2014 UTC (9 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

	http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-2

#04-0x01: Uninitialized var 'rqp' (does not compile anyway)

Revision 1.42.12.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:49 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.42: +19 -13 lines
Diff to previous 1.42 (colored)

resync with head

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:41 2013 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.42: +19 -13 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

sync with (a bit old) head

Revision 1.37.6.3 / (download) - annotate - [select for diffs], Sun Jan 13 16:05:34 2013 UTC (11 years, 3 months ago) by bouyer
Branch: netbsd-5
Changes since 1.37.6.2: +17 -10 lines
Diff to previous 1.37.6.2 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1824):
	sys/netsmb/smb.h: revision 1.20
	sys/fs/smbfs/smbfs_vnops.c: revision 1.85
	sys/fs/smbfs/smbfs_subr.c: revision 1.16
	sys/fs/smbfs/smbfs_smb.c: revision 1.44
	sys/fs/smbfs/smbfs_subr.h: revision 1.21
Improve smbfs timestamp handling.
Don't round timestamp to 2 seconds resolution if the server
supports the CAP_INFOLEVEL_PASSTHRU capability.

Revision 1.42.8.2 / (download) - annotate - [select for diffs], Mon Dec 10 21:16:25 2012 UTC (11 years, 4 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.42.8.1: +17 -10 lines
Diff to previous 1.42.8.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Pull up following revision(s) (requested by nakayama in ticket #732):
	sys/netsmb/smb.h: revision 1.20
	sys/fs/smbfs/smbfs_vnops.c: revision 1.85
	sys/fs/smbfs/smbfs_subr.c: revision 1.16
	sys/fs/smbfs/smbfs_smb.c: revision 1.44
	sys/fs/smbfs/smbfs_subr.h: revision 1.21
Improve smbfs timestamp handling.
Don't round timestamp to 2 seconds resolution if the server
supports the CAP_INFOLEVEL_PASSTHRU capability.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Nov 30 23:24:21 2012 UTC (11 years, 4 months ago) by nakayama
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, khorben-n900, agc-symver-base, agc-symver
Branch point for: netbsd-7
Changes since 1.43: +17 -10 lines
Diff to previous 1.43 (colored)

Improve smbfs timestamp handling.
Don't round timestamp to 2 seconds resolution if the server
supports the CAP_INFOLEVEL_PASSTHRU capability.

Revision 1.42.8.1 / (download) - annotate - [select for diffs], Thu Nov 29 00:04:37 2012 UTC (11 years, 4 months ago) by riz
Branch: netbsd-6
Changes since 1.42: +4 -5 lines
Diff to previous 1.42 (colored)

Pull up following revision(s) (requested by nakayama in ticket #725):
	sys/fs/smbfs/smbfs_smb.c: revision 1.43
	sys/netsmb/smb_smb.c: revision 1.33
- fix endian cofusion around FID, which is used as is, so no need
  to do byte swapping.
- put right value to ByteCount of SMB_COM_NT_CREATE_ANDX request.
The fix makes smbfs actually works on big-endian port.

Revision 1.42.14.1 / (download) - annotate - [select for diffs], Thu Nov 29 00:02:22 2012 UTC (11 years, 4 months ago) by riz
Branch: netbsd-6-0
CVS Tags: netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE
Changes since 1.42: +4 -5 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Pull up following revision(s) (requested by nakayama in ticket #725):
	sys/fs/smbfs/smbfs_smb.c: revision 1.43
	sys/netsmb/smb_smb.c: revision 1.33
- fix endian cofusion around FID, which is used as is, so no need
  to do byte swapping.
- put right value to ByteCount of SMB_COM_NT_CREATE_ANDX request.
The fix makes smbfs actually works on big-endian port.

Revision 1.37.6.2 / (download) - annotate - [select for diffs], Mon Nov 26 19:50:11 2012 UTC (11 years, 4 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.37.6.1: +4 -5 lines
Diff to previous 1.37.6.1 (colored) to branchpoint 1.37 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1820):
	sys/fs/smbfs/smbfs_smb.c: revision 1.43
	sys/netsmb/smb_smb.c: revision 1.33
- fix endian cofusion around FID, which is used as is, so no need
  to do byte swapping.
- put right value to ByteCount of SMB_COM_NT_CREATE_ANDX request.
The fix makes smbfs actually works on big-endian port.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Nov 24 19:48:24 2012 UTC (11 years, 4 months ago) by nakayama
Branch: MAIN
Changes since 1.42: +4 -5 lines
Diff to previous 1.42 (colored)

- fix endian cofusion around FID, which is used as is, so no need
  to do byte swapping.
- put right value to ByteCount of SMB_COM_NT_CREATE_ANDX request.

The fix makes smbfs actually works on big-endian port.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Sep 27 02:05:10 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6-0, netbsd-6
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

rename SMBFS_MAXFNAMELEN to SMBFS_MAXNAMLEN for consistency

Revision 1.37.14.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:13 2010 UTC (14 years ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.37: +39 -3 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

sync to netbsd-5

Revision 1.35.40.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:14 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.35.40.2: +39 -3 lines
Diff to previous 1.35.40.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

sync with head

Revision 1.37.6.1 / (download) - annotate - [select for diffs], Tue Oct 27 20:46:52 2009 UTC (14 years, 5 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RC1, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.37: +39 -3 lines
Diff to previous 1.37 (colored)

Pull up following revision(s) (requested by tron in ticket #1109):
	sys/fs/smbfs/smbfs_smb.c: revision 1.41
	sys/fs/smbfs/smbfs_subr.h: revision 1.20
Add support for 64 bit file offsets to smbfs_smb_setfsize(), largely
based on code taken from FreeBSD.
This stops truncation of files larger than 4GB by VOP_SETATTR() which e.g.
happened when copying large files "rump_smbfs". Kudos to Antti Kantee
for diagnosing the problem in smbfs_smb_setfsize().

Revision 1.41 / (download) - annotate - [select for diffs], Tue Oct 20 20:55:01 2009 UTC (14 years, 6 months ago) by tron
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.40: +39 -3 lines
Diff to previous 1.40 (colored)

Add support for 64 bit file offsets to smbfs_smb_setfsize(), largely
based on code taken from FreeBSD.

This stops truncation of files larger than 4GB by VOP_SETATTR() which e.g.
happened when copying large files "rump_smbfs". Kudos to Antti Kantee
for diagnosing the problem in smbfs_smb_setfsize().

Revision 1.37.10.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:54 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.35.40.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:44 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.35.40.1: +5 -5 lines
Diff to previous 1.35.40.1 (colored) to branchpoint 1.35 (colored)

sync with head.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:53 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Sync with HEAD.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Apr 18 14:58:04 2009 UTC (15 years ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

Remove extra whitespace added by a stupid tool.
XXX: more in src/sys/arch

Revision 1.39 / (download) - annotate - [select for diffs], Wed Mar 18 17:06:51 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

bcopy -> memcpy

Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 18 16:00:21 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

bzero -> memset

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:55 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.35.36.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:13 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.35.36.1: +1 -1 lines
Diff to previous 1.35.36.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Sync with HEAD.

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:28 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jun 24 10:23:48 2008 UTC (15 years, 9 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Remove gcc extension of variadic macros with comma elimination.

Revision 1.35.36.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:05 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.35: +2 -9 lines
Diff to previous 1.35 (colored)

Sync with HEAD.

Revision 1.35.38.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:02 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.35: +2 -9 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

sync with head.

Revision 1.35.40.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:18 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.35: +2 -9 lines
Diff to previous 1.35 (colored)

sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:02 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.35: +2 -9 lines
Diff to previous 1.35 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.26.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:32 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.26.2.2: +12 -12 lines
Diff to previous 1.26.2.2 (colored) next main 1.27 (colored)

sync with head.

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:13 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.34: +12 -12 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync with HEAD.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:01 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.34: +12 -12 lines
Diff to previous 1.34 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:01 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.26.2.1: +11 -7 lines
Diff to previous 1.26.2.1 (colored)

sync with head.

Revision 1.31.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:38 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.31.4.1: +9 -8 lines
Diff to previous 1.31.4.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

sync with head.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:20 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.31: +8 -6 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:37 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.33: +7 -7 lines
Diff to previous 1.33 (colored)

__unused removal on arguments; approved by core.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Nov 2 17:34:21 2006 UTC (17 years, 5 months ago) by jmmv
Branch: MAIN
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

Bring in fix from FreeBSD by tjr, 3 years and 9 months ago: Store a
reference to the parent directory's vnode instead of its smbnode to
avoid a use-after-free bug causing a panic when a smbfs mount is
forcefully unmounted.

Keep trying to flush the vnode list for the mount while some are still
busy and we are making progress towards making them not busy.  This
stops attempts to unmount idle smbfs mounts failing with EBUSY.

The easiest way to reproduce the above problem, from what I have seen is:
1) Assume /s is a smbfs mount point.
2) mount /s
3) stat /s/foo/1
4) umount /s
   Returns error because the file system is busy.
5) Shutdown the machine: panic in smbfs_reclaim because vrele
   accesses already-released memory.

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:09 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.31: +8 -7 lines
Diff to previous 1.31 (colored)

sync with head

Revision 1.32 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:14 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.31: +8 -7 lines
Diff to previous 1.31 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:05 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.29: +6 -4 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

sync with head

Revision 1.29.8.2 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:13 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.29.8.1: +5 -3 lines
Diff to previous 1.29.8.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

sync with head.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Fri Sep 1 21:28:25 2006 UTC (17 years, 7 months ago) by tron
Branch: abandoned-netbsd-4
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Pull up following revision(s) (requested by christos in ticket #89):
	sys/fs/smbfs/smbfs_smb.c: revision 1.31
Fix getdirentries() issue from FreeBSD PR - 78953 Quoting from that:
If you perform this request on a directory with exactly 50 files
(plus '.' and '..' which brings the total to 52 objects), the first
reply for the SMB server completely satisfies the query (server
side is Windows 2000 Professional).
The smbfs client then performs a TRANS2_FIND_NEXT2 using the last
file name as the resume key.  The response returns a SearchCount
of zero (ctx->f_ecnt == 0) and an EndOfSearch code of zero.
Any attempt to get more entries with calls to TRANS2_FIND_NEXT2
result in Badfid (bad file descriptor).  I suspect the return of
SearchCount of zero means that end-of-search has been reached and
the Sid is now closed.
The solution is to set "SMB_RDD_EOF | SMB_RDD_NOCLOSE" after getting
back a zero SearchCount,  I've tested this in the field on a quite
a few systems, aggressively accessing Windows shares over smbfs
and it appears flawless.
I was initially concerned about the possibility of resource exhaustion
on the Windows server. I was afraid by not officially closing the
search, it would leave a resource hung-up and over time, exhaust
some sort of "open search table" limit.  I've since convinced myself
this is NOT the case.
Windows needs to be able to handle clients that come and go over
time.  If the search is not closed, Windows will close it if it
finds it needs more resources.  I've testing this on directory
searches descending into 10's of thousands of folders, with 100's
of thousands of files.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Aug 28 15:56:56 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored)

Fix getdirentries() issue from FreeBSD PR - 78953 Quoting from that:

If you perform this request on a directory with exactly 50 files
(plus '.' and '..' which brings the total to 52 objects), the first
reply for the SMB server completely satisfies the query (server
side is Windows 2000 Professional).

The smbfs client then performs a TRANS2_FIND_NEXT2 using the last
file name as the resume key.  The response returns a SearchCount
of zero (ctx->f_ecnt == 0) and an EndOfSearch code of zero.

Any attempt to get more entries with calls to TRANS2_FIND_NEXT2
result in Badfid (bad file descriptor).  I suspect the return of
SearchCount of zero means that end-of-search has been reached and
the Sid is now closed.

The solution is to set "SMB_RDD_EOF | SMB_RDD_NOCLOSE" after getting
back a zero SearchCount,  I've tested this in the field on a quite
a few systems, aggressively accessing Windows shares over smbfs
and it appears flawless.

I was initially concerned about the possibility of resource exhaustion
on the Windows server. I was afraid by not officially closing the
search, it would leave a resource hung-up and over time, exhaust
some sort of "open search table" limit.  I've since convinced myself
this is NOT the case.

Windows needs to be able to handle clients that come and go over
time.  If the search is not closed, Windows will close it if it
finds it needs more resources.  I've testing this on directory
searches descending into 10's of thousands of folders, with 100's
of thousands of files.

Revision 1.29.8.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:55 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

sync with head.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:30 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.26: +3 -5 lines
Diff to previous 1.26 (colored)

sync with head.

Revision 1.29.14.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:14 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:38 2006 UTC (17 years, 10 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.29.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:12:49 2006 UTC (18 years, 2 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, chap-midi
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

merge ktrace-lwp.

Revision 1.17.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.17.2.4: +42 -44 lines
Diff to previous 1.17.2.4 (colored) next main 1.18 (colored)

Sync with HEAD. Here we go again...

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 12 16:54:35 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

wrong variable name.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Sep 12 16:44:29 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.26: +3 -5 lines
Diff to previous 1.26 (colored)

use nanotime().

Revision 1.26 / (download) - annotate - [select for diffs], Sun May 29 21:00:29 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.25: +41 -41 lines
Diff to previous 1.25 (colored)

- rename variables to avoid shadowing.
- add a few const.

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:22 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.24: +7 -7 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with -current

Revision 1.24.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:11 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.24: +7 -7 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.17.2.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:46 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.17.2.3: +7 -7 lines
Diff to previous 1.17.2.3 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.25 / (download) - annotate - [select for diffs], Sat Feb 26 22:58:55 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.24: +7 -7 lines
Diff to previous 1.24 (colored)

nuke trailing whitespace

Revision 1.17.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:01 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.17.2.2: +2 -2 lines
Diff to previous 1.17.2.2 (colored)

Fix the sync with head I botched.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:52:50 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.17.2.1: +0 -0 lines
Diff to previous 1.17.2.1 (colored)

Sync with HEAD.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:42 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.17: +92 -68 lines
Diff to previous 1.17 (colored)

Sync with HEAD

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jun 5 07:36:25 2004 UTC (19 years, 10 months ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.23: +75 -73 lines
Diff to previous 1.23 (colored)

unify the statvfs-reporting related code to single smbfs_smb_statvfs routine
for easier maintenance; the decision to use either
SMB_TRANS2_QUERY_FS_INFORMATION or SMB_COM_QUERY_INFORMATION_DISK
is done inside it, the code for populating struct statvfs with values
is shared

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 5 06:28:11 2004 UTC (19 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored)

set 'frag' size to the same value as the file system block size, so
that userland would pick up correct size of unit (it uses lower of
these values as the size of one 'block' for f_blocks et.al.)
fixes PR bin/25319 by Juan RP

Revision 1.22 / (download) - annotate - [select for diffs], Sun May 23 11:18:28 2004 UTC (19 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.21: +14 -12 lines
Diff to previous 1.21 (colored)

add comments for values returned from the SMB request info used for statvfs

Revision 1.21 / (download) - annotate - [select for diffs], Mon Apr 26 17:08:45 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

fix fragment size.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:38 2004 UTC (20 years ago) by christos
Branch: MAIN
Changes since 1.19: +16 -6 lines
Diff to previous 1.19 (colored)

Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Mar 21 16:04:07 2004 UTC (20 years, 1 month ago) by jdolecek
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.18: +11 -3 lines
Diff to previous 1.18 (colored)

in smbfs_smb_lookup(), check the returned (found) file name matches
exactly the filename we wanted to lookup, so that file names differing
in case are refused right away

resolves the chdir part of PR kern/22835 by Rob Quinn (cd succeeded when
it was supposed to fail)

Revision 1.18 / (download) - annotate - [select for diffs], Sat Oct 25 18:33:37 2003 UTC (20 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.17: +5 -3 lines
Diff to previous 1.17 (colored)

FIx uninitialized variable warnings

Revision 1.17 / (download) - annotate - [select for diffs], Mon Apr 7 19:35:39 2003 UTC (21 years ago) by jdolecek
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.16: +33 -33 lines
Diff to previous 1.16 (colored)

use pools instead of malloc(9) for allocation of smb request structures

convert all code to use smb_{rq|t2}_alloc() instead of allocating
structures on stack, make smb_rq_init()/smb_t2_init() static and not
exported outside smb_rq.c

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 7 13:56:13 2003 UTC (21 years ago) by jdolecek
Branch: MAIN
Changes since 1.15: +38 -2 lines
Diff to previous 1.15 (colored)

add TNF copyright licence for recent changes

Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 7 12:04:15 2003 UTC (21 years ago) by jdolecek
Branch: MAIN
Changes since 1.14: +268 -5 lines
Diff to previous 1.14 (colored)

use NT DIRECTORY CHANGE NOTIFY to watch for directory kevents if the
server supports it
for this, need NT CREATE AND X a directory in smbfs_open(), so that
we get the FID handle used for DIRECTORY CHANGE NOTIFY SMB

this could eventually be used to 'watch' even regular files, by
watching its parent directory and lookup/VN_KNOTE() when we get
REMOVED/RENAMED/MODIFIED action

also reorganize the kqueue code somewhat to use simplify locking
and knote detach

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 23 16:55:54 2003 UTC (21 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.13: +7 -9 lines
Diff to previous 1.13 (colored)

translate ERRDOS/ERRnofiles to ENOENT in smb_maperror(), and simplify
handling in smbfs_smb_search() appropriately - avoids using
sr_errclass&sr_serror too

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 15 02:22:13 2003 UTC (21 years, 1 month ago) by kristerw
Branch: MAIN
Changes since 1.12: +11 -11 lines
Diff to previous 1.12 (colored)

'lint' is a very bad name for a variable.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Mar 3 21:17:05 2003 UTC (21 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.11: +6 -2 lines
Diff to previous 1.11 (colored)

#if 0/notnow stuff which isn't currently used
pointed out by Krister Walfridsson

Revision 1.11 / (download) - annotate - [select for diffs], Tue Feb 25 09:09:31 2003 UTC (21 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.10: +5 -1 lines
Diff to previous 1.10 (colored)

add __KERNEL_RCSID()

Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 24 18:45:35 2003 UTC (21 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

since smbfs_fctx.f_fname is always used as 'char', may as well define it
that way rather than u_char

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 24 09:30:43 2003 UTC (21 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.8: +9 -8 lines
Diff to previous 1.8 (colored)

SMBERROR() purge - replace with KASSERT()s, panic or remove altogether
as appropriate

Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 23 22:03:11 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

style; no space after cast, and add cast to the assignment case too.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 23 21:26:26 2003 UTC (21 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

fix KASSERT() in smbfs_findnextLM1() to actually compile

Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 21 20:15:01 2003 UTC (21 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.5: +15 -19 lines
Diff to previous 1.5 (colored)

some KNF, add a KASSERT() for smbfs_findnextLM1() case
replace some 'never should happen' printfs with KASSERTs

Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 19 13:51:24 2003 UTC (21 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored)

do previous differently - pass ap->a_id down to smbfs_smb_lock()
and smbfs_smb_lockandx() as caddr_t, and mask it to 16bit value
in smbfs_smb_lockandx()
okayed by Martin

Revision 1.4 / (download) - annotate - [select for diffs], Wed Feb 19 12:44:47 2003 UTC (21 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

SMB lock ids apparently are 16bit items. And the code uses id 1 always.
No need to cast it back and forth to a caddr_t and u_int32_t - which does
not work well on 64bit archs.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 18 12:52:34 2003 UTC (21 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.2: +14 -9 lines
Diff to previous 1.2 (colored)

smbfs_smb_create(): use SMB_COM_CREATE_NEW rather than SMB_COM_CREATE; the
latter truncates the file if it exists, which we don't want to do
change the code a bit to be easier to read

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:41 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.2.4.1: +1277 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Catch up to -current.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:29 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.2.2.1: +1277 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync kqueue branch with -current.

Revision 1.2.4.1, Wed Jan 9 17:43:28 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.2: +0 -1277 lines
FILE REMOVED

file smbfs_smb.c was added on branch nathanw_sa on 2002-02-28 04:14:41 +0000

Revision 1.2.2.1, Wed Jan 9 17:43:28 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.2: +0 -1277 lines
FILE REMOVED

file smbfs_smb.c was added on branch kqueue on 2002-01-10 19:59:29 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 9 17:43:28 2002 UTC (22 years, 3 months ago) by deberg
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: nathanw_sa, kqueue
Changes since 1.1: +6 -2 lines
Diff to previous 1.1 (colored)

netbsd changes

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Jan 9 17:25:34 2002 UTC (22 years, 3 months ago) by deberg
Branch: FreeBSD
CVS Tags: FreeBSD-20011220
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

import freebsd smbfs code

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 9 17:25:34 2002 UTC (22 years, 3 months ago) by deberg
Branch: MAIN

Initial revision

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.




CVSweb <webmaster@jp.NetBSD.org>