From nobody@FreeBSD.org  Fri Jan 24 07:08:59 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id CCEAFF0F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Jan 2014 07:08:59 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id B88CA1C93
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Jan 2014 07:08:59 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0O78xL4036024
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Jan 2014 07:08:59 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0O78wYR036023;
	Fri, 24 Jan 2014 07:08:58 GMT
	(envelope-from nobody)
Message-Id: <201401240708.s0O78wYR036023@oldred.freebsd.org>
Date: Fri, 24 Jan 2014 07:08:58 GMT
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: can not change file permisions, owner for spacial files in ext2fs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186066
>Category:       kern
>Synopsis:       [ext2fs] can not change file permisions, owner for spacial files in ext2fs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pfg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 24 07:10:00 UTC 2014
>Closed-Date:    Thu May 29 01:29:52 UTC 2014
>Last-Modified:  Thu May 29 01:29:52 UTC 2014
>Originator:     Matthias Apitz
>Release:        r255948 10.0-ALPHA4
>Organization:
>Environment:
FreeBSD tiny-r255948 10.0-ALPHA4 FreeBSD 10.0-ALPHA4 #1: Fri Oct 18 12:10:57 CES
T 2013     guru@aurora.Sisis.de:/usr/obj/usr/src/sys/GENERIC  i386
>Description:

# uname -a
FreeBSD tiny-r255948 10.0-ALPHA4 FreeBSD 10.0-ALPHA4 #1: Fri Oct 18 12:10:57 CEST 2013
 guru@aurora.Sisis.de:/usr/obj/usr/src/sys/GENERIC  i386

I can mount the ext2fs fine and when I say:

# mount -t ext2fs /dev/da1s1 /mnt

# cd /mnt
# gtar --numeric-owner -xpzf shr-image-om-gta02.tar.gz

it gives errors like this example for all special files:

gtar: ./dev/hda7: Cannot utime: Operation not supported
gtar: ./dev/hda7: Cannot change ownership to uid 0, gid 6: Operation not supported
gtar: ./dev/hda7: Cannot change mode to rw-rw----: Operation not supported
..

This issue is clearly related to ext2fs;

in UFS all is fine:

# mkdir dev
# mknod dev/hda7 b 3 7 root:mail
# chmod 0660 dev/hda7
# ls -l dev/hda7
brw-rw----  1 root  mail  0x307 Jan 20 13:25 dev/hda7

in ext2fs mounted on /mnt it does not work:

# mkdir /mnt/dev
# mknod /mnt/dev/hda7 b 3 7 root:mail
mknod: setting ownership on /mnt/dev/hda7: Operation not supported
# chmod 0660 /mnt/dev/hda7
chmod: /mnt/dev/hda7: Operation not supported
# ls -l /mnt/dev/hda7
brw-r--r--  1 root  wheel  0x307 Jan 20 13:26 /mnt/dev/hda7

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Pedro Giffuni <pfg@FreeBSD.org>
To: bug-followup@FreeBSD.org, guru@unixarea.de
Cc:  
Subject: Re: kern/186066: can not change file permisions, owner for spacial
 files in ext2fs
Date: Fri, 24 Jan 2014 15:36:48 -0500

 Hello;
 
 Unfortunately the HTree dirindex code included an unfortunate change 
 that partially corrupted the inode flags.
 Such bug was fixed in r260545 and has already been merged to 10-stable 
 and 9-stable. A cleaner fix is being worked on but it would be great to 
 know if the simple fix in r260545 solves the issue.
 
 
Responsible-Changed-From-To: freebsd-bugs->pfg 
Responsible-Changed-By: pfg 
Responsible-Changed-When: Thu Apr 17 01:20:40 UTC 2014 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186066 
State-Changed-From-To: open->closed 
State-Changed-By: pfg 
State-Changed-When: Thu May 29 01:27:57 UTC 2014 
State-Changed-Why:  
I haven't been able to reproduce this after r260545. 
I think the issue has been fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186066 
>Unformatted:
