Menu

#2 porg doesn't account for hardlinks in size calculation

1.0
open
nobody
None
2014-11-30
2014-08-10
ojab
No

For example, git (which has 111 hardlinks to 7,5M /usr/bin/git) counted as 906M instead of 70M in reality:

ojab [ ~ ]$ porg -s git
906M git-2.0.4
ojab [ ~ ]$ ls -larth /usr/bin/git
-rwxr-xr-x 111 root root 7,5M Aug 8 11:50 /usr/bin/git

Related

Tickets: #2

Discussion

  • David Ricart

    David Ricart - 2014-11-30

    OK.

    So the fix here would be to detect all hard links pointing to the same
    file, and counting its size only once.

    I'll deal with it right away.

    Thanks for helping,

    ~David.

     
    • David Ricart

      David Ricart - 2014-11-30

      FIXED IN SVN!

      Now sizes of hardlinks are printed like if they were ordinary files,
      but when calculating the total size of the packages, multiple
      hardlinks pointing to the same file are counted only once.

      Cheers.

      2014-11-30 13:56 GMT+01:00, David Ricart davidrr@users.sf.net:

      OK.

      So the fix here would be to detect all hard links pointing to the same
      file, and counting its size only once.

      I'll deal with it right away.

      Thanks for helping,

      ~David.


      [tickets:#2] porg doesn't account for hardlinks in size calculation

      Status: open
      Milestone: 1.0
      Created: Sun Aug 10, 2014 03:04 PM UTC by ojab
      Last Updated: Sun Aug 10, 2014 03:04 PM UTC
      Owner: nobody

      For example, git (which has 111 hardlinks to 7,5M /usr/bin/git) counted as
      906M instead of 70M in reality:

      ojab [ ~ ]$ porg -s git
      906M git-2.0.4
      ojab [ ~ ]$ ls -larth /usr/bin/git
      -rwxr-xr-x 111 root root 7,5M Aug 8 11:50 /usr/bin/git


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/porg/tickets/2/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #2

  • David Ricart

    David Ricart - 2014-11-30

    OK.

    So the fix here would be to detect all hard links pointing to the same
    file, and counting its size only once.

    I'll deal with it right away.

    Thanks for helping,

    ~David.

    2014-08-10 17:04 GMT+02:00, ojab ojab@users.sf.net:


    [tickets:#2] porg doesn't account for hardlinks in size calculation

    Status: open
    Milestone: 1.0
    Created: Sun Aug 10, 2014 03:04 PM UTC by ojab
    Last Updated: Sun Aug 10, 2014 03:04 PM UTC
    Owner: nobody

    For example, git (which has 111 hardlinks to 7,5M /usr/bin/git) counted as
    906M instead of 70M in reality:

    ojab [ ~ ]$ porg -s git
    906M git-2.0.4
    ojab [ ~ ]$ ls -larth /usr/bin/git
    -rwxr-xr-x 111 root root 7,5M Aug 8 11:50 /usr/bin/git


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/porg/tickets/2/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Tickets: #2


Log in to post a comment.