Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a0affd
)
libext2s: only define FS_IOC_FIEMAP on Linux systems
author
Theodore Ts'o
<tytso@mit.edu>
Wed, 11 May 2016 03:44:21 +0000
(23:44 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 11 May 2016 03:44:21 +0000
(23:44 -0400)
Hurd and *BSD is not going to have FS_IOC_FIEMAP, at least not at
Linux's codepoint.
Addresses-Debian-Bug: #822576
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/fiemap.h
patch
|
blob
|
history
diff --git
a/lib/ext2fs/fiemap.h
b/lib/ext2fs/fiemap.h
index
895cd0b
..
a331bc1
100644
(file)
--- a/
lib/ext2fs/fiemap.h
+++ b/
lib/ext2fs/fiemap.h
@@
-34,7
+34,7
@@
struct fiemap {
struct fiemap_extent fm_extents[0]; /* array of mapped extents (out) */
};
-#if
ndef FS_IOC_FIEMAP
+#if
defined(__linux__) && !defined(FS_IOC_FIEMAP)
#define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
#endif