Date: Fri, 24 Jan 2014 07:08:58 GMT From: Matthias Apitz <guru@unixarea.de> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/186066: can not change file permisions, owner for spacial files in ext2fs Message-ID: <201401240708.s0O78wYR036023@oldred.freebsd.org> Resent-Message-ID: <201401240710.s0O7A0rR069815@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401240708.s0O78wYR036023>