IOError: [Errno 28] No space left on device

H

hong zhang

List,

My python script has a strange error.

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

work perfectly.

But following get error like:
print >>f, cont_tx
IOError: [Errno 28] No space left on device

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

Too many layers?
Thanks for help.

---henry
 
L

Lie Ryan

hong said:
List,

My python script has a strange error.

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

work perfectly.

But following get error like:
print >>f, cont_tx
IOError: [Errno 28] No space left on device

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

Too many layers?
Thanks for help.

Apparently the harddisk where you stored the file is full?
 
T

Tim Chase

for i in glob.glob('/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx'):
with open(i, 'w') as f:
print >>f, cont_tx

work perfectly.

But following get error like:
print >>f, cont_tx
IOError: [Errno 28] No space left on device

Apparently the harddisk where you stored the file is full?

Likely a misinterpretation of the error. I'm guessing either one
needs to be root to write to this [likely virtual] file, or a
member of an associated group. It would help to have the output of

bash$ whoami
bash$ id

and

bash$ ls -lsF
/sys/kernel/debug/ieee80211/phy*/iwlagn/data/continuous_tx


I'd be particularly interested in the group association and the
permission bits.

-tkc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top