Re: bzip2 - da się toto przeskoczyć?

2011-08-05 Wątek Łukasz Maśko
Dnia Friday, 5 of August 2011, Łukasz Maśko napisał:
[..]
> $ strace bzip2 services
[...]
> munmap(0xb6e92000, 266240)  = 0
> fchmod(4, 0100777)  = -1 EPERM (Operation not
> permitted) write(2, "\nbzip2: I/O or other error, bail"..., 67
> bzip2: I/O or other error, bailing out.  Possible reason follows.
> ) = 67
> write(2, "bzip2: Operation not permitted\n", 31bzip2: Operation not
> permitted
> ) = 31
> write(2, "\tInput file = services, output f"..., 51 Input file =
> services, output file = services.bz2
> ) = 51
> stat64("services", {st_mode=S_IFREG|0777, st_size=702192, ...}) = 0
> write(2, "bzip2: Deleting output file serv"..., 56bzip2: Deleting output
> file services.bz2, if it exists.
> ) = 56
> close(4)= 0
> munmap(0xb7757000, 16384)   = 0
> unlink("services.bz2")  = 0
> exit_group(1)   = ?

To oczywiście końcówka  strace ;-)
-- 
Łukasz Maśko   GG:   2441498_o)
Lukasz.Masko(at)ipipan.waw.pl   /\\
Registered Linux User #61028   _\_V
Ubuntu: staroafrykańskie słowo oznaczające "Nie umiem zainstalować Debiana"
___
pld-users-pl mailing list
pld-users-pl@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-users-pl


Re: bzip2 - da się toto przeskoczyć?

2011-08-05 Wątek Łukasz Maśko
Dnia Friday, 5 of August 2011, Arkadiusz Miskiewicz napisał:
> On Friday 05 of August 2011, Łukasz Maśko wrote:
> > Zaskoczył mnie właśnie bzip2:
> > 
> > $ bzip2 lark_43.0_backup.tar
> > 
> > bzip2: I/O or other error, bailing out.  Possible reason follows.
> > bzip2: Operation not permitted
> 
> Zrób strace to się dowiemy co jest "not permitted".

Zmiana atrybutów - jak pisałem, to jest na vfacie. (poniżej strace na pliku 
skopiowanym pliku /etc/services

$ strace bzip2 services
munmap(0xb6e92000, 266240)  = 0
fchmod(4, 0100777)  = -1 EPERM (Operation not permitted)
write(2, "\nbzip2: I/O or other error, bail"..., 67
bzip2: I/O or other error, bailing out.  Possible reason follows.
) = 67
write(2, "bzip2: Operation not permitted\n", 31bzip2: Operation not 
permitted
) = 31
write(2, "\tInput file = services, output f"..., 51 Input file = 
services, output file = services.bz2
) = 51
stat64("services", {st_mode=S_IFREG|0777, st_size=702192, ...}) = 0
write(2, "bzip2: Deleting output file serv"..., 56bzip2: Deleting output 
file services.bz2, if it exists.
) = 56
close(4)= 0
munmap(0xb7757000, 16384)   = 0
unlink("services.bz2")  = 0
exit_group(1)   = ?

-- 
Łukasz Maśko   GG:   2441498_o)
Lukasz.Masko(at)ipipan.waw.pl   /\\
Registered Linux User #61028   _\_V
Ubuntu: staroafrykańskie słowo oznaczające "Nie umiem zainstalować Debiana"
___
pld-users-pl mailing list
pld-users-pl@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-users-pl


Re: bzip2 - da się toto przeskoczyć?

2011-08-05 Wątek Arkadiusz Miskiewicz
On Friday 05 of August 2011, Łukasz Maśko wrote:
> Zaskoczył mnie właśnie bzip2:
> 
> $ bzip2 lark_43.0_backup.tar
> 
> bzip2: I/O or other error, bailing out.  Possible reason follows.
> bzip2: Operation not permitted

Zrób strace to się dowiemy co jest "not permitted".

-- 
Arkadiusz MiśkiewiczPLD/Linux Team
arekm / maven.plhttp://ftp.pld-linux.org/
___
pld-users-pl mailing list
pld-users-pl@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-users-pl


bzip2 - da się toto przeskoczyć?

2011-08-05 Wątek Łukasz Maśko
Zaskoczył mnie właśnie bzip2:

$ bzip2 lark_43.0_backup.tar

bzip2: I/O or other error, bailing out.  Possible reason follows.
bzip2: Operation not permitted
Input file = lark_43.0_backup.tar, output file = 
lark_43.0_backup.tar.bz2
bzip2: Deleting output file lark_43.0_backup.tar.bz2, if it exists.

Nie dziwne, że nie może zmienić praw dostępu, plik leży na dysku z vfat. 
gzip nie ma z tym problemów - pluje się na prawa dostępu, ale plik 
kompresuje i nie kasuje. Plik w końcu bez problemu skompresowałem 
wpuszczając go bzipowi na stdin. Ale nie w tym rzecz, żeby znaleźć objazd.

PS. Nie jest to krytyczne, ale dobrze by było wiedzieć na przyszłość :-)
-- 
Łukasz Maśko   GG:   2441498_o)
Lukasz.Masko(at)ipipan.waw.pl   /\\
Registered Linux User #61028   _\_V
Ubuntu: staroafrykańskie słowo oznaczające "Nie umiem zainstalować Debiana"
___
pld-users-pl mailing list
pld-users-pl@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-users-pl