Just another Perl shrine | |
PerlMonks |
Can't delete big file (>2GB) under Linux (XFS & Reseirfs) by unlinkby vita555 (Initiate) |
on Dec 11, 2002 at 09:14 UTC ( [id://219036]=perlquestion: print w/replies, xml ) | Need Help?? |
vita555 has asked for the wisdom of the Perl Monks concerning the following question:
Hi, monks!
I had discovered all site with "unlink" keyword, but found nothing. My question is:
Linux tkdrzbkup2.nssmb.com 2.4.18-12smp #1 SMP Fri Jun 14 15:22:49 EDT
2002 i686Linux,Red Hat 7.1, ReseirFS
root@tkdrzbkup2 staging# dd if=/dev/zero of=big_file bs=1M count=3072 3072+0 records in 3072+0 records out /export/staging root@tkdrzbkup2 staging# mount /dev/rza1 on / type ext2 (rw) /dev/rze1 on /export type reiserfs (rw) root@tkdrzbkup2 staging# ls -l total 3148800 -rw-r--r-- 1 root root 3221225472 Nov 12 09:56 big_file root@tkdrzbkup2 staging# perl -e 'printf "Deleted %d files\n", unlink "/export/staging/big_file"'"' Deleted 0 files For checking: root@tkdrzbkup2 staging# ls > a root@tkdrzbkup2 staging# ls -l total 3148804 -rw-r--r-- 1 root root 11 Nov 12 13:33 a -rw-r--r-- 1 root root 3221225472 Nov 12 09:56 big_file root@tkdrzbkup2 staging# perl -e 'printf "Deleted %d files\n", unlink "/export/staging/a"' Deleted 1 files Command 'rm': root@tkdrzbkup2 staging# rm -f big_file root@tkdrzbkup2 staging# ls -l total 0 It means, unlink doesn't work with big files. Perl info: root@tkdrzbkup2 staging# perl -V
Back to
Seekers of Perl Wisdom
|
|