• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Image Information

Scheduled Pinned Locked Moved Solved
Feature Request
4
9
2.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    Bill Arlofski
    last edited by Apr 22, 2014, 2:48 PM

    We had a request from a client regarding the image information listed. It would be useful if the Image list could contain more information including Image size and creation date/time.

    Currently we just created a listimages.php for the client that does this:

    [CODE]
    <?php
    $output = shell_exec(“ls -oghR --time-style=locale /images/*”);
    echo "List generated on ";
    echo date;
    echo “<pre>$output</pre>”;
    ?>
    [/CODE]

    Yeah, it’s not pretty, but it does provide them with the basic information they need.

    Thanks!

    Bill

    –
    Bill Arlofski
    Reverse Polarity, LLC

    Windows is not the answer. Windows is the question. The answer is [B]no[/B].

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Apr 22, 2014, 3:00 PM

      When you say image size do you mean physical space taken on server or size on images drive? I also just added the last deploy time to the image page so that part should be taken care of.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • B
        Bill Arlofski
        last edited by Apr 22, 2014, 3:19 PM

        re: physical space on server vs. drive size…

        Maybe provide both if possible? They are gzipped on the server, and getting “size on server” would be easy. However, obtaining and displaying the “actual size of image” would not really be possible unless it was calculated on creation and entered into the database.

        At the risk of stating the obvious: gunzip -t on multi-gigabyte files is quite time and cpu intensive, so it would not be something that could be figured on the fly

        Personally, I think something like “total size on server” would suffice. Or (being more creative) listing each partition and mbr in a smaller font under the image’s basic information might be nice too.

        But getting back to our client’s request, it was really brought up to us in the format of “I have this image listed in FOG, and I am not sure if I actually uploaded the imgae or if this was/is still just a place holder… it would be nice if I could see if the file(s) exists or not and if they do, their creation date/time would also be useful”

        So, really, just some additional basic information would probably be enough.

        Bill

        –
        Bill Arlofski
        Reverse Polarity, LLC

        Windows is not the answer. Windows is the question. The answer is [B]no[/B].

        1 Reply Last reply Reply Quote 0
        • J
          Junkhacker Developer
          last edited by Apr 22, 2014, 3:38 PM

          the “actual size of image” is already displayed in the image management view under the column “Image Size”
          it is the size reported by the cloning software calculated at time of creation.
          so this feature already exists.
          the “size on server” however, would be handy, i agree.

          signature:
          Junkhacker
          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

          1 Reply Last reply Reply Quote 0
          • B
            BPSTravis Developer
            last edited by Apr 22, 2014, 3:39 PM

            Tom and I are working on this right now actually. We will see what we can do about adding in size on server while we are at it.

            [SIZE=12px]signature:[/SIZE]
            [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

            1 Reply Last reply Reply Quote 0
            • B
              Bill Arlofski
              last edited by Apr 22, 2014, 3:45 PM

              Junkhacker, re: “actual size already displayed” I need to get my 0.33b demo server back up before commenting further. Our client is using 0.32 and that is where the request came from because on that version the only columns listed are:

              Image name, Description, Storage Group, Edit

              My apologies for asking for something that is already in upcoming release.

              Bill

              –
              Bill Arlofski
              Reverse Polarity, LLC

              Windows is not the answer. Windows is the question. The answer is [B]no[/B].

              1 Reply Last reply Reply Quote 0
              • J
                Junkhacker Developer
                last edited by Apr 22, 2014, 3:47 PM

                i’m sorry for assuming you were running the latest beta. I have little experience with prior versions of fog and keep assuming that people are running the same software i am. 🙂

                signature:
                Junkhacker
                We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                1 Reply Last reply Reply Quote 0
                • B
                  Bill Arlofski
                  last edited by Apr 22, 2014, 4:05 PM

                  Junkhacker Not a problem. It’s really my fault for not being on top of the development before asking questions. 🙂

                  Firing up my 0.33b VM now.

                  Bill

                  –
                  Bill Arlofski
                  Reverse Polarity, LLC

                  Windows is not the answer. Windows is the question. The answer is [B]no[/B].

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Apr 22, 2014, 4:21 PM

                    0.33 now has these parameters. The imageSize is now working properly. It also pulls the information from disk and gets the file size in GiB.

                    Thanks.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    1 / 1
                    • First post
                      2/9
                      Last post

                    200

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project