<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ksh: get an error, when filesystem is full (vx_nospace) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5948481#M638995</link>
    <description>&lt;P&gt;&amp;gt;&amp;gt;Also it may depend on how much you write.&amp;nbsp; Have you looked at "file" above to see if the string was written?&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Also if the file wasn't empty, there would have been room before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the OPs case, both of those might have been true - however he is correctly pointing out that the echo shell built-in in the ksh shell does not return an error code when writing to a full filesystem - the same behaviour is seen whether appending to an existing file or a new one. Whether this is "by design" or not, I don't know&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# echo fred &amp;gt;&amp;gt; fred

msgcnt 22 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol6 file system full (1 block extent)

# echo $?
0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2013 07:14:08 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2013-01-30T07:14:08Z</dc:date>
    <item>
      <title>ksh: get an error , when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5947655#M638992</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i allocated today too much space in a filesystem and wondering, why i didn't get an error. is it possible to get an error with "echo xxxx &amp;gt; /&amp;lt;fs&amp;gt;/file"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;Filesystem is full:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kbytes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avail %used Mounted&lt;BR /&gt;/dev/vgtest/config&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16384&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16384&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 100% /test_fs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no error , when i reached 100 % :&lt;/P&gt;&lt;PRE&gt;echo "test" &amp;gt; test; RET=$? ; echo "RET: $RET"  
vxfs: msgcnt 28 mesg 001: V-2-1: vx_nospace - /dev/vgtest/config file system full (1 block extent)RET: 0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no error , when i reached 100 % :&lt;/P&gt;&lt;PRE&gt;touch test;  RET=$? ; echo "RET: $RET"    
RET: 0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example, i get an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cp /etc/hosts . ; RET=$? ; echo "RET: $RET"

vxfs: msgcnt 26 mesg 001: V-2-1: vx_nospace - /dev/vgtest/config file system full (8 block extent)cp: bad copy to ./hosts: write: No space left on device
RET: 1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 15:10:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5947655#M638992</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2013-01-29T15:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error , when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5947837#M638993</link>
      <description>&lt;P&gt;Can't completely explain this, but I presume it is something to do with "echo" being a shell built-in - if you use the actual command /usr/bin/echo you do get an error as in I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# /usr/bin/echo fred &amp;gt;&amp;gt; fred

msgcnt 22 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol6 file system full (1 block extent)
/usr/bin/echo: No space left on device
# echo $?
2&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 17:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5947837#M638993</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2013-01-29T17:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5947903#M638994</link>
      <description>&lt;P&gt;&amp;gt;why I didn't get an error. is it possible to get an error with "echo xxxx &amp;gt; /&amp;lt;fs&amp;gt;/file"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may have to use tusc to see where the error is.&lt;/P&gt;&lt;P&gt;Also it may depend on how much you write.&amp;nbsp; Have you looked at "file" above to see if the string was written?&lt;/P&gt;&lt;P&gt;Also if the file wasn't empty, there would have been room before.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 18:59:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5947903#M638994</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-01-29T18:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5948481#M638995</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;Also it may depend on how much you write.&amp;nbsp; Have you looked at "file" above to see if the string was written?&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Also if the file wasn't empty, there would have been room before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the OPs case, both of those might have been true - however he is correctly pointing out that the echo shell built-in in the ksh shell does not return an error code when writing to a full filesystem - the same behaviour is seen whether appending to an existing file or a new one. Whether this is "by design" or not, I don't know&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# echo fred &amp;gt;&amp;gt; fred

msgcnt 22 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol6 file system full (1 block extent)

# echo $?
0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 07:14:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5948481#M638995</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2013-01-30T07:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5948793#M638996</link>
      <description>&lt;P&gt;&amp;gt;he is correctly pointing out that the echo shell built-in in the ksh shell does not return an error code when writing to a full filesystem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's kind of hard to tell without tusc or looking at the output file.&amp;nbsp; I.e. those console messages may be from some other user.&amp;nbsp; :-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Whether this is "by design" or not&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being sloppy is usually not "by design".&amp;nbsp; :-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you perform a gedanken experiment, is is easy to come up with a reason you can't detect that error.&amp;nbsp; In fact it is near impossible.&amp;nbsp; (Assuming you are using fwrite(3) instead of write(2).)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use fwrite(3) and you don't fill up the buffer, you won't get an error.&amp;nbsp; The first thing you learn about buffered I/O is that you must check for I/O errors on the fclose(3), where the write(2) is done.&lt;/P&gt;&lt;P&gt;So that seems simple but since the user never opened stdout, there is no place to check since it is closed in exit(2).&amp;nbsp; So the error is just thrown away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you want to be pedantic, when writing to stdout/stderr, you must call fflush(3) and check before exit.&amp;nbsp; An that's probably what's missing.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 11:12:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5948793#M638996</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-01-30T11:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949331#M638997</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt; It's kind of hard to tell without tusc or looking at the output file.&amp;nbsp; I.e. those console messages may be from some other user.&amp;nbsp; :-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty confident the console messages were from my command, as I ran the test on my own workstation with only me logged in - however that was an old PA/11.11 box, so I'll repeat on an IA/11.31 box and see if I can post the tusc outputs&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 16:12:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949331#M638997</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2013-01-30T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949337#M638998</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; &amp;gt;he is correctly pointing out that the echo shell built-in in the ksh shell does not return an error code when writing to a full filesystem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is one point , what i mean .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a program , which generates an output . so i put the programmin a ksh script like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./program &amp;gt; outputfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the filesystem reach up the limit.&lt;/P&gt;&lt;P&gt;the ksh script didn't interrupt ... because no error occurrs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it is import that "./program &amp;gt; outputfile" works well, because the output is important .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i think, i have no influence , when the filesystem gets full ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 16:21:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949337#M638998</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2013-01-30T16:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949375#M638999</link>
      <description>&lt;P&gt;so here's the output of a tusc trace attached to a shell - starting just before I hit return on the echo command into the full filesystem and finishing when I got back to the ksh shell prompt&lt;/P&gt;&lt;PRE&gt;( Attached to process 5385 ("ksh") [32-bit] )
