]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
udf: Export superblock magic to userspace
authorJan Kara <jack@suse.cz>
Thu, 28 Apr 2016 08:40:09 +0000 (10:40 +0200)
committerJan Kara <jack@suse.cz>
Thu, 28 Apr 2016 08:43:31 +0000 (10:43 +0200)
Currently UDF superblock magic doesn't appear in any userspace header
files and thus userspace apps have hard time checking for this fs. Let's
export the magic to userspace as with any other filesystem.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/udf_sb.h
include/uapi/linux/magic.h

index 1f32c7bd9f57f21fb2859413cacde08b2949fd3a..27b5335730c9337424c0c32790e74173ac61f747 100644 (file)
@@ -3,9 +3,7 @@
 
 #include <linux/mutex.h>
 #include <linux/bitops.h>
-
-/* Since UDF 2.01 is ISO 13346 based... */
-#define UDF_SUPER_MAGIC                        0x15013346
+#include <linux/magic.h>
 
 #define UDF_MAX_READ_VERSION           0x0250
 #define UDF_MAX_WRITE_VERSION          0x0201
index 0de181ad73d5db7c6a50b11463a71ebc8d7adef5..546b38886e118fb0d2a21746a3fe50e0e0e00855 100644 (file)
@@ -78,5 +78,7 @@
 #define BTRFS_TEST_MAGIC       0x73727279
 #define NSFS_MAGIC             0x6e736673
 #define BPF_FS_MAGIC           0xcafe4a11
+/* Since UDF 2.01 is ISO 13346 based... */
+#define UDF_SUPER_MAGIC                0x15013346
 
 #endif /* __LINUX_MAGIC_H__ */