aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fstat
Commit message (Collapse)AuthorAgeFilesLines
* MFC:Poul-Henning Kamp2005-03-172-5/+21
| | | | | | | | | | sanity-check fd_lastfile report jail dir. Approved by: re Notes: svn path=/stable/5/; revision=143747
* MFC revision 1.56Jeff Roberson2005-02-271-13/+9
| | | | Notes: svn path=/stable/5/; revision=142607
* MFC 1.57:Suleiman Souhlal2005-01-251-2/+2
| | | | | | | | | | | | | | | | | | Get the vnode from file.f_vnode instead of file.f_data. Nowadays, f_data points to the vnode only if the underlying filesystem doesn't use it for other purposes (devfs uses it to store the cdev, for example). Found by: csjp Reviewed by: csjp Approved by: phk, wes, grehan (mentor) MFC after: 1 week Approved by: grehan (mentor) Notes: svn path=/stable/5/; revision=140820
* Introduce options list the standard way.Philippe Charnier2004-07-261-2/+2
| | | | Notes: svn path=/head/; revision=132669
* Slide pipe.h include after the _KERNEL define in preparation for disallowingMike Silbersack2004-07-211-1/+1
| | | | | | | non-_KERNEL inclusions of pipe.h Notes: svn path=/head/; revision=132477
* Deal with double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131507
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-7/+14
| | | | Notes: svn path=/head/; revision=131491
* 1) ANSIfy.David Malone2004-06-295-45/+21
| | | | | | | | | | 2) Use %p to print a pointer. 3) Use longs for fileids and ino to avoid comparing signed and unsigned. 4) Make the KVM_READ macro a little more cranky. 5) Set WARNS while I'm here. Notes: svn path=/head/; revision=131293
* Second half of the dev_t cleanup.Poul-Henning Kamp2004-06-172-7/+7
| | | | | | | | | | | | | | The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc. Notes: svn path=/head/; revision=130640
* Teach fstat(1) about new location for socket state flags relating toRobert Watson2004-06-141-2/+2
| | | | | | | | | | socket buffer state. Submitted by: rik Reminded by: le Notes: svn path=/head/; revision=130489
* Correct the description of the -N option.Ruslan Ermilov2004-03-261-2/+2
| | | | Notes: svn path=/head/; revision=127451
* Do not cache and correctly free() dosmount entry in case of errors.Max Khon2003-09-231-3/+4
| | | | | | | PR: 53980 (partially) Notes: svn path=/head/; revision=120384
* fix this code properly. msdosfs can't have device nodes on them.John-Mark Gurney2003-06-243-3/+7
| | | | | | | | | | comment how to read device nodes from ufs (if an adventurous soul wants to fix it!). Reviewed by: bde Notes: svn path=/head/; revision=116780
* o Fix rev. 1.41, print a header. -STABLE is OK.Maxim Konovalov2003-06-231-0/+1
| | | | | | | | PR: bin/53585 Submitted by: Alexey Dokuchaev <danfe@regency.nsu.ru> Notes: svn path=/head/; revision=116717
* correct spelling of struct cdev * from dev_t which is a 32bit type andJohn-Mark Gurney2003-06-192-3/+3
| | | | | | | | | isn't very useful for passing pointers on LP64 systems. device names on sparc64 and alpha should now work. Notes: svn path=/head/; revision=116556
* Bow to the whining masses and change a union back into void *. RetainMatthew Dillon2003-01-131-4/+4
| | | | | | | | removal of unnecessary casts and throw in some minor cleanups to see if anyone complains, just for the hell of it. Notes: svn path=/head/; revision=109153
* Change struct file f_data to un_data, a union of the correct structMatthew Dillon2003-01-121-6/+4
| | | | | | | | | | | | | pointer types, and remove a huge number of casts from code using it. Change struct xfile xf_data to xun_data (ABI is still compatible). If we need to add a #define for f_data and xf_data we can, but I don't think it will be necessary. There are no operational changes in this commit. Notes: svn path=/head/; revision=109123
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-6/+6
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* Rename struct specinfo to the more appropriate struct cdev.Poul-Henning Kamp2002-09-271-2/+2
| | | | | | | Agreed on: jake, rwatson, jhb Notes: svn path=/head/; revision=104043
* Userland changes to go with vnode->v_tag change.Nate Lawson2002-09-141-23/+18
| | | | Notes: svn path=/head/; revision=103325
* Unbreak building of fstat following version 1.23 ofBosko Milekic2002-08-141-1/+1
| | | | | | | src/sys/ufs/ufs/quota.h by including mount.h before ufs/quota.h. Notes: svn path=/head/; revision=101872
* Consistently use FBSDIDDavid E. O'Brien2002-06-303-6/+8
| | | | Notes: svn path=/head/; revision=99112
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org> Notes: svn path=/head/; revision=98542
* Factor out some code in preparation for un-kmeming fstat(1).Dag-Erling Smørgrav2002-06-061-18/+43
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=97946
* Replace /kernel with /boot/kernel/kernel.Josef Karthauser2002-05-091-1/+1
| | | | | | | | PR: docs/37757 Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org> Notes: svn path=/head/; revision=96247
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* .Ar filename ... is equivalent to .Ar.Philippe Charnier2002-04-121-2/+2
| | | | Notes: svn path=/head/; revision=94559
* Fix constness warnings.David Malone2002-03-302-13/+14
| | | | | | | | | Remove register keyword. Don't initialise "badtype" in declaration - it was initialised below anyway. Remove prototype for strcpy. Notes: svn path=/head/; revision=93427
* Don't use gcc specific flags.David Malone2002-03-301-1/+0
| | | | Notes: svn path=/head/; revision=93426
* Use a slightly less obscure title than "file status".Garrett Wollman2002-03-271-2/+2
| | | | Notes: svn path=/head/; revision=93300
* remove __PWarner Losh2002-03-222-15/+15
| | | | Notes: svn path=/head/; revision=92920
* Add support for devfs. In other words, for -CURRENT, make work at allBrian Feldman2001-12-171-0/+41
| | | | | | | again for normal device nodes. Notes: svn path=/head/; revision=88051
* Anding the fsid with 0xffff was causing aliasing problems.David Malone2001-11-053-4/+4
| | | | | | | | | | PR: 17405, 16320 Submitted by: Mark W. Krentel <krentel@dreamscape.com> Submitted by: Peter Edwards <peter.edwards@ireland.com> MFC after: 2 weeks Notes: svn path=/head/; revision=86100
* Compensate for "Compensate for header dethreading" by backing it out.Bruce Evans2001-10-101-1/+0
| | | | Notes: svn path=/head/; revision=84768
* Userland part of nfs client/server split and cleanup.Peter Wemm2001-09-181-2/+2
| | | | Notes: svn path=/head/; revision=83653
* SECURITY: Drop `setgid kmem' bit as early as possible.Ruslan Ermilov2001-08-311-0/+1
| | | | Notes: svn path=/head/; revision=82664
* Fix 64 bit issues so that sockstat && fstat work correctly on alpha.Matt Jacob2001-07-251-9/+8
| | | | | | | | | PR: 29231 Submitted by: pherman@frenchfries.net MFC after: 2 weeks Notes: svn path=/head/; revision=80355
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* Teach fstat(1) about FIFO's - it's OK to display them as regular files.Peter Pentchev2001-06-181-3/+10
| | | | | | | | | While I'm here, fix two second-level indents to be four spaces. Reviewed by: dd, -audit Notes: svn path=/head/; revision=78401
* Remove MFSPoul-Henning Kamp2001-05-291-4/+0
| | | | Notes: svn path=/head/; revision=77435
* - sys/msdosfs moved to sys/fs/msdosfsRuslan Ermilov2001-05-251-5/+5
| | | | | | | | - msdos.ko renamed to msdosfs.ko - /usr/include/msdosfs moved to /usr/include/fs/msdosfs Notes: svn path=/head/; revision=77162
* define _KERNEL before including <sys/conf.h>Poul-Henning Kamp2001-05-231-1/+1
| | | | Notes: svn path=/head/; revision=77099
* Removed -I${.CURDIR}/.../sys from CFLAGS.Ruslan Ermilov2001-05-181-1/+0
| | | | Notes: svn path=/head/; revision=76812
* Compensate for header dethreading.Mark Murray2001-05-011-0/+1
| | | | Notes: svn path=/head/; revision=76169
* Revert consequences of changes to mount.h, part 2.Greg Lehey2001-04-292-3/+0
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=76117
* Include correct header files, in preparation for fixing sys/mount.h.Greg Lehey2001-04-232-0/+3
| | | | | | | Suggested-by: phk Notes: svn path=/head/; revision=75853
* Fix `fstat -m' (show memory-mapped files), which was broken byIan Dowse2001-02-151-2/+2
| | | | | | | | | | revision 1.25. When evaluating the termination condition for the iteration over all map entries, we must take care to use the kernel versions of all pointers. The code was comparing a kernel pointer to a pointer within a local variable, so the loop never terminated. Notes: svn path=/head/; revision=72527
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-1/+1
| | | | Notes: svn path=/head/; revision=70197
* Change the proc information returned from the kernel so that itKirk McKusick2000-12-121-20/+17
| | | | | | | | | | | | | | | no longer contains kernel specific data structures, but rather only scalar values and structures that are already part of the kernel/user interface, specifically rusage and rtprio. It no longer contains proc, session, pcred, ucred, procsig, vmspace, pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If any of these changed in size, ps, w, fstat, gcore, systat, and top would all stop working. The new structure has over 200 bytes of unassigned space for future values to be added, yet is nearly 100 bytes smaller per entry than the structure that it replaced. Notes: svn path=/head/; revision=69896