[ksh         ][5385] read(0, 0x7fffe970, 80) ............. [sleeping]
[ksh         ][5385] read(0, "\r", 80) ................... = 1
[ksh         ][5385] ioctl(2, TCSETATTR, 0x400139f0) ..... = 0
[ksh         ][5385] write(2, "\n", 1) ................... = 1
[ksh         ][5385] lseek(63487, 14156, SEEK_SET) ....... = 14156
[ksh         ][5385] sigprocmask(SIG_BLOCK, 0x7ffff180, 0x7ffff1a0) = 0
[ksh         ][5385] read(63487, "/ u s r / l o c a l / b i n / t ".., 1024) = 106
[ksh         ][5385] sigprocmask(SIG_SETMASK, 0x7ffff1a0, NULL) = 0
[ksh         ][5385] sigprocmask(SIG_BLOCK, 0x7ffff180, 0x7ffff1a0) = 0
[ksh         ][5385] read(63487, 0x400d537c, 1024) ....... = 0
[ksh         ][5385] sigprocmask(SIG_SETMASK, 0x7ffff1a0, NULL) = 0
[ksh         ][5385] lseek(63487, 0, SEEK_END) ........... = 14262
[ksh         ][5385] write(63487, "e c h o   h e l l o   &amp;gt; &amp;gt;   m y ".., 22) = 22
[ksh         ][5385] fcntl(1, F_DUPFD, 10) ............... = 10
[ksh         ][5385] fcntl(10, F_GETFD, 0) ............... = 0
[ksh         ][5385] fcntl(10, F_SETFD, 1) ............... = 0
[ksh         ][5385] open("myfile", O_WRONLY|O_APPEND|O_CREAT|0x800, 0666) = 3
[ksh         ][5385] fcntl(1, F_GETFD, 0) ................ = 0
[ksh         ][5385] close(1) ............................ = 0
[ksh         ][5385] fcntl(3, F_DUPFD, 1) ................ = 1
[ksh         ][5385] close(3) ............................ = 0
[ksh         ][5385] fcntl(1, F_GETFL, 0) ................ = 2057
[ksh         ][5385] fcntl(1, F_GETFD, 0) ................ = 0
[ksh         ][5385] write(1, 0x40015840, 6) ............. ERR#28 ENOSPC
[ksh         ][5385] close(1) ............................ = 0
[ksh         ][5385] fcntl(10, F_DUPFD, 1) ............... = 1
[ksh         ][5385] close(10) ........................... = 0
[ksh         ][5385] fcntl(1, F_SETFD, 0) ................ = 0
[ksh         ][5385] sigvector(SIGCLD, 0x7ffff170, 0x7ffff180) = 0
[ksh         ][5385] waitpid(-1, 0x7ffff190, WNOHANG|WUNTRACED) ERR#10 ECHILD
[ksh         ][5385] sigvector(SIGCLD, 0x7ffff170, 0x7ffff180) = 0
[ksh         ][5385] time(0x7ffff1c0) .................... = 1359563133
[ksh         ][5385] lseek(63487, 14284, SEEK_SET) ....... = 14284
[ksh         ][5385] sigprocmask(SIG_BLOCK, 0x7ffff180, 0x7ffff1a0) = 0
[ksh         ][5385] read(63487, 0x400d537c, 1024) ....... = 0
[ksh         ][5385] sigprocmask(SIG_SETMASK, 0x7ffff1a0, NULL) = 0
[ksh         ][5385] ioctl(0, TIOCGWINSZ, 0x7ffff1b0) .... = 0
[ksh         ][5385] write(2, "#   ", 2) ................. = 2
[ksh         ][5385] ioctl(2, TCSETATTRD, 0x40013a20) .... = 0
[ksh         ][5385] ioctl(0, FIONREAD, 0x400138b8) ...... = 0
[ksh         ][5385] read(0, 0x40015420, 256) ............ [sleeping]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;So there does seem to be a write there rather than an fwrite&amp;nbsp;which returns an ENOSPC&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 16:47:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949375#M638999</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2013-01-30T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949421#M639000</link>
      <description>&lt;P&gt;&amp;gt;it is import that "./program &amp;gt; outputfile" works well, because the output is important.&lt;/P&gt;&lt;P&gt;&amp;gt;I have no influence, when the filesystem gets full?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my gedanken experiment I told you exactly how to fix echo, so it is your problem in your application, provided it is in C/C++.&lt;/P&gt;&lt;P&gt;You must check for errors after every fwrite, fprintf, printf, etc. to stdout/stderr.&lt;/P&gt;&lt;P&gt;AND you must call fflush(3) and check before exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: If you write lots of output, a check on one of those fwrite/printf calls should catch it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;[ksh ][5385] write(1, 0x40015840, 6) ... ERR#28 ENOSPC&lt;/P&gt;&lt;P&gt;&amp;gt;So there does seem to be a write there rather than an fwrite&amp;nbsp;which returns an ENOSPC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure, since fwrite(3) or printf(3) isn't a syscall.&lt;/P&gt;&lt;P&gt;You might be able to see it at the high level by using exec or {...; } to redirect stdout and have several echoes.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 17:38:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949421#M639000</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-01-30T17:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949463#M639001</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt; Sure, since fwrite(3) or printf(3) isn't a syscall&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;D'oh!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wakey Wakey Duncan! - oh well...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 18:26:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5949463#M639001</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2013-01-30T18:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5964569#M639002</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;last question zu my message 7# :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; ./program &amp;gt; outputfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; but it is import that "./program &amp;gt; outputfile" works well, because the output is important .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; so i think, i have no influence , when the filesystem gets full ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have no alternative in a ksh script to get an errror , when file system gets full ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 13:07:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5964569#M639002</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2013-02-15T13:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error, when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5964797#M639003</link>
      <description>&lt;P&gt;&amp;gt;I have no alternative in a ksh script to get an error, when file system gets full?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, if ./program is a executable, you need to fix it, as I mentioned above.&lt;/P&gt;&lt;P&gt;If it is a ksh echo command, this is a "bug" in ksh that needs to be reported.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2013 00:53:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5964797#M639003</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-02-16T00:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error , when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5965043#M639004</link>
      <description>&lt;P&gt;&amp;gt; no error , when i reached 100 % :&lt;/P&gt;&lt;PRE&gt;echo "test" &amp;gt; test; RET=$? ; echo "RET: $RET"  
