summaryrefslogtreecommitdiffstats
path: root/sys/fs/udf
Commit message (Collapse)AuthorAgeFilesLines
* Change __FUNCTION__ to __func__scottl2004-03-031-2/+2
| | | | Submitted by: Stefan Farfeleder
* Re-arrange and consolidate some random debugging stuffscottl2003-12-071-20/+1
|
* Add hooks for translating directories entries using the iconv methods.scottl2003-11-055-32/+172
| | | | Submitted by: imura@ryu16.org
* Add udf_UncompressUnicodeByte() for processing cs0 strings in a way that thescottl2003-11-052-0/+46
| | | | | | iconv mehtods can handle Submitted by: imura@ryu16.org
* DuH!phk2003-10-181-1/+1
| | | | | bp->b_iooffset (the spot on the disk), not bp->b_offset (the offset in the file)
* Initialize b_offset before calling VOP_STRATEGY/VOP_SPECSTRATEGY.phk2003-10-181-0/+1
| | | | | Remove various comments of KASSERTS and comments about B_PHYS which does not apply anymore.
* - Don't cache_purge() in *_reclaim routines. vclean() does it for us sojeff2003-10-051-1/+0
| | | | this is redundant.
* Consistently use the BSD u_int and u_short instead of the SYSV uint andjhb2003-08-071-2/+2
| | | | | | | ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent. Requested by: bde (kern_ktrace.c)
* Add a "int fd" argument to VOP_OPEN() which in the future willphk2003-07-261-1/+1
| | | | | | | | | contain the filedescriptor number on opens from userland. The index is used rather than a "struct file *" since it conveys a bit more information, which may be useful to in particular fdescfs and /dev/fd/* For now pass -1 all over the place.
* Add the same KASSERT to all VOP_STRATEGY and VOP_SPECSTRATEGY implementationsphk2003-06-151-0/+2
| | | | to check that the buffer points to the correct vnode.
* Initialize struct vfsops C99-sparsely.phk2003-06-121-23/+18
| | | | | Submitted by: hmp Reviewed by: phk
* Eliminate the separate malloc type for the sparing table.scottl2003-05-041-3/+2
|
* Add a missing __inline. Strange that gcc never complained about it.scottl2003-05-041-3/+3
| | | | Implement udf_readlblks() in terms of RDSECTOR.
* Correctly calculate the size of the extent that should be read inscottl2003-05-041-3/+3
| | | | | udf_readatoffset(). This should fixe problems with reading udf filesystems created with mkisofs.
* Implement the node cache as a hash table.scottl2003-05-043-6/+26
|
* Make udf_allocv() return an unlocked vnode instead of a locked onetjr2003-03-161-2/+1
| | | | | | to avoid a "locking against myself" panic when udf_hashins() tries to lock it again. Lock the vnode in udf_hashins() before adding it to the hash bucket.
* Rename vfs_stdsync function to vfs_stdnosync which matches morekan2003-03-111-1/+1
| | | | | | | | | | | | | closely what function is really doing. Update all existing consumers to use the new name. Introduce a new vfs_stdsync function, which iterates over mount point's vnodes and call FSYNC on each one of them in turn. Make nwfs and smbfs use this new function instead of rolling their own identical sync implementations. Reviewed by: jeff
* Finish cleanup of vprint() which was begun with changing v_tag to a string.njl2003-03-031-9/+0
| | | | | | Remove extraneous uses of vop_null, instead defering to the default op. Rename vnode type "vfs" to the more descriptive "syncer". Fix formatting for various filesystems that use vop_print.
* Clean up whitespace, s/register //, refrain from strong urge to ANSIfy.des2003-03-021-6/+6
|
* uiomove-related caddr_t -> void * (just the low-hanging fruit)des2003-03-021-2/+2
|
* Back out M_* changes, per decision of the TRB.imp2003-02-192-6/+6
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-212-6/+6
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Temporarily introduce a new VOP_SPECSTRATEGY operation while I tryphk2003-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to sort out disk-io from file-io in the vm/buffer/filesystem space. The intent is to sort VOP_STRATEGY calls into those which operate on "real" vnodes and those which operate on VCHR vnodes. For the latter kind, the call will be changed to VOP_SPECSTRATEGY, possibly conditionally for those places where dual-use happens. Add a default VOP_SPECSTRATEGY method which will call the normal VOP_STRATEGY. First time it is called it will print debugging information. This will only happen if a normal vnode is passed to VOP_SPECSTRATEGY by mistake. Add a real VOP_SPECSTRATEGY in specfs, which does what VOP_STRATEGY does on a VCHR vnode today. Add a new VOP_STRATEGY method in specfs to catch instances where the conversion to VOP_SPECSTRATEGY has not yet happened. Handle the request just like we always did, but first time called print debugging information. Apart up to two instances of console messages per boot, this amounts to a glorified no-op commit. If you get any of the messages on your console I would very much like a copy of them mailed to phk@freebsd.org
* Since Jeffr made the std* functions the default in rev 1.63 ofphk2003-01-041-3/+0
| | | | | | | kern/vfs_defaults.c it is wrong for the individual filesystems to use the std* functions as that prevents override of the default. Found by: src/tools/tools/vop_table
* Regularize the vop_stdlock'ing protocol across all the filesystemsmckusick2002-10-142-5/+1
| | | | | | | | | | | | | | | | | | | | that use it. Specifically, vop_stdlock uses the lock pointed to by vp->v_vnlock. By default, getnewvnode sets up vp->v_vnlock to reference vp->v_lock. Filesystems that wish to use the default do not need to allocate a lock at the front of their node structure (as some still did) or do a lockinit. They can simply start using vn_lock/VOP_UNLOCK. Filesystems that wish to manage their own locks, but still use the vop_stdlock functions (such as nullfs) can simply replace vp->v_vnlock with a pointer to the lock that they wish to have used for the vnode. Such filesystems are responsible for setting the vp->v_vnlock back to the default in their vop_reclaim routine (e.g., vp->v_vnlock = &vp->v_lock). In theory, this set of changes cleans up the existing filesystem lock interface and should have no function change to the existing locking scheme. Sponsored by: DARPA & NAI Labs.
* Return ENOTTY on unrecognized ioctls.phk2002-09-261-1/+1
|
* use __packed.alfred2002-09-231-24/+24
|
* Remove all use of vnode->v_tag, replacing with appropriate substitutes.njl2002-09-141-1/+1
| | | | | | | | | | | | v_tag is now const char * and should only be used for debugging. Additionally: 1. All users of VT_NTS now check vfsconf->vf_type VFCF_NETWORK 2. The user of VT_PROCFS now checks for the new flag VV_PROCDEP, which is propagated by pseudofs to all child vnodes if the fs sets PFS_PROCDEP. Suggested by: phk Reviewed by: bde, rwatson (earlier version)
* Remove stddef.h from the header listscottl2002-08-231-1/+0
| | | | Prodded by: peter
* Remove the possibility of a race condition when reading the . and ..scottl2002-08-201-15/+16
| | | | entries.
* Don't abuse the stack when translating names.scottl2002-08-201-10/+12
|
* Clean up comments that are no longer relevant.scottl2002-08-151-12/+9
|
* Factor out some ugle code that's shared by udf_readdir and udf_lookup.scottl2002-08-153-246/+239
| | | | | | Significantly de-obfuscate udf_lookup Inspired By: tes@sgi.com
* Simplify the handling of a fragmented file_id descriptor. Alsoscottl2002-08-042-51/+50
| | | | de-obfuscate the file_char flags.
* - Replace v_flag with v_iflag and v_vflagjeff2002-08-041-1/+1
| | | | | | | | | | | | | | | - v_vflag is protected by the vnode lock and is used when synchronization with VOP calls is needed. - v_iflag is protected by interlock and is used for dealing with vnode management issues. These flags include X/O LOCK, FREE, DOOMED, etc. - All accesses to v_iflag and v_vflag have either been locked or marked with mp_fixme's. - Many ASSERT_VOP_LOCKED calls have been added where the locking was not clear. - Many functions in vfs_subr.c were restructured to provide for stronger locking. Idea stolen from: BSD/OS
* Calculate the correct physical block number for files that arescottl2002-08-021-4/+6
| | | | | | | | embedded into their file_entry descriptor. This is more for correctness, since these files cannot be bmap'ed/mmap'ed anyways. Enforce this restriction. Submitted by: tes@sgi.com
* Check for deleted files in udf_lookup(), not just udf_readdir().scottl2002-08-021-1/+6
| | | | Submitted by: tes@sgi.com
* Unbreak LINT; sort the includes so that functions are explicitlymarkm2002-07-161-8/+8
| | | | declared. Remove duplicate includes.
* Convert UDF to nmount.mux2002-06-152-50/+28
| | | | Reviewed by: scottl
* In VOP_LOOKUP, don't assume that the final pathname componentmux2002-05-161-2/+1
| | | | | | | will be in the same filesystem than the one where the current component is. Approved by: scottl
* Make daddr_t and u_daddr_t 64bits wide.phk2002-05-141-5/+5
| | | | | | Retire daddr64_t and use daddr_t instead. Sponsored by: DARPA & NAI Labs.
* Don't reference vop_std* since they are already implicitlyscottl2002-05-021-3/+0
| | | | | | referenced through the VOP_DEFAULT vector Submitted by: phk
* In udf_bmap(), return the physical block number, not the logicalscottl2002-05-021-1/+5
| | | | block number. This fixes things like cp (ouch!) which use mmap.
* Fix udf_read(). Honor the uio_resid when determining the size ofscottl2002-04-301-16/+22
| | | | | | | | | | | the block to read and copy out. This removes the hack in udf_readatoffset() for only reading one block at a time. WooHoo! Remove a redundant test for fragmented fids in both udf_readdir() and udf_lookup(). Add comment to both as to why the test is written the way it is. Add a few more safety checks for brelse(). Thanks to Timothy Shimmin <tes@boing.melbourne.sgi.com> for pointing out these problems.
* Sync with UDF p4 tree: Use POSIX integer types instead of BSD types.asmodai2002-04-154-159/+159
|
* Actually add the UDF files!scottl2002-04-147-0/+2986
OpenPOWER on IntegriCloud