IOError: [Errno 28] No space left on device
hong zhang
henryzhang62 at yahoo.com
Wed Nov 18 14:15:53 EST 2009
--- On Wed, 11/18/09, Grant Edwards <invalid at invalid.invalid> wrote:
> From: Grant Edwards <invalid at invalid.invalid>
> Subject: Re: IOError: [Errno 28] No space left on device
> To: python-list at python.org
> Date: Wednesday, November 18, 2009, 9:22 AM
> On 2009-11-18, hong zhang <henryzhang62 at yahoo.com>
> wrote:
>
> >> Apparently the harddisk where you stored the file
> is full?
>
> It's not a real file, and takes up no space.
>
> > I have plenty space see:
> > $ df -l
> > Filesystem
> 1K-blocks Used
> Available Use% Mounted on
> > /dev/sda1
> 74027808 4910016
> 65357380 7% /
>
> That doesn't matter. /sys doesn't contain real
> files. It's an
> API to access kernel internals.
>
> > but following is good.
> >
> > cont_tx = 1
> > for i in
> glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
> > with open(i, 'w') as f:
> > print >>f,
> cont_tx
>
> Well, if that works, then what's your problem?
But error comes from following, above is good. That is point here.
def do_cont_tx( is_start):
global cont_tx_started, stdscr
if is_start == START and not cont_tx_started:
cont_tx = 1
for i in glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
with open(i, 'w') as f:
print >>f, cont_tx
More information about the Python-list
mailing list