Extent (file systems)

Short description: Storage area in computer file system

In computing, an extent is a contiguous area of storage reserved for a file in a file system, represented as a range of block numbers, or tracks on count key data devices. A file can consist of zero or more extents; one file fragment requires one extent. The direct benefit is in storing each range compactly as two numbers, instead of canonically storing every block number in the range.[1] Also, extent allocation results in less file fragmentation.

Extent-based file systems can also eliminate most of the metadata overhead of large files that would traditionally be taken up by the block-allocation tree. But because the savings are small compared to the amount of stored data (for all file sizes in general) but make up a large portion of the metadata (for large files), the overall benefits in storage efficiency and performance are slight.[2]

In order to resist fragmentation, several extent-based file systems do allocate-on-flush. Many modern fault-tolerant file systems also do copy-on-write, although that increases fragmentation. As a similar design, the CP/M file system uses extents as well, but those do not correspond to the definition given above. CP/M's extents appear contiguously as a single block in the combined directory/allocation table, and they do not necessarily correspond to a contiguous data area on disk.

IBM OS/360 and successors allocate files in multiples of disk tracks or cylinders. Files could originally have up to 16 extents, but this restriction has since been lifted. The initial allocation size and the size of additional extents to be allocated if required are specified by the user via Job Control Language. The system attempts to allocate the initial size as a contiguous area, although this may be split if contiguous space is not available.

## Contents

* 1 Adoption
* 2 See also
* 3 References
* 4 External links

## Adoption

The systems supporting filesystem extents include the following:

* APFS - Apple File System
* ASM - Automatic Storage Management - Oracle's database-oriented filesystem
* BFS - BeOS, Zeta and Haiku operating systems
* Btrfs - Extent-based copy-on-write (COW) file system for Linux
* EFS - Extent File System - SGI's first-generation file system for Irix
* Ext4 - Linux filesystem (when the configuration enables extents - the default in Linux since version 2.6.23)
* Files-11 - OpenVMS filesystem
* HFS and HFS Plus - Hierarchical File System - Apple Macintosh filesystems
* High Performance File System (HPFS)  - on OS/2, eComStation and ArcaOS
* IceFS - IceFileSystem - optional file system for MorphOS
* JFS - Journaled File System - used by AIX, OS/2/eComStation/ArcaOS and Linux operating systems
* ISO 9660 - Extent-based file system for optical disc media
* Microsoft SQL Server - versions 2000–2008 support extents of up to 64 KB[3]
* Multi-Programming Executive - a filesystem by Hewlett-Packard
* NTFS
* OCFS2 - Oracle Cluster File System - a shared-disk file system for Linux
* Reiser4 - Linux filesystem (in "extents" mode)
* SINTRAN III - file system used by early computer company Norsk Data
* UDF - Universal Disk Format - standard for optical media
* VERITAS File System - enabled via the pre-allocation API and CLI
* XFS - SGI's second-generation file system for Irix and Linux

## See also

* Comparison of file systems

## References

1. ↑ "Understanding Ext4 (part1): Extents". 2010-12-20. http://digital-forensics.sans.org/blog/2010/12/20/digital-forensics-understanding-ext4-part-1-extents. "What's really a departure for EXT4 however, is the use of extents rather than the old, inefficient indirect block mechanism used by earlier Unix file systems (e.g. EXT2 and EXT3) for tracking file content. Extents are similar to cluster runs in the NTFS file system; essentially, they specify an initial block address and the number of blocks that make up the extent. A file that is fragmented will have multiple extents, but EXT4 tries very hard to keep files contiguous."
2. ↑ "Ext4 Disk Layout". 2015-01-26. https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Extent_Tree. "If flex_bg is enabled, it is possible to allocate very large files with a single extent, at a considerable reduction in metadata block use, and some improvement in disk efficiency."
3. ↑ "Understanding Pages and Extents". http://msdn.microsoft.com/en-us/library/ms190969.aspx.

## External links

* Getting to know the Solaris filesystem, Part 1: Allocation and storage strategy - a comparison of block-based and extent-based allocation

* v
* t
* e

File systems

* Comparison of file systems
* distributed
* Unix filesystem

Disk|

* ADFS
* AdvFS
* Amiga FFS
* Amiga OFS
* APFS
* AthFS
* bcachefs
* BFS
* Be File System
* Boot File System
* Btrfs
* CVFS
* CXFS
* DFS
* EFS
* Encrypting File System
* Extent File System
* Episode
* ext
* ext2
* ext3
* ext3cow
* ext4
* FFS/FFS2
* FAT
* exFAT
* Files-11
* Fossil
* HAMMER
* HAMMER2
* HFS
* HFS+
* HPFS
* HTFS
* IBM Spectrum Scale
* JFS
* LFS
* MFS
* Macintosh File System
* TiVo Media File System
* MINIX
* NetWare File System
* Next3
* NILFS
* NILFS2
* NSS
* NTFS
* OneFS
* PFS
* QFS
* QNX4FS
* ReFS
* ReiserFS
* Reiser4
* Reliance
* Reliance Nitro
* RFS
* SFS
* SNFS
* Soup (Apple)
* Tux3
* UBIFS
* UFS
* soft updates
* WAPBL
* VxFS
* WAFL
* Xiafs
* XFS
* Xsan
* zFS
* ZFS

Optical disc|

* HSF
* ISO 9660
* ISO 13490
* UDF

Flash memory and SSD|

* APFS
* FAT
* exFAT
* CHFS
* TFAT
* EROFS
* FFS2
* F2FS
* HPFS
* JFFS
* JFFS2
* JFS
* LogFS
* NILFS
* NILFS2
* NVFS
* YAFFS
* UBIFS

Distributed|

* CXFS
* GFS2
* Google File System
* OCFS2
* OrangeFS
* PVFS
* QFS
* Xsan
* more...

NAS|

* AFS (OpenAFS)
* AFP
* Coda
* DFS
* Google File System
* IBM Spectrum Scale
* Lustre
* NCP
* NFS
* POHMELFS
* Hadoop
* SMB (CIFS)
* SSHFS
* more...

Specialized|

* Aufs
* AXFS
* Boot File System
* CDfs
* Compact Disc File System
* cramfs
* Davfs2
* EROFS
* FTPFS
* FUSE
* Lnfs
* LTFS
* NOVA
* MVFS
* SquashFS
* UMSDOS
* OverlayFS
* UnionFS
* WBFS

Pseudo and virtual|

* configfs
* devfs
* debugfs
* kernfs
* procfs
* specfs
* sysfs
* tmpfs
* WinFS

Encrypted|

* eCryptfs
* EncFS
* EFS
* Rubberhose
* SSHFS
* ZFS

Types|

* Clustered
* Global
* Grid
* Self-certifying
* Flash
* Journaling
* Log-structured
* Object
* Record-oriented
* Semantic
* Steganographic
* Synthetic
* Versioning

Features|

* Case preservation
* Copy-on-write
* Data deduplication
* Data scrubbing
* Execute in place
* Extent
* File attribute
* Extended file attributes
* File change log
* Fork
* Links
* Hard
* Symbolic

Access control|

* Access control list
* Filesystem-level encryption
* Permissions
* Modes
* Sticky bit

Interfaces|

* File manager
* File system API
* Installable File System
* Virtual file system

Lists|

* Cryptographic
* Default
* Log-structured

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Extent (file systems). Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Extent_(file_systems)&oldid=242853"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template