diff options
author | Phillip Lougher <phillip@lougher.demon.co.uk> | 2010-05-16 23:06:56 -0400 |
---|---|---|
committer | Phillip Lougher <phillip@lougher.demon.co.uk> | 2010-05-17 14:54:06 -0400 |
commit | 67f66cc6c728de183d9d43c243cb163c1ebd8e04 (patch) | |
tree | bd175ed5f66594ad76d099461560c3fe8a01181c /fs/squashfs/squashfs_fs.h | |
parent | f41d207cbedecd82f797adcce83890aa96f1c9e9 (diff) |
squashfs: add new extended inode types
Add new extended inode types that store the xattr_id field.
Also add the necessary code changes to make xattrs visibile.
Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
Diffstat (limited to 'fs/squashfs/squashfs_fs.h')
-rw-r--r-- | fs/squashfs/squashfs_fs.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fs/squashfs/squashfs_fs.h b/fs/squashfs/squashfs_fs.h index 6fe940cf901..8eabb808b78 100644 --- a/fs/squashfs/squashfs_fs.h +++ b/fs/squashfs/squashfs_fs.h | |||
@@ -287,6 +287,17 @@ struct squashfs_ipc_inode { | |||
287 | __le32 nlink; | 287 | __le32 nlink; |
288 | }; | 288 | }; |
289 | 289 | ||
290 | struct squashfs_lipc_inode { | ||
291 | __le16 inode_type; | ||
292 | __le16 mode; | ||
293 | __le16 uid; | ||
294 | __le16 guid; | ||
295 | __le32 mtime; | ||
296 | __le32 inode_number; | ||
297 | __le32 nlink; | ||
298 | __le32 xattr; | ||
299 | }; | ||
300 | |||
290 | struct squashfs_dev_inode { | 301 | struct squashfs_dev_inode { |
291 | __le16 inode_type; | 302 | __le16 inode_type; |
292 | __le16 mode; | 303 | __le16 mode; |
@@ -298,6 +309,18 @@ struct squashfs_dev_inode { | |||
298 | __le32 rdev; | 309 | __le32 rdev; |
299 | }; | 310 | }; |
300 | 311 | ||
312 | struct squashfs_ldev_inode { | ||
313 | __le16 inode_type; | ||
314 | __le16 mode; | ||
315 | __le16 uid; | ||
316 | __le16 guid; | ||
317 | __le32 mtime; | ||
318 | __le32 inode_number; | ||
319 | __le32 nlink; | ||
320 | __le32 rdev; | ||
321 | __le32 xattr; | ||
322 | }; | ||
323 | |||
301 | struct squashfs_symlink_inode { | 324 | struct squashfs_symlink_inode { |
302 | __le16 inode_type; | 325 | __le16 inode_type; |
303 | __le16 mode; | 326 | __le16 mode; |
@@ -375,12 +398,14 @@ struct squashfs_ldir_inode { | |||
375 | union squashfs_inode { | 398 | union squashfs_inode { |
376 | struct squashfs_base_inode base; | 399 | struct squashfs_base_inode base; |
377 | struct squashfs_dev_inode dev; | 400 | struct squashfs_dev_inode dev; |
401 | struct squashfs_ldev_inode ldev; | ||
378 | struct squashfs_symlink_inode symlink; | 402 | struct squashfs_symlink_inode symlink; |
379 | struct squashfs_reg_inode reg; | 403 | struct squashfs_reg_inode reg; |
380 | struct squashfs_lreg_inode lreg; | 404 | struct squashfs_lreg_inode lreg; |
381 | struct squashfs_dir_inode dir; | 405 | struct squashfs_dir_inode dir; |
382 | struct squashfs_ldir_inode ldir; | 406 | struct squashfs_ldir_inode ldir; |
383 | struct squashfs_ipc_inode ipc; | 407 | struct squashfs_ipc_inode ipc; |
408 | struct squashfs_lipc_inode lipc; | ||
384 | }; | 409 | }; |
385 | 410 | ||
386 | struct squashfs_dir_entry { | 411 | struct squashfs_dir_entry { |