can't write to a BTRFS disk with my powermac

Bug #1592566 reported by elvisplatini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Hi,
When I try to write to my BTRFS formated external disk, I get an error message explaining the file system is mounted read only. Indeed, I can still read data in it.

A dmesg shows the following errors:

[ 143.354977] usb 1-2: new high-speed USB device number 4 using ehci-pci
[ 143.564941] usb 1-2: New USB device found, idVendor=04e8, idProduct=61b5
[ 143.564955] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 143.564963] usb 1-2: Product: Samsung M3 Portable
[ 143.564971] usb 1-2: Manufacturer: Samsung M3 Portable
[ 143.564978] usb 1-2: SerialNumber: D93E7DFA1900009A
[ 143.668941] usbcore: registered new interface driver usb-storage
[ 143.694409] scsi host5: uas
[ 143.694601] usbcore: registered new interface driver uas
[ 143.696560] scsi 5:0:0:0: Direct-Access Samsung M3 Portable 1402 PQ: 0 ANSI: 6
[ 143.698592] sd 5:0:0:0: Attached scsi generic sg3 type 0
[ 147.091177] sd 5:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 147.091194] sd 5:0:0:0: [sdc] 4096-byte physical blocks
[ 147.092774] sd 5:0:0:0: [sdc] Write Protect is off
[ 147.092785] sd 5:0:0:0: [sdc] Mode Sense: 53 00 00 08
[ 147.093629] sd 5:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 147.109068] sdc: sdc1
[ 147.113161] sd 5:0:0:0: [sdc] Attached SCSI disk
[ 147.744379] BTRFS: device fsid bf584dbe-6bf6-4847-8b32-cb0d22bead69 devid 1 transid 17546 /dev/sdc1
[ 148.044853] BTRFS info (device sdc1): disk space caching is enabled
[ 148.044867] BTRFS: has skinny extents
[ 181.329491] BTRFS: Transaction aborted (error -17)
[ 181.329573] ------------[ cut here ]------------
[ 181.329577] WARNING: at /build/linux-t3xCGW/linux-4.4.0/fs/btrfs/extent-tree.c:2927
[ 181.329580] Modules linked in: uas usb_storage drbg ansi_cprng ctr ccm arc4 zd1211rw mac80211 cfg80211 input_leds mac_hid snd_aoa_codec_onyx snd_aoa snd_seq_midi snd_seq_midi_event rtc_generic snd_rawmidi snd_seq snd_seq_device snd_timer snd soundcore shpchp uio_pdrv_genirq uio parport_pc ppdev lp parport autofs4 btrfs xor raid6_pq windfarm_cpufreq_clamp windfarm_smu_sensors windfarm_smu_controls windfarm_pm112 windfarm_pid sil164 hid_generic nouveau windfarm_lm75_sensor windfarm_max6690_sensor i2c_algo_bit firewire_ohci windfarm_smu_sat windfarm_core firewire_core ttm crc_itu_t drm_kms_helper usbhid ata_generic hid drm tg3 ptp uninorth_agp pps_core
[ 181.329658] CPU: 0 PID: 1490 Comm: btrfs-transacti Not tainted 4.4.0-24-powerpc64-smp #43-Ubuntu
[ 181.329663] task: c00000007a633db0 ti: c00000007d2c0000 task.ti: c00000007d2c0000
[ 181.329666] NIP: d000000001d99274 LR: d000000001d99270 CTR: 0000000000000000
[ 181.329670] REGS: c00000007d2c3690 TRAP: 0700 Not tainted (4.4.0-24-powerpc64-smp)
[ 181.329672] MSR: 9000000000029032 <SF,HV,EE,ME,IR,DR,RI> CR: 24f72442 XER: 20000000
[ 181.329683] SOFTE: 1
               GPR00: d000000001d99270 c00000007d2c3910 d000000001e8f2d0 0000000000000026
               GPR04: c00000025de09ad0 c00000025de0c360 0000000000000036 00000000000002ab
               GPR08: 0000000000000007 c0000000010150fc 000000025cdf6000 0000000000000018
               GPR12: 0000000048f72444 c00000000fdc0000 c0000000000f9f40 c00000007d082b80
               GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
               GPR20: c00000007de65800 0000000000000001 0000000000000000 c00000007b765090
               GPR24: c00000007b784170 c00000007b784160 0000000000000000 c00000007b784000
               GPR28: c00000007de65800 c00000007b765000 c00000024e12bc00 ffffffffffffffef
