Skip to contentSkip to conversation

Device files on read-only file systems?

DISCUSSION Jeff Mahoney 2 participants 3 messages Aug 15, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi all -

btrfs_permission currently returns -EROFS when the root is set read-only and the open is requested read-write. It doesn't make an exception for device files. Is this intentional?

-Jeff

Signature · 2 lines
Jeff Mahoney
SUSE Labs
#1 lore raw

Excerpts from Jeff Mahoney's message of 2011-08-15 09:11:24 -0400:

Quoted 5 lines

Hi all -

btrfs_permission currently returns -EROFS when the root is set read-only and the open is requested read-write. It doesn't make an exception for device files. Is this intentional?

No, definitely not intentional.

-chris

#2 lore raw
Quoted 8 lines · Chris Mason

Excerpts from Jeff Mahoney's message of 2011-08-15 09:11:24 -0400:

Quoted 5 lines

Hi all -

btrfs_permission currently returns -EROFS when the root is set read-only and the open is requested read-write. It doesn't make an exception for device files. Is this intentional?

No, definitely not intentional.

Ok. I'll post a patch in a few minutes.

-Jeff

Signature · 2 lines
Jeff Mahoney
SUSE Labs