2 Index: linux-2.6.0/fs/ext3/ialloc.c
3 ===================================================================
4 --- linux-2.6.0.orig/fs/ext3/ialloc.c 2004-01-14 18:54:11.000000000 +0300
5 +++ linux-2.6.0/fs/ext3/ialloc.c 2004-01-14 18:54:12.000000000 +0300
7 inode->i_generation = EXT3_SB(sb)->s_next_generation++;
9 ei->i_state = EXT3_STATE_NEW;
10 + if (EXT3_INODE_SIZE(inode->i_sb) > EXT3_GOOD_OLD_INODE_SIZE) {
11 + ei->i_extra_isize = sizeof(__u16) /* i_extra_isize */
12 + + sizeof(__u16); /* i_pad1 */
14 + ei->i_extra_isize = 0;
17 if(DQUOT_ALLOC_INODE(inode)) {
18 Index: linux-2.6.0/fs/ext3/inode.c
19 ===================================================================
20 --- linux-2.6.0.orig/fs/ext3/inode.c 2004-01-14 18:54:12.000000000 +0300
21 +++ linux-2.6.0/fs/ext3/inode.c 2004-01-14 19:09:46.000000000 +0300
23 * trying to determine the inode's location on-disk and no read need be
26 -static int ext3_get_inode_loc(struct inode *inode,
27 +int ext3_get_inode_loc(struct inode *inode,
28 struct ext3_iloc *iloc, int in_mem)
31 @@ -2547,6 +2547,11 @@
32 ei->i_data[block] = raw_inode->i_block[block];
33 INIT_LIST_HEAD(&ei->i_orphan);
35 + if (EXT3_INODE_SIZE(inode->i_sb) > EXT3_GOOD_OLD_INODE_SIZE)
36 + ei->i_extra_isize = le16_to_cpu(raw_inode->i_extra_isize);
38 + ei->i_extra_isize = 0;
40 if (S_ISREG(inode->i_mode)) {
41 inode->i_op = &ext3_file_inode_operations;
42 inode->i_fop = &ext3_file_operations;
44 } else for (block = 0; block < EXT3_N_BLOCKS; block++)
45 raw_inode->i_block[block] = ei->i_data[block];
47 + if (EXT3_INODE_SIZE(inode->i_sb) > EXT3_GOOD_OLD_INODE_SIZE)
48 + raw_inode->i_extra_isize = cpu_to_le16(ei->i_extra_isize);
50 BUFFER_TRACE(bh, "call ext3_journal_dirty_metadata");
51 rc = ext3_journal_dirty_metadata(handle, bh);
53 Index: linux-2.6.0/fs/ext3/xattr.c
54 ===================================================================
55 --- linux-2.6.0.orig/fs/ext3/xattr.c 2003-12-30 08:33:13.000000000 +0300
56 +++ linux-2.6.0/fs/ext3/xattr.c 2004-01-14 18:54:12.000000000 +0300
63 - * Copy an extended attribute into the buffer
64 - * provided, or compute the buffer size required.
65 - * Buffer is NULL to compute the size of the buffer required.
66 + * ext3_xattr_block_get()
68 - * Returns a negative error number on failure, or the number of bytes
69 - * used / required on success.
70 + * routine looks for attribute in EA block and returns it's value and size
73 -ext3_xattr_get(struct inode *inode, int name_index, const char *name,
74 +ext3_xattr_block_get(struct inode *inode, int name_index, const char *name,
75 void *buffer, size_t buffer_size)
77 struct buffer_head *bh = NULL;
82 - down_read(&EXT3_I(inode)->xattr_sem);
84 if (!EXT3_I(inode)->i_file_acl)
90 - up_read(&EXT3_I(inode)->xattr_sem);
97 + * ext3_xattr_ibode_get()
99 - * Copy a list of attribute names into the buffer
100 + * routine looks for attribute in inode body and returns it's value and size
103 +ext3_xattr_ibody_get(struct inode *inode, int name_index, const char *name,
104 + void *buffer, size_t buffer_size)
106 + int size, name_len = strlen(name), storage_size;
107 + struct ext3_xattr_entry *last;
108 + struct ext3_inode *raw_inode;
109 + struct ext3_iloc iloc;
113 + if (EXT3_SB(inode->i_sb)->s_inode_size <= EXT3_GOOD_OLD_INODE_SIZE)
116 + ret = ext3_get_inode_loc(inode, &iloc);
119 + raw_inode = ext3_raw_inode(&iloc);
121 + storage_size = EXT3_SB(inode->i_sb)->s_inode_size -
122 + EXT3_GOOD_OLD_INODE_SIZE -
123 + EXT3_I(inode)->i_extra_isize -
125 + start = (char *) raw_inode + EXT3_GOOD_OLD_INODE_SIZE +
126 + EXT3_I(inode)->i_extra_isize;
127 + if (le32_to_cpu((*(__u32*) start)) != EXT3_XATTR_MAGIC) {
131 + start += sizeof(__u32);
132 + end = (char *) raw_inode + EXT3_SB(inode->i_sb)->s_inode_size;
134 + last = (struct ext3_xattr_entry *) start;
135 + while (!IS_LAST_ENTRY(last)) {
136 + struct ext3_xattr_entry *next = EXT3_XATTR_NEXT(last);
137 + if (le32_to_cpu(last->e_value_size) > storage_size ||
138 + (char *) next >= end) {
139 + ext3_error(inode->i_sb, "ext3_xattr_ibody_get",
140 + "inode %ld", inode->i_ino);
144 + if (name_index == last->e_name_index &&
145 + name_len == last->e_name_len &&
146 + !memcmp(name, last->e_name, name_len))
151 + /* can't find EA */
156 + size = le32_to_cpu(last->e_value_size);
159 + if (buffer_size >= size) {
160 + memcpy(buffer, start + le16_to_cpu(last->e_value_offs),
173 + * Copy an extended attribute into the buffer
174 * provided, or compute the buffer size required.
175 * Buffer is NULL to compute the size of the buffer required.
178 * used / required on success.
181 -ext3_xattr_list(struct inode *inode, char *buffer, size_t buffer_size)
182 +ext3_xattr_get(struct inode *inode, int name_index, const char *name,
183 + void *buffer, size_t buffer_size)
187 + down_read(&EXT3_I(inode)->xattr_sem);
189 + /* try to find attribute in inode body */
190 + err = ext3_xattr_ibody_get(inode, name_index, name,
191 + buffer, buffer_size);
193 + /* search was unsuccessful, try to find EA in dedicated block */
194 + err = ext3_xattr_block_get(inode, name_index, name,
195 + buffer, buffer_size);
196 + up_read(&EXT3_I(inode)->xattr_sem);
201 +/* ext3_xattr_ibody_list()
203 + * generate list of attributes stored in EA block
206 +ext3_xattr_block_list(struct inode *inode, char *buffer, size_t buffer_size)
208 struct buffer_head *bh = NULL;
209 struct ext3_xattr_entry *entry;
211 ea_idebug(inode, "buffer=%p, buffer_size=%ld",
212 buffer, (long)buffer_size);
214 - down_read(&EXT3_I(inode)->xattr_sem);
216 if (!EXT3_I(inode)->i_file_acl)
221 ea_bdebug(bh, "b_count=%d, refcount=%d",
222 - atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount));
223 + (int) atomic_read(&(bh->b_count)), (int) le32_to_cpu(HDR(bh)->h_refcount));
224 end = bh->b_data + bh->b_size;
225 if (HDR(bh)->h_magic != cpu_to_le32(EXT3_XATTR_MAGIC) ||
226 HDR(bh)->h_blocks != cpu_to_le32(1)) {
227 @@ -431,11 +520,138 @@
231 - up_read(&EXT3_I(inode)->xattr_sem);
236 +/* ext3_xattr_ibody_list()
238 + * generate list of attributes stored in inode body
241 +ext3_xattr_ibody_list(struct inode *inode, char *buffer, size_t buffer_size)
243 + struct ext3_xattr_entry *last;
244 + struct ext3_inode *raw_inode;
245 + char *start, *end, *buf;
246 + struct ext3_iloc iloc;
251 + if (EXT3_SB(inode->i_sb)->s_inode_size <= EXT3_GOOD_OLD_INODE_SIZE)
254 + ret = ext3_get_inode_loc(inode, &iloc);
257 + raw_inode = ext3_raw_inode(&iloc);
259 + storage_size = EXT3_SB(inode->i_sb)->s_inode_size -
260 + EXT3_GOOD_OLD_INODE_SIZE -
261 + EXT3_I(inode)->i_extra_isize -
263 + start = (char *) raw_inode + EXT3_GOOD_OLD_INODE_SIZE +
264 + EXT3_I(inode)->i_extra_isize;
265 + if (le32_to_cpu((*(__u32*) start)) != EXT3_XATTR_MAGIC) {
269 + start += sizeof(__u32);
270 + end = (char *) raw_inode + EXT3_SB(inode->i_sb)->s_inode_size;
272 + last = (struct ext3_xattr_entry *) start;
273 + while (!IS_LAST_ENTRY(last)) {
274 + struct ext3_xattr_entry *next = EXT3_XATTR_NEXT(last);
275 + struct ext3_xattr_handler *handler;
276 + if (le32_to_cpu(last->e_value_size) > storage_size ||
277 + (char *) next >= end) {
278 + ext3_error(inode->i_sb, "ext3_xattr_ibody_list",
279 + "inode %ld", inode->i_ino);
283 + handler = ext3_xattr_handler(last->e_name_index);
285 + size += handler->list(NULL, inode, last->e_name,
295 + if (size > buffer_size)
299 + last = (struct ext3_xattr_entry *) start;
301 + while (!IS_LAST_ENTRY(last)) {
302 + struct ext3_xattr_entry *next = EXT3_XATTR_NEXT(last);
303 + struct ext3_xattr_handler *handler;
304 + handler = ext3_xattr_handler(last->e_name_index);
306 + buf += handler->list(buf, inode, last->e_name,
317 + * ext3_xattr_list()
319 + * Copy a list of attribute names into the buffer
320 + * provided, or compute the buffer size required.
321 + * Buffer is NULL to compute the size of the buffer required.
323 + * Returns a negative error number on failure, or the number of bytes
324 + * used / required on success.
327 +ext3_xattr_list(struct inode *inode, char *buffer, size_t buffer_size)
330 + int size = buffer_size;
332 + down_read(&EXT3_I(inode)->xattr_sem);
334 + /* get list of attributes stored in inode body */
335 + error = ext3_xattr_ibody_list(inode, buffer, buffer_size);
337 + /* some error occured while collecting
338 + * attributes in inode body */
344 + /* get list of attributes stored in dedicated block */
346 + buffer_size -= error;
347 + if (buffer_size <= 0) {
354 + error = ext3_xattr_block_list(inode, buffer, buffer_size);
356 + /* listing was successful, so we return len */
360 + up_read(&EXT3_I(inode)->xattr_sem);
361 + return error + size;
365 * If the EXT3_FEATURE_COMPAT_EXT_ATTR feature of this file system is
367 @@ -457,6 +673,279 @@
371 + * ext3_xattr_ibody_find()
373 + * search attribute and calculate free space in inode body
374 + * NOTE: free space includes space our attribute hold
377 +ext3_xattr_ibody_find(struct inode *inode, int name_index,
378 + const char *name, struct ext3_xattr_entry *rentry, int *free)
380 + struct ext3_xattr_entry *last;
381 + struct ext3_inode *raw_inode;
382 + int name_len = strlen(name);
383 + int err, storage_size;
384 + struct ext3_iloc iloc;
388 + if (EXT3_SB(inode->i_sb)->s_inode_size <= EXT3_GOOD_OLD_INODE_SIZE)
391 + err = ext3_get_inode_loc(inode, &iloc);
394 + raw_inode = ext3_raw_inode(&iloc);
396 + storage_size = EXT3_SB(inode->i_sb)->s_inode_size -
397 + EXT3_GOOD_OLD_INODE_SIZE -
398 + EXT3_I(inode)->i_extra_isize -
400 + *free = storage_size - sizeof(__u32);
401 + start = (char *) raw_inode + EXT3_GOOD_OLD_INODE_SIZE +
402 + EXT3_I(inode)->i_extra_isize;
403 + if (le32_to_cpu((*(__u32*) start)) != EXT3_XATTR_MAGIC) {
407 + start += sizeof(__u32);
408 + end = (char *) raw_inode + EXT3_SB(inode->i_sb)->s_inode_size;
410 + last = (struct ext3_xattr_entry *) start;
411 + while (!IS_LAST_ENTRY(last)) {
412 + struct ext3_xattr_entry *next = EXT3_XATTR_NEXT(last);
413 + if (le32_to_cpu(last->e_value_size) > storage_size ||
414 + (char *) next >= end) {
415 + ext3_error(inode->i_sb, "ext3_xattr_ibody_find",
416 + "inode %ld", inode->i_ino);
421 + if (name_index == last->e_name_index &&
422 + name_len == last->e_name_len &&
423 + !memcmp(name, last->e_name, name_len)) {
424 + memcpy(rentry, last, sizeof(struct ext3_xattr_entry));
427 + *free -= EXT3_XATTR_LEN(last->e_name_len);
428 + *free -= le32_to_cpu(last->e_value_size);
438 + * ext3_xattr_block_find()
440 + * search attribute and calculate free space in EA block (if it allocated)
441 + * NOTE: free space includes space our attribute hold
444 +ext3_xattr_block_find(struct inode *inode, int name_index, const char *name,
445 + struct ext3_xattr_entry *rentry, int *free)
447 + struct buffer_head *bh = NULL;
448 + struct ext3_xattr_entry *entry;
450 + int name_len, error = -ENOENT;
452 + if (!EXT3_I(inode)->i_file_acl) {
453 + *free = inode->i_sb->s_blocksize -
454 + sizeof(struct ext3_xattr_header) -
458 + ea_idebug(inode, "reading block %d", EXT3_I(inode)->i_file_acl);
459 + bh = sb_bread(inode->i_sb, EXT3_I(inode)->i_file_acl);
462 + ea_bdebug(bh, "b_count=%d, refcount=%d",
463 + atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount));
464 + end = bh->b_data + bh->b_size;
465 + if (HDR(bh)->h_magic != cpu_to_le32(EXT3_XATTR_MAGIC) ||
466 + HDR(bh)->h_blocks != cpu_to_le32(1)) {
467 +bad_block: ext3_error(inode->i_sb, "ext3_xattr_get",
468 + "inode %ld: bad block %d", inode->i_ino,
469 + EXT3_I(inode)->i_file_acl);
473 + /* find named attribute */
474 + name_len = strlen(name);
475 + *free = bh->b_size - sizeof(__u32);
477 + entry = FIRST_ENTRY(bh);
478 + while (!IS_LAST_ENTRY(entry)) {
479 + struct ext3_xattr_entry *next =
480 + EXT3_XATTR_NEXT(entry);
481 + if ((char *)next >= end)
483 + if (name_index == entry->e_name_index &&
484 + name_len == entry->e_name_len &&
485 + memcmp(name, entry->e_name, name_len) == 0) {
486 + memcpy(rentry, entry, sizeof(struct ext3_xattr_entry));
489 + *free -= EXT3_XATTR_LEN(entry->e_name_len);
490 + *free -= le32_to_cpu(entry->e_value_size);
500 + * ext3_xattr_inode_set()
502 + * this routine add/remove/replace attribute in inode body
505 +ext3_xattr_ibody_set(handle_t *handle, struct inode *inode, int name_index,
506 + const char *name, const void *value, size_t value_len,
509 + struct ext3_xattr_entry *last, *next, *here = NULL;
510 + struct ext3_inode *raw_inode;
511 + int name_len = strlen(name);
512 + int esize = EXT3_XATTR_LEN(name_len);
513 + struct buffer_head *bh;
514 + int err, storage_size;
515 + struct ext3_iloc iloc;
516 + int free, min_offs;
519 + if (EXT3_SB(inode->i_sb)->s_inode_size <= EXT3_GOOD_OLD_INODE_SIZE)
522 + err = ext3_get_inode_loc(inode, &iloc);
525 + raw_inode = ext3_raw_inode(&iloc);
528 + storage_size = EXT3_SB(inode->i_sb)->s_inode_size -
529 + EXT3_GOOD_OLD_INODE_SIZE -
530 + EXT3_I(inode)->i_extra_isize -
532 + start = (char *) raw_inode + EXT3_GOOD_OLD_INODE_SIZE +
533 + EXT3_I(inode)->i_extra_isize;
534 + if ((*(__u32*) start) != EXT3_XATTR_MAGIC) {
535 + /* inode had no attributes before */
536 + *((__u32*) start) = cpu_to_le32(EXT3_XATTR_MAGIC);
538 + start += sizeof(__u32);
539 + end = (char *) raw_inode + EXT3_SB(inode->i_sb)->s_inode_size;
540 + min_offs = storage_size;
541 + free = storage_size - sizeof(__u32);
543 + last = (struct ext3_xattr_entry *) start;
544 + while (!IS_LAST_ENTRY(last)) {
545 + next = EXT3_XATTR_NEXT(last);
546 + if (le32_to_cpu(last->e_value_size) > storage_size ||
547 + (char *) next >= end) {
548 + ext3_error(inode->i_sb, "ext3_xattr_ibody_set",
549 + "inode %ld", inode->i_ino);
554 + if (last->e_value_size) {
555 + int offs = le16_to_cpu(last->e_value_offs);
556 + if (offs < min_offs)
559 + if (name_index == last->e_name_index &&
560 + name_len == last->e_name_len &&
561 + !memcmp(name, last->e_name, name_len))
564 + /* we calculate all but our attribute
565 + * because it will be removed before changing */
566 + free -= EXT3_XATTR_LEN(last->e_name_len);
567 + free -= le32_to_cpu(last->e_value_size);
572 + if (value && (esize + value_len > free)) {
577 + err = ext3_reserve_inode_write(handle, inode, &iloc);
584 + /* time to remove old value */
585 + struct ext3_xattr_entry *e;
586 + int size = le32_to_cpu(here->e_value_size);
587 + int border = le16_to_cpu(here->e_value_offs);
591 + memmove(start + min_offs + size, start + min_offs,
592 + border - min_offs);
594 + /* recalculate offsets */
595 + e = (struct ext3_xattr_entry *) start;
596 + while (!IS_LAST_ENTRY(e)) {
597 + struct ext3_xattr_entry *next = EXT3_XATTR_NEXT(e);
598 + int offs = le16_to_cpu(e->e_value_offs);
601 + cpu_to_le16(offs + size);
607 + border = EXT3_XATTR_LEN(here->e_name_len);
608 + src = (char *) here + EXT3_XATTR_LEN(here->e_name_len);
609 + size = (char *) last - src;
610 + if ((char *) here + size > end)
611 + printk("ALERT at %s:%d: 0x%p + %d > 0x%p\n",
612 + __FILE__, __LINE__, here, size, end);
613 + memmove(here, src, size);
614 + last = (struct ext3_xattr_entry *) ((char *) last - border);
615 + *((__u32 *) last) = 0;
619 + int offs = min_offs - value_len;
620 + /* use last to create new entry */
621 + last->e_name_len = strlen(name);
622 + last->e_name_index = name_index;
623 + last->e_value_offs = cpu_to_le16(offs);
624 + last->e_value_size = cpu_to_le32(value_len);
625 + last->e_hash = last->e_value_block = 0;
626 + memset(last->e_name, 0, esize);
627 + memcpy(last->e_name, name, last->e_name_len);
628 + if (start + offs + value_len > end)
629 + printk("ALERT at %s:%d: 0x%p + %d + %d > 0x%p\n",
630 + __FILE__, __LINE__, start, offs,
632 + memcpy(start + offs, value, value_len);
633 + last = EXT3_XATTR_NEXT(last);
634 + *((__u32 *) last) = 0;
637 + ext3_mark_iloc_dirty(handle, inode, &iloc);
644 * ext3_xattr_set_handle()
646 * Create, replace or remove an extended attribute for this inode. Buffer
647 @@ -470,6 +959,104 @@
650 ext3_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index,
651 + const char *name, const void *value, size_t value_len,
654 + struct ext3_xattr_entry entry;
655 + int err, where = 0, found = 0, total;
656 + int free1 = -1, free2 = -1;
659 + ea_idebug(inode, "name=%d.%s, value=%p, value_len=%ld",
660 + name_index, name, value, (long)value_len);
662 + if (IS_RDONLY(inode))
664 + if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
670 + name_len = strlen(name);
671 + if (name_len > 255 || value_len > inode->i_sb->s_blocksize)
673 + down_write(&EXT3_I(inode)->xattr_sem);
675 + /* try to find attribute in inode body */
676 + err = ext3_xattr_ibody_find(inode, name_index, name, &entry, &free1);
678 + /* found EA in inode */
681 + } else if (err == -ENOENT) {
682 + /* there is no such attribute in inode body */
683 + /* try to find attribute in dedicated block */
684 + err = ext3_xattr_block_find(inode, name_index, name,
686 + if (err != 0 && err != -ENOENT) {
687 + /* not found EA in block */
689 + } else if (err == 0) {
690 + /* found EA in block */
697 + /* check flags: may replace? may create ? */
698 + if (found && (flags & XATTR_CREATE)) {
701 + } else if (!found && (flags & XATTR_REPLACE)) {
706 + /* check if we have enough space to store attribute */
707 + total = EXT3_XATTR_LEN(strlen(name)) + value_len;
708 + if (free1 >= 0 && total > free1 && free2 >= 0 && total > free2) {
709 + /* have no enough space */
714 + /* time to remove attribute */
717 + /* EA is stored in inode body */
718 + ext3_xattr_ibody_set(handle, inode, name_index, name,
721 + /* EA is stored in separated block */
722 + ext3_xattr_block_set(handle, inode, name_index, name,
727 + /* try to store EA in inode body */
728 + err = ext3_xattr_ibody_set(handle, inode, name_index, name,
729 + value, value_len, flags);
731 + /* can't store EA in inode body */
732 + /* try to store in block */
733 + err = ext3_xattr_block_set(handle, inode, name_index,
734 + name, value, value_len, flags);
738 + up_write(&EXT3_I(inode)->xattr_sem);
743 + * ext3_xattr_block_set()
745 + * this routine add/remove/replace attribute in EA block
748 +ext3_xattr_block_set(handle_t *handle, struct inode *inode, int name_index,
749 const char *name, const void *value, size_t value_len,
752 @@ -492,22 +1078,7 @@
753 * towards the end of the block).
754 * end -- Points right after the block pointed to by header.
757 - ea_idebug(inode, "name=%d.%s, value=%p, value_len=%ld",
758 - name_index, name, value, (long)value_len);
760 - if (IS_RDONLY(inode))
762 - if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
768 name_len = strlen(name);
769 - if (name_len > 255 || value_len > sb->s_blocksize)
771 - down_write(&EXT3_I(inode)->xattr_sem);
772 if (EXT3_I(inode)->i_file_acl) {
773 /* The inode already has an extended attribute block. */
774 bh = sb_bread(sb, EXT3_I(inode)->i_file_acl);
777 if (!(bh && header == HDR(bh)))
779 - up_write(&EXT3_I(inode)->xattr_sem);
783 Index: linux-2.6.0/fs/ext3/xattr.h
784 ===================================================================
785 --- linux-2.6.0.orig/fs/ext3/xattr.h 2003-06-24 18:04:43.000000000 +0400
786 +++ linux-2.6.0/fs/ext3/xattr.h 2004-01-14 18:54:12.000000000 +0300
788 extern int ext3_xattr_get(struct inode *, int, const char *, void *, size_t);
789 extern int ext3_xattr_list(struct inode *, char *, size_t);
790 extern int ext3_xattr_set(struct inode *, int, const char *, const void *, size_t, int);
791 -extern int ext3_xattr_set_handle(handle_t *, struct inode *, int, const char *, const void *, size_t, int);
792 +extern int ext3_xattr_set_handle(handle_t *, struct inode *, int, const char *,const void *,size_t,int);
793 +extern int ext3_xattr_block_set(handle_t *, struct inode *, int, const char *,const void *,size_t,int);
795 extern void ext3_xattr_delete_inode(handle_t *, struct inode *);
796 extern void ext3_xattr_put_super(struct super_block *);
797 Index: linux-2.6.0/include/linux/ext3_fs.h
798 ===================================================================
799 --- linux-2.6.0.orig/include/linux/ext3_fs.h 2004-01-14 18:54:11.000000000 +0300
800 +++ linux-2.6.0/include/linux/ext3_fs.h 2004-01-14 18:54:12.000000000 +0300
802 __u32 m_i_reserved2[2];
804 } osd2; /* OS dependent 2 */
805 + __u16 i_extra_isize;
809 #define i_size_high i_dir_acl
810 Index: linux-2.6.0/include/linux/ext3_fs_i.h
811 ===================================================================
812 --- linux-2.6.0.orig/include/linux/ext3_fs_i.h 2003-12-30 08:32:44.000000000 +0300
813 +++ linux-2.6.0/include/linux/ext3_fs_i.h 2004-01-14 18:54:12.000000000 +0300
818 + /* on-disk additional length */
819 + __u16 i_extra_isize;
822 * truncate_sem is for serialising ext3_truncate() against
823 * ext3_getblock(). In the 2.4 ext2 design, great chunks of inode's
828 fs/ext3/xattr.c | 634 +++++++++++++++++++++++++++++++++++++++++++---
830 include/linux/ext3_fs.h | 2
831 include/linux/ext3_fs_i.h | 3
832 6 files changed, 623 insertions(+), 34 deletions(-)