mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
To align with all other places (and correct grammar), change all
upper-case "I.E." to "I.e.". Furthermore, ensure that "i.e." is
followed by a comma. Finally, ensure to use a double-space before
"I.e.," at the beginning of a sentence.
The following was used to change all offending uses (apart from
old ChangeLog files):
$ git grep -liF 'i.e.' \
| xargs sed -i \
-e 's/I\.E\./I.e./g' \
-e 's/\. \(I\.e\.\)/. \1/g' \
-e 's/\([Ii]\.e\.\)\( \)/\1,\2/g' \
-e 's/\([Ii]\.e\.\)$/\1,/g'
* cfg.mk (sc_prohibit_uppercase_id_est): Add new rule.
(sc_ensure_double_space_after_dot_before_id_est): Likewise.
(sc_ensure_comma_after_id_est): Likewise.
(old_NEWS_hash): Refresh hash via "make update-NEWS-hash".
* NEWS: Change use of "id est" abbreviation via the above command.
* README: Likewise.
* README-prereq: Likewise.
* doc/coreutils.texi: Likewise.
* gl/lib/rand-isaac.c: Likewise.
* gl/lib/tempname.c.diff: Likewise.
* man/stdbuf.x: Likewise.
* src/cat.c: Likewise.
* src/copy.c: Likewise.
* src/copy.h: Likewise.
* src/cp.c: Likewise.
* src/cut.c: Likewise.
* src/dd.c: Likewise.
* src/df.c: Likewise.
* src/fiemap.h: Likewise.
* src/longlong.h: Likewise.
* src/ls.c: Likewise.
* src/numfmt.c: Likewise.
* src/pr.c: Likewise.
* src/shred.c: Likewise.
* src/shuf.c: Likewise.
* src/split.c: Likewise.
* tests/Coreutils.pm: Likewise.
* tests/df/df-symlink.sh: Likewise.
* tests/df/skip-rootfs.sh: Likewise.
* tests/init.sh: Likewise.
* tests/ls/color-norm.sh: Likewise.
* tests/misc/basename.pl: Likewise.
* tests/misc/ls-misc.pl: Likewise.
* tests/misc/md5sum-bsd.sh: Likewise.
* tests/misc/shred-exact.sh: Likewise.
* tests/misc/sort.pl: Likewise.
* tests/misc/stdbuf.sh: Likewise.
* tests/misc/tac-continue.sh: Likewise.
* tests/rm/r-root.sh: Likewise.
* tests/tail-2/symlink.sh: Likewise.
108 lines
3.0 KiB
C
108 lines
3.0 KiB
C
/* FS_IOC_FIEMAP ioctl infrastructure.
|
|
Some portions copyright (C) 2007 Cluster File Systems, Inc
|
|
Authors: Mark Fasheh <mfasheh@suse.com>
|
|
Kalpak Shah <kalpak.shah@sun.com>
|
|
Andreas Dilger <adilger@sun.com>. */
|
|
|
|
/* Copy from kernel, modified to respect GNU code style by Jie Liu. */
|
|
|
|
#ifndef _LINUX_FIEMAP_H
|
|
# define _LINUX_FIEMAP_H
|
|
|
|
# include <stdint.h>
|
|
|
|
struct fiemap_extent
|
|
{
|
|
/* Logical offset in bytes for the start of the extent
|
|
from the beginning of the file. */
|
|
uint64_t fe_logical;
|
|
|
|
/* Physical offset in bytes for the start of the extent
|
|
from the beginning of the disk. */
|
|
uint64_t fe_physical;
|
|
|
|
/* Length in bytes for this extent. */
|
|
uint64_t fe_length;
|
|
|
|
uint64_t fe_reserved64[2];
|
|
|
|
/* FIEMAP_EXTENT_* flags for this extent. */
|
|
uint32_t fe_flags;
|
|
|
|
uint32_t fe_reserved[3];
|
|
};
|
|
|
|
struct fiemap
|
|
{
|
|
/* Logical offset(inclusive) at which to start mapping(in). */
|
|
uint64_t fm_start;
|
|
|
|
/* Logical length of mapping which userspace wants(in). */
|
|
uint64_t fm_length;
|
|
|
|
/* FIEMAP_FLAG_* flags for request(in/out). */
|
|
uint32_t fm_flags;
|
|
|
|
/* Number of extents that were mapped(out). */
|
|
uint32_t fm_mapped_extents;
|
|
|
|
/* Size of fm_extents array(in). */
|
|
uint32_t fm_extent_count;
|
|
|
|
uint32_t fm_reserved;
|
|
|
|
/* Array of mapped extents(out).
|
|
This is protected by the ifdef because it uses non standard
|
|
zero length arrays. Note C99 has the equivalent flexible arrays,
|
|
but we don't use those for maximum portability to older systems. */
|
|
# ifdef __linux__
|
|
struct fiemap_extent fm_extents[0];
|
|
# endif
|
|
};
|
|
|
|
/* The maximum offset can be mapped for a file. */
|
|
# define FIEMAP_MAX_OFFSET (~0ULL)
|
|
|
|
/* Sync file data before map. */
|
|
# define FIEMAP_FLAG_SYNC 0x00000001
|
|
|
|
/* Map extented attribute tree. */
|
|
# define FIEMAP_FLAG_XATTR 0x00000002
|
|
|
|
# define FIEMAP_FLAGS_COMPAT (FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR)
|
|
|
|
/* Last extent in file. */
|
|
# define FIEMAP_EXTENT_LAST 0x00000001
|
|
|
|
/* Data location unknown. */
|
|
# define FIEMAP_EXTENT_UNKNOWN 0x00000002
|
|
|
|
/* Location still pending, Sets EXTENT_UNKNOWN. */
|
|
# define FIEMAP_EXTENT_DELALLOC 0x00000004
|
|
|
|
/* Data cannot be read while fs is unmounted. */
|
|
# define FIEMAP_EXTENT_ENCODED 0x00000008
|
|
|
|
/* Data is encrypted by fs. Sets EXTENT_NO_BYPASS. */
|
|
# define FIEMAP_EXTENT_DATA_ENCRYPTED 0x00000080
|
|
|
|
/* Extent offsets may not be block aligned. */
|
|
# define FIEMAP_EXTENT_NOT_ALIGNED 0x00000100
|
|
|
|
/* Data mixed with metadata. Sets EXTENT_NOT_ALIGNED. */
|
|
# define FIEMAP_EXTENT_DATA_INLINE 0x00000200
|
|
|
|
/* Multiple files in block. Set EXTENT_NOT_ALIGNED. */
|
|
# define FIEMAP_EXTENT_DATA_TAIL 0x00000400
|
|
|
|
/* Space allocated, but not data (i.e., zero). */
|
|
# define FIEMAP_EXTENT_UNWRITTEN 0x00000800
|
|
|
|
/* File does not natively support extents. Result merged for efficiency. */
|
|
# define FIEMAP_EXTENT_MERGED 0x00001000
|
|
|
|
/* Space shared with other files. */
|
|
# define FIEMAP_EXTENT_SHARED 0x00002000
|
|
|
|
#endif
|