vxfs: msgcnt 28 mesg 001: V-2-1: vx_nospace - /dev/vgtest/config file system full (1 block extent)RET: 0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you've ran this test before reaching 100%, you're overwriting the contents of the existing file with new content. As long as the new contents are shorter than or equal to the previous contents, no new disk space will need to be allocated: if the file "test" previously contained a significantly larger amount of data, this operation might even *free* some disk blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; no error , when i reached 100 % :&lt;/P&gt;&lt;PRE&gt;touch test;  RET=$? ; echo "RET: $RET"    
RET: 0&lt;/PRE&gt;&lt;P&gt;A zero-length file may only need a directory metadata slot, not an actual data block. A single block that contains directory metadata can easily contain several metadata slots, so even if all the blocks are allocated, you may be able to add zero-length files to directories whose existing metadata blocks don't yet have all their slots in use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; example, i get an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cp /etc/hosts . ; RET=$? ; echo "RET: $RET"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If ./hosts does not already exist, this command creates a copy of a file with non-zero length, requiring at least 1 new data block to be allocated. Obviously this will fail if the disk is 100% full.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also remember that disk space is allocated in blocks. If the size of a file is not an exact multiple of the filesystem block size, you can always write at least some new data to the file, even if the disk is 100% full. But as soon as the last block of the file is 100% in use, the filesystem needs to allocate another data block to the file to add more data, and if the disk is full, this will fail.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2013 00:08:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5965043#M639004</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2013-02-16T00:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: ksh: get an error , when filesystem is full (vx_nospace)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5965053#M639006</link>
      <description>&lt;P&gt;&amp;gt;If you've ran this test before reaching 100%, you're overwriting the contents of the existing file with new content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I already pointed this out and they refuted it.&amp;nbsp; I.e. they got the error using tusc.&lt;/P&gt;&lt;P&gt;And I'm easily convinced that it is hard to check if stdout is full, if you only write a "few" bytes.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2013 00:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-get-an-error-when-filesystem-is-full-vx-nospace/m-p/5965053#M639006</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-02-16T00:52:20Z</dc:date>
    </item>
  </channel>
</rss>

