xattr.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:24k
- /*
- * Copyright (c) International Business Machines Corp., 2000-2002
- * Copyright (c) Christoph Hellwig, 2002
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
- * the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
- #include <linux/fs.h>
- #include <linux/xattr.h>
- #include "jfs_incore.h"
- #include "jfs_dmap.h"
- #include "jfs_debug.h"
- #include "jfs_dinode.h"
- #include "jfs_extent.h"
- #include "jfs_metapage.h"
- #include "jfs_xattr.h"
- /*
- * jfs_xattr.c: extended attribute service
- *
- * Overall design --
- *
- * Format:
- *
- * Extended attribute lists (jfs_ea_list) consist of an overall size (32 bit
- * value) and a variable (0 or more) number of extended attribute
- * entries. Each extended attribute entry (jfs_ea) is a <name,value> double
- * where <name> is constructed from a null-terminated ascii string
- * (1 ... 255 bytes in the name) and <value> is arbitrary 8 bit data
- * (1 ... 65535 bytes). The in-memory format is
- *
- * 0 1 2 4 4 + namelen + 1
- * +-------+--------+--------+----------------+-------------------+
- * | Flags | Name | Value | Name String