Debian bug report logs - #1360 cpio -a option produces spurious messages on read-only fs Package: cpio ; Reported by: Ian Jackson ; 46 days old . ----------------------------------------------------------------------- Message received at debian-bugs: From cus.cam.ac.uk!iwj10 Fri Sep 15 06:47:07 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0stb6h-000EqJC; Fri, 15 Sep 95 06:47 PDT Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA13945 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Fri, 15 Sep 1995 06:46:50 -0700 Received: by bootes.cus.cam.ac.uk (Smail-3.1.29.0 #36) id m0stb6a-000C0sC; Fri, 15 Sep 95 14:47 BST Received: by chiark id (Debian /\oo/\ Smail3.1.29.1 #29.33); Fri, 15 Sep 95 12:16 BST Message-Id: Date: Fri, 15 Sep 95 12:16 BST From: Ian Jackson To: Debian bugs submission address Subject: cpio -a option produces spurious messages on read-only fs Package: cpio Version: 2.3-2 The manpage says: -a, --reset-access-time Reset the access times of files after reading them, so that it does not look like they have just been read. chiark:~> mount /dev/sda2 on / type ext2 (rw) /dev/sdb1 on /usr type ext2 (rw) /dev/sda6 on /var type ext2 (rw) /dev/hda6 on /var/spool/news type ext2 (rw) /dev/hda5 on /u type ext2 (rw) /dev/hda1 on /u/ian type ext2 (rw) /proc on /proc type proc (rw) /dev/sda1 on /dos type msdos (rw,umask=007,uid=100,gid=100) /dev/sda7 on /old type ext2 (ro) chiark:~> cd /old/ chiark:/old> ll etc/passwd -rw-r--r-- 1 root root 785 Mar 2 1995 etc/passwd chiark:/old> echo etc/passwd | cpio -oav -O/dev/null cpio: etc/passwd: Read-only file system etc/passwd 2 blocks chiark:/old> ll -u etc/passwd -rw-r--r-- 1 root root 785 Jul 20 02:21 etc/passwd chiark:/old> If cpio gets EROFS when doing the utime call it should silently ignore the error, because reading the file won't have upset its timestamps if it's on a read-only filesystem. Ian. ----------------------------------------------------------------------- Acknowledgement sent to Ian Jackson : New bug report received and forwarded. Full text available. ----------------------------------------------------------------------- Report forwarded to debian-devel@pixar.com : Bug#1360 ; Package cpio . Full text available. ----------------------------------------------------------------------- Ian Jackson / iwj10@thor.cam.ac.uk , with the debian-bugs tracking mechanism This page last modified 07:43:01 GMT Wed 01 Nov