[ 181.329801] NIP [d000000001d99274] .btrfs_run_delayed_refs+0x364/0x3a0 [btrfs]
[ 181.329846] LR [d000000001d99270] .btrfs_run_delayed_refs+0x360/0x3a0 [btrfs]
[ 181.329848] Call Trace:
[ 181.329894] [c00000007d2c3910] [d000000001d99270] .btrfs_run_delayed_refs+0x360/0x3a0 [btrfs] (unreliable)
[ 181.329941] [c00000007d2c39e0] [d000000001d9a5e0] .btrfs_write_dirty_block_groups+0x1d0/0x300 [btrfs]
[ 181.329995] [c00000007d2c3ab0] [d000000001e4e3fc] .commit_cowonly_roots+0x284/0x36c [btrfs]
[ 181.330044] [c00000007d2c3b90] [d000000001db37f8] .btrfs_commit_transaction+0x708/0xc40 [btrfs]
[ 181.330093] [c00000007d2c3c70] [d000000001daf114] .transaction_kthread+0x2a4/0x340 [btrfs]
[ 181.330101] [c00000007d2c3d30] [c0000000000fa04c] .kthread+0x10c/0x130
[ 181.330108] [c00000007d2c3e30] [c000000000009534] .ret_from_kernel_thread+0x58/0xa4
[ 181.330111] Instruction dump:
[ 181.330114] 7d4048a8 7d474378 7ce049ad 40a2fff4 7c0004ac 7949f7e3 40a2001c 3d420000
[ 181.330124] 7fe4fb78 e86a8900 480be205 e8410028 <0fe00000> 3d220000 7fa3eb78 e8a98908
[ 181.330134] ---[ end trace f2ee5bb68a7c169e ]---
[ 181.330181] BTRFS: error (device sdc1) in btrfs_run_delayed_refs:2927: errno=-17 Object already exists
[ 181.330187] BTRFS info (device sdc1): forced readonly
[ 181.330875] BTRFS warning (device sdc1): Skipping commit of aborted transaction.
[ 181.330887] BTRFS: error (device sdc1) in cleanup_transaction:1746: errno=-17 Object already exists

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-24-powerpc64-smp 4.4.0-24.43
ProcVersionSignature: Ubuntu 4.4.0-24.43-powerpc64-smp 4.4.10
Uname: Linux 4.4.0-24-powerpc64-smp ppc64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: powerpc
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
CurrentDesktop: LXDE
Date: Tue Jun 14 22:58:25 2016
HibernationDevice: RESUME=UUID=d4dc68d8-9f2f-4ece-b5bf-891fd8ff92e2
ProcFB: 0 nouveaufb
ProcKernelCmdLine: root=/dev/sdb3 ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-24-powerpc64-smp N/A
 linux-backports-modules-4.4.0-24-powerpc64-smp N/A
 linux-firmware 1.157
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
elvisplatini (regis-etourmy) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.7-rc1 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7-rc3-yakkety/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
elvisplatini (regis-etourmy) wrote : Re: [Bug 1592566] Re: can't write to a BTRFS disk with my powermac

 I installed Lubuntu a month ago, and I first selected BTRFS for the root filesystem, as on my amd64 machines. It didn't work so I choose ext4 for the root file system.

 Last week, when I first tried tu use my BTRFS fomated external drive, the kernel was in version 4.4.0-22. I couldn't write to it, as I can't now with version 4.4.0.24.

ppc64 kernels are not available on http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7-rc3-yakkety/. I will try to compile it from sources, and let you know if it works.

Thanks a lot for your help!

Revision history for this message
elvisplatini (regis-etourmy) wrote :
Download full text (8.9 KiB)

Hi,

I built the mainline kernel v4.7-rc3-yakkety today. The problem still exists running this kernel:

[ 53.638010] IPv6: ADDRCONF(NETDEV_CHANGE): wlx001cdfdd052f: link becomes ready
[ 284.799611] usb 1-2: new high-speed USB device number 4 using ehci-pci
[ 285.009477] usb 1-2: New USB device found, idVendor=04e8, idProduct=61b5
[ 285.009492] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 285.009501] usb 1-2: Product: Samsung M3 Portable
[ 285.009509] usb 1-2: Manufacturer: Samsung M3 Portable
[ 285.009518] usb 1-2: SerialNumber: D93E7DFA1900009A
[ 285.113800] usbcore: registered new interface driver usb-storage
[ 285.142745] scsi host5: uas
[ 285.142982] usbcore: registered new interface driver uas
[ 285.145458] scsi 5:0:0:0: Direct-Access Samsung M3 Portable 1402 PQ: 0 ANSI: 6
[ 285.176919] sd 5:0:0:0: Attached scsi generic sg3 type 0
[ 288.510792] sd 5:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 288.510801] sd 5:0:0:0: [sdc] 4096-byte physical blocks
[ 288.512275] sd 5:0:0:0: [sdc] Write Protect is off
[ 288.512282] sd 5:0:0:0: [sdc] Mode Sense: 53 00 00 08
[ 288.513024] sd 5:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 288.528924] sdc: sdc1
[ 288.532525] sd 5:0:0:0: [sdc] Attached SCSI disk
[ 289.152668] BTRFS: device fsid bf584dbe-6bf6-4847-8b32-cb0d22bead69 devid 1 transid 17693 /dev/sdc1
[ 289.439843] BTRFS info (device sdc1): disk space caching is enabled
[ 289.439853] BTRFS info (device sdc1): has skinny extents
[ 322.787805] ------------[ cut here ]------------
[ 322.787900] WARNING: CPU: 1 PID: 1833 at fs/btrfs/inode.c:945 .cow_file_range+0x4a4/0x500 [btrfs]
[ 322.787904] Modules linked in: uas usb_storage drbg ansi_cprng ctr ccm arc4 zd1211rw mac80211 cfg80211 snd_aoa_fabric_layout input_leds mac_hid snd_aoa_codec_onyx snd_aoa snd_seq_midi rtc_generic snd_aoa_i2sbus snd_seq_midi_event snd_rawmidi snd_seq snd_aoa_soundbus snd_seq_device snd_pcm snd_timer rack_meter snd soundcore shpchp uio_pdrv_genirq uio parport_pc ppdev lp parport autofs4 btrfs xor raid6_pq windfarm_cpufreq_clamp windfarm_smu_sensors windfarm_smu_controls windfarm_pm112 windfarm_pid hid_generic sil164 windfarm_max6690_sensor windfarm_lm75_sensor windfarm_smu_sat windfarm_core firewire_ohci nouveau firewire_core ata_generic crc_itu_t usbhid hid tg3 i2c_algo_bit ttm drm_kms_helper ptp drm pps_core uninorth_agp
[ 322.788006] CPU: 1 PID: 1833 Comm: btrfs-transacti Not tainted 4.7.0-rc3-custom #1
[ 322.788010] task: c00000007c354080 ti: c00000007ba3c000 task.ti: c00000007ba3c000
[ 322.788014] NIP: d000000001dc0594 LR: d000000001dc0aa4 CTR: d000000001dc0160
[ 322.788018] REGS: c00000007ba3ec70 TRAP: 0700 Not tainted (4.7.0-rc3-custom)
[ 322.788020] MSR: 900000000202b032 <SF,HV,VEC,EE,FP,ME,IR,DR,RI> CR: 24442282 XER: 20000000
[ 322.788038] SOFTE: 1
               GPR00: d000000001dc0aa4 c00000007ba3eef0 d000000001e983c0 c00000007d7c12b0
               GPR04: f000000008f8e000 0000000000000000 000000000003ffff c00000007ba3f318
               GPR08: d000000001e983c0 0000000000000001 d000000001e954da d000000001e60ea0
               ...

Read more...

Revision history for this message
elvisplatini (regis-etourmy) wrote :
Download full text (9.2 KiB)

oops, I forgot the tag:

kernel-bug-exists-upstream

----- Mail original -----
De: "regis etourmy" <email address hidden>
À: "Bug 1592566" <email address hidden>
Envoyé: Samedi 18 Juin 2016 23:59:10
Objet: Re: [Bug 1592566] Re: can't write to a BTRFS disk with my powermac

