aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
Commit message (Collapse)AuthorAgeFilesLines
* Correct a bug in the handling of backslash characters in smbfs which canColin Percival2006-05-311-1/+8
| | | | | | | | | allow an attacker to escape from a chroot(2). Security: FreeBSD-SA-06:16.smbfs Notes: svn path=/stable/4/; revision=159119
* MFC: Fix problems that occurred when a file was removed and a directoryTim J. Robbins2004-02-263-1/+42
| | | | | | | | | created with the same name, and vice versa. PR: 62342 Notes: svn path=/stable/4/; revision=126281
* MFC rev. 1.12: Fix an inverted test for NOPEN in the unusedTim J. Robbins2004-01-281-1/+1
| | | | | | | function smb_smb_flush(). Notes: svn path=/stable/4/; revision=125132
* Bring in all of the smbfs features and bug fixes from -current to -stable:Tim J. Robbins2004-01-108-114/+346
| | | | | | | | | | | | | | | | | | | | | | - Add support for SMB signing, which is required to connect to Windows 2003 servers. - Add support for mixed-case passwords. - Add support for large (up to 64K) READ_ANDX/WRITE_ANDX requests. - Increase TCP send/receive queue size to support these large requests. - Receive packets in small pieces so TCP slowstart will get ACKs faster. - Fix off-by-one bug preventing access to servers with NetBIOS names exactly 15 characters long. - Allow the [, ], and = characters in non-8.3 filenames. - Only close files on the server when there are no more references to the vnode; makes mmap()'d regions work properly after the local file descriptor has been closed. - Fix mishandling of files >4GB. - Diff reduction to make future merges easier. PR: 36038 46902 57123 Notes: svn path=/stable/4/; revision=124328
* MFC rev. 1.33: Do not call smbfs_attr_cacheremove() in the EXDEV case inTim J. Robbins2003-04-041-5/+9
| | | | | | | | | | | smbfs_rename(). One of the vnodes is on different mount and is possibly on a different kind of filesystem; treating it as an smbfs vnode then writing to it will probably corrupt it. PR: 48381 Notes: svn path=/stable/4/; revision=113062
* MFC rev. 1.30: Add missing permission checks to the smbfs VOP_SETATTRTim J. Robbins2003-02-071-0/+5
| | | | | | | | vnode op for the case where the caller requests to change access or modification times. Notes: svn path=/stable/4/; revision=110487
* MFC: Store a reference to the parent directory's vnode instead of itsTim J. Robbins2003-01-178-13/+32
| | | | | | | | | | | | 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. Notes: svn path=/stable/4/; revision=109415
* MFC:Boris Popov2002-04-301-0/+6
| | | | | | | Temporarily bandaid against UIO_NOCOPY case. Notes: svn path=/stable/4/; revision=95775
* MFC: Check write permissions before create anything.Boris Popov2002-04-221-0/+3
| | | | Notes: svn path=/stable/4/; revision=95238
* Make HPFS use vop_defaultop instead of wrong hpfs_bypass(). This makes HPFSSemen Ustimenko2002-01-151-14/+2
| | | | | | | | | back usable. Approved by: rwatson, murray Notes: svn path=/stable/4/; revision=89401
* MFC the following:Matthew Dillon2001-12-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * LK_TIMEOUT lock flag to separate lock acquisition with and without a timeout (dillon) * use of LK_TIMEOUT in BUF_TIMELOCK to avoid timeout race aginst BUF_LOCK (dillon) * use of LK_TIMEOUT in pageout vget() code to avoid deadlock (dillon) * move vnode reclaim into its own kthread to avoid deadlocks (Yahoo) * remove 'VXLOCK interlock avoided' messages.. they can occur under normal operation and create a choking hazzard on the console. * Adjust VMIGHTFREE macro used with vnode reclaim code to avoid eating large amounts of cpu with little to show for it in certain situations. * Add VREF/VRELE around UFS_UPDATE() call to avoid update/reclaim race (note: snuck in at last minute but I accidently did a partial commit a moment ago and the tree is broken until I commit the rest of it). This is minor and will be tested heavily. Approved by: Release Engineers Notes: svn path=/stable/4/; revision=88467
* MFC rev 1.15: correct previous deltaSheldon Hearn2001-12-201-2/+3
| | | | | | | | This applies bit of poetic license to the approval we have from <re@FreeBSD.org> to get smbfs into 4.5-RELEASE. Notes: svn path=/stable/4/; revision=88281
* MFC rev 1.14: silence harmless "smbfs_closel: Negative opencount"Sheldon Hearn2001-12-201-1/+1
| | | | | | | messages at unmount time Notes: svn path=/stable/4/; revision=88264
* MFC rev 1.5: add module dependency on libmchainSheldon Hearn2001-12-201-0/+2
| | | | Notes: svn path=/stable/4/; revision=88256
* MFC change vnode list under mount point from LIST to TAILQ in preparationMatthew Dillon2001-10-251-2/+2
| | | | | | | for scaleability fixes for machines with >= 2G of ram coming down the pipe. Notes: svn path=/stable/4/; revision=85499
* MFC: return proper value for maximum file name length.Boris Popov2001-09-031-1/+1
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=82861
* MFC: Change the interface to vflush() so that it can deal withIan Dowse2001-07-262-16/+3
| | | | | | | | | | | | | | | | extra references on the filesystem root vnode. This fixes bugs in a number of filesystems that could cause forced umounts to erroneously return EBUSY, and it centralises a lot of xxx_unmount logic. This unfortunately requires the recompilation of any filesystem KLDs, although I have added an extra sanity check that should help to avoid panics if old modules are used (the filesystem may refuse to umount, and if so, a warning message will appear on the console). Not objected to by: -stable Notes: svn path=/stable/4/; revision=80411
* MFC: Add SMB/CIFS protocol and smbfs file system.Boris Popov2001-05-226-84/+74
| | | | Notes: svn path=/stable/4/; revision=76983
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-05-201-0/+500
| | | | Notes: svn path=/stable/4/; revision=76914
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-05-133-0/+2401
| | | | Notes: svn path=/stable/4/; revision=76528
* MFC: VOP_ABORTOP has gone long time ago... Remove hpfs_abortop so peopleSemen Ustimenko2001-05-041-2/+0
| | | | | | | could get hpfs compiled and run. Notes: svn path=/stable/4/; revision=76277
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-04-175-0/+1991
| | | | Notes: svn path=/stable/4/; revision=75603
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-03-13106-42701/+0
| | | | Notes: svn path=/stable/4/; revision=57955
* Supported non-512 bytes/sector format.Yoshihiro Takahashi2000-01-274-70/+61
| | | | | | | | | | PR: misc/12992 Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) and Dmitrij Tejblum <tejblum@arc.hq.cti.ru> Reviewed by: Dmitrij Tejblum <tejblum@arc.hq.cti.ru> Notes: svn path=/head/; revision=56674
* Fix bde'isms in acl/extattr syscall interface, renaming syscalls toRobert Watson2000-01-192-3/+3
| | | | | | | | | prettier (?) names, adding some const's around here, et al. Reviewed by: bde Notes: svn path=/head/; revision=56272
* Check if module was compiled without SMP support and running onBoris Popov2000-01-151-0/+9
| | | | | | | an SMP system. Notes: svn path=/head/; revision=56034
* Add VT_NWFS tag.Boris Popov2000-01-151-4/+0
| | | | Notes: svn path=/head/; revision=56033
* Forward declare some structs so that this header is more self-suifficent.Bruce Evans2000-01-144-0/+28
| | | | Notes: svn path=/head/; revision=55991
* Use MALLOC_DECLARE when it is #defined, not when a (wrong) test ofBruce Evans2000-01-141-1/+1
| | | | | | | __FreeBSD_version succeeds. Notes: svn path=/head/; revision=55989
* remove check now done in vn_isdisk().Poul-Henning Kamp2000-01-101-4/+0
| | | | Notes: svn path=/head/; revision=55765
* Give vn_isdisk() a second argument where it can return a suitable errno.Poul-Henning Kamp2000-01-105-15/+12
| | | | | | | Suggested by: bde Notes: svn path=/head/; revision=55756
* Treat negative uio_offset value as eof (idea by: bde).Boris Popov2000-01-081-8/+11
| | | | | | | | | | Prevent overflows by casting uio_offset to uoff_t. Return correct error number if directory entry is broken. Reviewed by: bde Notes: svn path=/head/; revision=55594
* Return ENXIO if there is no device.Poul-Henning Kamp2000-01-021-1/+5
| | | | Notes: svn path=/head/; revision=55311
* Fix the mess with signed/unsigned longs and ints (inspired by bde).Boris Popov2000-01-021-18/+26
| | | | | | | | | Fix potential bug with directory reading. Explicitly limit file size to 4GB (msdos can't handle larger files). Slightly reorganize msdosfs_read() to reduce number of 'if's. Notes: svn path=/head/; revision=55308
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-2915-31/+31
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* Avoid to write garbage if uiomove fails.Boris Popov1999-12-281-0/+4
| | | | Notes: svn path=/head/; revision=55190
* Fix an overflow in the msdosfs_read() function which exposed on the filesBoris Popov1999-12-281-3/+3
| | | | | | | | | | | with size > 2GB. PR: 15639 Submitted by: Tim Kientzle <kientzle@acm.org> Reviewed by: phk Notes: svn path=/head/; revision=55189
* It is possible that number of sectors specified in the BPBBoris Popov1999-12-282-6/+14
| | | | | | | | | | | will exceed FAT capacity. This will lead to kernel panic while other systems just limit number of clusters. PR: 4381, 15136 Reviewed by: phk Notes: svn path=/head/; revision=55188
* Fix typo "," vs ";"Peter Wemm1999-12-271-1/+1
| | | | | | | | PR: 15696 Submitted by: Takashi Okumura <taka@cs.pitt.edu> Notes: svn path=/head/; revision=55153
* Fix a typo that was doing something kind of silly, and that is initializingChris Costello1999-12-211-1/+1
| | | | | | | | | | | | | | | the creation time for files to the uninitialized value: vap->va_ctime = vap->va_ctime; Changed to what was intended, assigning it to the modification time (thus making all three values of access time, modification time and creation time the same thing). Reviewed by: grog Notes: svn path=/head/; revision=54932
* Include vm/vm_extern.h to get at prototypesEivind Eklund1999-12-201-0/+1
| | | | Notes: svn path=/head/; revision=54908
* Second pass commit to introduce new ACL and Extended Attribute systemRobert Watson1999-12-1912-5/+55
| | | | | | | | | | calls, vnops, vfsops, both in /kern, and to individual file systems that require a vfsop_ array entry. Reviewed by: eivind Notes: svn path=/head/; revision=54803
* Introduce NDFREE (and remove VOP_ABORTOP)Eivind Eklund1999-12-1516-219/+45
| | | | Notes: svn path=/head/; revision=54655
* Fix pointer problem for the AlphaPeter Wemm1999-12-121-2/+2
| | | | Notes: svn path=/head/; revision=54519
* Bump local version number to 1.3.4.Boris Popov1999-12-121-1/+1
| | | | Notes: svn path=/head/; revision=54479
* Lock reporting and assertion changes.Eivind Eklund1999-12-116-14/+17
| | | | | | | | | | | | | | | | | | * lockstatus() and VOP_ISLOCKED() gets a new process argument and a new return value: LK_EXCLOTHER, when the lock is held exclusively by another process. * The ASSERT_VOP_(UN)LOCKED family is extended to use what this gives them * Extend the vnode_if.src format to allow more exact specification than locked/unlocked. This commit should not do any semantic changes unless you are using DEBUG_VFS_LOCKS. Discussed with: grog, mch, peter, phk Reviewed by: peter Notes: svn path=/head/; revision=54444
* Don't simulate a pseudo address-space beyond VM_MAXUSER_ADDRESS thatPeter Wemm1999-12-111-40/+0
| | | | | | | | | | | | | | maps onto the upages. We used to use this extensively, particularly for ps and gdb. Both of these have been "fixed". ps gets the p_stats via eproc along with all the other stats, and gdb uses the regs, fpregs etc files. Once apon a time the UPAGES were mapped here, but that changed back in January '96. This essentially kills my revisions 1.16 and 1.17. The 2-page "hole" above the stack can be reclaimed now. Notes: svn path=/head/; revision=54424
* First version of HPFS stuff.Semen Ustimenko1999-12-0910-0/+4993
| | | | Notes: svn path=/head/; revision=54371
* Remove unused #includes.Poul-Henning Kamp1999-12-089-13/+0
| | | | | | | Obtained from: http://bogon.freebsd.dk/include Notes: svn path=/head/; revision=54292
* Commit the kernel part of our DVD support. Nothing much to say really,Søren Schmidt1999-12-071-0/+30
| | | | | | | its just a number of new ioctl's, the rest is done in userland. Notes: svn path=/head/; revision=54272