[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: untaring into ext2fs ./dev/* entries
From:       Matthias Apitz <guru () unixarea ! de>
Date:       2014-01-20 12:32:06
Message-ID: 20140120123205.GA1768 () tiny-r255948
[Download RAW message or body]

El d=EDa Monday, January 20, 2014 a las 11:40:03AM +0100, Matthias Apitz es=
cribi=F3:

> =

> Hello,
> =

> I'm using an OpenSource Linux based cellphone. The software is provided
> as a tar-archive which must be unpacked into an ext2fs on a microSD;
> I do not have any Linux box and want to do this on my FreeBSD
> (10-CURRENT) laptop;
> =

> I can mount the ext2fs fine and when I say:
> =

> # 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 as /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

Is this a bug in ext2fs or a feature?

	matthias

-- =

Sent from my FreeBSD netbook

Matthias Apitz, <guru@unixarea.de>, http://www.unixarea.de/ f: +49-170-4527=
211
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic