summaryrefslogtreecommitdiffstats
path: root/sys/fs/nandfs/nandfs_vnops.c
Commit message (Collapse)AuthorAgeFilesLines
* Handle MAKEENTRY cnp flag in the VOP_CREATE(). Curiously, somekib2014-12-211-0/+2
| | | | | | | | fs, e.g. smbfs, already did it. Tested by: pho (previous version) Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* The VOP_LOOKUP() implementations for CREATE op do not put the namekib2014-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | into namecache, to avoid cache trashing when doing large operations. E.g., tar archive extraction is not usually followed by access to many of the files created. Right now, each VOP_LOOKUP() implementation explicitely knowns about this quirk and tests for both MAKEENTRY flag presence and op != CREATE to make the call to cache_enter(). Centralize the handling of the quirk into VFS, by deciding to cache only by MAKEENTRY flag in VOP. VFS now sets NOCACHE flag for CREATE namei() calls. Note that the change in semantic is backward-compatible and could be merged to the stable branch, and is compatible with non-changed third-party filesystems which correctly handle MAKEENTRY. Suggested by: Chris Torek <torek@pi-coral.com> Reviewed by: mckusick Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* Follow the ufs practice for disallowing permission changes as well asimp2014-08-021-1/+1
| | | | | | writes to files for read-only file systems. Since there are already checks in nandfs_setattr that return an error, this moves detection of the error earlier.
* Fix typo in comment: noone -> no one.imp2014-07-231-7/+4
| | | | Fix minor style(9) nits.
* Check for the cross-device cross-link attempt in the VFS, instead ofkib2014-07-161-3/+0
| | | | | | | | | | | | | forcing filesystem VOP_LINK() methods to repeat the code. In tmpfs_link(), remove redundand check for the type of the source, already done by VFS. Note that NFS server already performs this check before calling VOP_LINK(). Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* - Convert the bufobj lock to rwlock.jeff2013-05-311-1/+2
| | | | | | | | | | - Use a shared bufobj lock in getblk() and inmem(). - Convert softdep's lk to rwlock to match the bufobj lock. - Move INFREECNT to b_flags and protect it with the buf lock. - Remove unnecessary locking around bremfree() and BKGRDINPROG. Sponsored by: EMC / Isilon Storage Division Discussed with: mckusick, kib, mdf
* Import work done under project/nand (@235533) into head.gber2012-05-171-0/+2455
The NAND Flash environment consists of several distinct components: - NAND framework (drivers harness for NAND controllers and NAND chips) - NAND simulator (NANDsim) - NAND file system (NAND FS) - Companion tools and utilities - Documentation (manual pages) This work is still experimental. Please use with caution. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks
OpenPOWER on IntegriCloud