Hi,

I built the mainline kernel v4.7-rc3-yakkety today. The problem still exists running this kernel:

[ 53.638010] IPv6: ADDRCONF(NETDEV_CHANGE): wlx001cdfdd052f: link becomes ready
[ 284.799611] usb 1-2: new high-speed USB device number 4 using ehci-pci
[ 285.009477] usb 1-2: New USB device found, idVendor=04e8, idProduct=61b5
[ 285.009492] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 285.009501] usb 1-2: Product: Samsung M3 Portable
[ 285.009509] usb 1-2: Manufacturer: Samsung M3 Portable
[ 285.009518] usb 1-2: SerialNumber: D93E7DFA1900009A
[ 285.113800] usbcore: registered new interface driver usb-storage
[ 285.142745] scsi host5: uas
[ 285.142982] usbcore: registered new interface driver uas
[ 285.145458] scsi 5:0:0:0: Direct-Access Samsung M3 Portable 1402 PQ: 0 ANSI: 6
[ 285.176919] sd 5:0:0:0: Attached scsi generic sg3 type 0
[ 288.510792] sd 5:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 288.510801] sd 5:0:0:0: [sdc] 4096-byte physical blocks
[ 288.512275] sd 5:0:0:0: [sdc] Write Protect is off
[ 288.512282] sd 5:0:0:0: [sdc] Mode Sense: 53 00 00 08
[ 288.513024] sd 5:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 288.528924] sdc: sdc1
[ 288.532525] sd 5:0:0:0: [sdc] Attached SCSI disk
[ 289.152668] BTRFS: device fsid bf584dbe-6bf6-4847-8b32-cb0d22bead69 devid 1 transid 17693 /dev/sdc1
[ 289.439843] BTRFS info (device sdc1): disk space caching is enabled
[ 289.439853] BTRFS info (device sdc1): has skinny extents
[ 322.787805] ------------[ cut here ]------------
[ 322.787900] WARNING: CPU: 1 PID: 1833 at fs/btrfs/inode.c:945 .cow_file_range+0x4a4/0x500 [btrfs]
[ 322.787904] Modules linked in: uas usb_storage drbg ansi_cprng ctr ccm arc4 zd1211rw mac80211 cfg80211 snd_aoa_fabric_layout input_leds mac_hid snd_aoa_codec_onyx snd_aoa snd_seq_midi rtc_generic snd_aoa_i2sbus snd_seq_midi_event snd_rawmidi snd_seq snd_aoa_soundbus snd_seq_device snd_pcm snd_timer rack_meter snd soundcore shpchp uio_pdrv_genirq uio parport_pc ppdev lp parport autofs4 btrfs xor raid6_pq windfarm_cpufreq_clamp windfarm_smu_sensors windfarm_smu_controls windfarm_pm112 windfarm_pid hid_generic sil164 windfarm_max6690_sensor windfarm_lm75_sensor windfarm_smu_sat windfarm_core firewire_ohci nouveau firewire_core ata_generic crc_itu_t usbhid hid tg3 i2c_algo_bit ttm drm_kms_helper ptp drm pps_core uninorth_agp
[ 322.788006] CPU: 1 PID: 1833 Comm: btrfs-transacti Not tainted 4.7.0-rc3-custom #1
[ 322.788010] task: c00000007c354080 ti: c00000007ba3c000 task.ti: c00000007ba3c000
[ 322.788014] NIP: d000000001dc0594 LR: d000000001dc0aa4 CTR: d000000001dc0160
[ 322.788018] REGS: c00000007ba3ec70 TRAP: 0700 Not tainted (4.7.0-rc3-custom)
[ 322.788020] MSR: 900000000202b032 <SF,HV,VEC,EE,FP,ME,IR,DR,RI> CR: 24442282 XER: 20000000
[ 322.788038] SOFTE: 1
      ...

Read more...

Revision history for this message
elvisplatini (regis-etourmy) wrote :

should I had cotes around the tag?

'kernel-bug-exists-upstream'

Revision history for this message
elvisplatini (regis-etourmy) wrote :

and replace had by add ;-) ?

Revision history for this message
elvisplatini (regis-etourmy) wrote :

and cotes by quotes, and go to sleep...

tags: added: kernel-bug-exists-upstream
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.