From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 24 07:10:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C98D8F40 for ; Fri, 24 Jan 2014 07:10:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A46491CA4 for ; Fri, 24 Jan 2014 07:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0O7A0B6069816 for ; Fri, 24 Jan 2014 07:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0O7A0rR069815; Fri, 24 Jan 2014 07:10:00 GMT (envelope-from gnats) Resent-Date: Fri, 24 Jan 2014 07:10:00 GMT Resent-Message-Id: <201401240710.s0O7A0rR069815@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Apitz 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 ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/186066: can not change file permisions, owner for spacial files in ext2fs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jan 2014 07:10:00 -0000 >Number: 186066 >Category: kern >Synopsis: can not change file permisions, owner for spacial files in ext2fs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 24 07:10:00 UTC 2014 >Closed-Date: >Last-Modified: >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: >Unformatted: