Re: [OT] Hardlinks and directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 12 February 2010 07:45 PM, Patrick O'Callaghan wrote:
> On Fri, 2010-02-12 at 19:20 -0800, Suvayu Ali wrote:
>>> $ fg %1
>>> cat>  foo
>>> testing deleted files
>>> ^Z
>>> [1]+  Stopped                 cat>  foo
>>> $ lsof +L1 -s
>>> COMMAND  PID   USER   FD   TYPE DEVICE SIZE NLINK  NODE NAME
>>> cat     3843 jallad    1w   REG  253,2   22     0 15032 /home/jallad/foo (deleted)
>>> $ fg %1
>>> cat>  foo
>>> ^Z
>>> [1]+  Stopped                 cat>  foo
>
> As far as I can see, you didn't write any extra data on the second
> reconnection to cat, and the size (22 bytes) hasn't changed. Why do you
> think there's something wrong with this?

I was expecting to see something like this on the 2nd reconnection,

cat > foo
testing deleted files

instead of,

cat > foo

On some more experimentation I realised this is how `cat' behaves, it 
doesn't show the lines written the first time, it only shows the stdin 
which is perfectly reasonable. My apologies :-p

>
> poc
>

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux