Re: [PATCH] fs: omfs: use kmemdup() rather than kmalloc+memcpy

2020-09-14 Thread Bob Copeland
On Wed, Sep 09, 2020 at 08:04:15PM +0100, Alex Dewar wrote: > On 24/08/2020 22:17, Alex Dewar wrote: > > Issue identified with Coccinelle. > Gentle ping? > > > > Signed-off-by: Alex Dewar Acked-by: Bob Copeland However, I don't have a git tree for OMFS so you'll nee

Re: [PATCH] fs: omfs: Use kmemdup rather than duplicating its implementation in omfs_get_imap

2019-09-03 Thread Bob Copeland
e.kernel.org/lkml/20190703163158.937-1-huangfq.dax...@gmail.com/ -- Bob Copeland %% https://bobcopeland.com/

Re: [PATCH] omfs: Fix a memory leak bug

2019-08-20 Thread Bob Copeland
his issue, > go to the 'nomem_free' label to free 'sbi->s_imap'. Nice catch, thanks. Acked-by: Bob Copeland -- Bob Copeland %% https://bobcopeland.com/

Re: [PATCH 18/20] fs: omfs: Initialize filesystem timestamp ranges

2019-07-30 Thread Bob Copeland
t know if it should be s64 rather than u64, but considering that none of the devices with this filesystem ever exposed dates to users in the negative era, it should be fine. Acked-by: Bob Copeland -- Bob Copeland %% https://bobcopeland.com/

Re: [PATCH] fs/omfs: make use of kmemdup

2019-07-22 Thread Bob Copeland
On Sun, Jul 21, 2019 at 04:53:27PM +0530, Hariprasad Kelam wrote: > kmalloc + memcpy can be replaced with kmemdup. > > fix below issue reported by coccicheck > ./fs/omfs/inode.c:366:9-16: WARNING opportunity for kmemdup > > Signed-off-by: Hariprasad Kelam Thanks! Acke

Re: [PATCH v2 32/35] omfs: Use kmemdup rather than duplicating its implementation

2019-07-03 Thread Bob Copeland
ility, leads to smaller code and also reduce the chances of mistakes. > Suggestion to use kmemdup rather than using kmalloc/kzalloc + memcpy. Acked-by: Bob Copeland -- Bob Copeland %% https://bobcopeland.com/

Re: [PATCH] ath10k: transmit queued frames after waking queues

2018-05-25 Thread Bob Copeland
emantic of "tx fields under tx_lock." On the other hand, maybe it's just me, but I tend to look askance at just-in-case READ_ONCEs sprinkled about. -- Bob Copeland %% https://bobcopeland.com/

Re: [PATCH] ath10k: transmit queued frames after waking queues

2018-05-25 Thread Bob Copeland
emantic of "tx fields under tx_lock." On the other hand, maybe it's just me, but I tend to look askance at just-in-case READ_ONCEs sprinkled about. -- Bob Copeland %% https://bobcopeland.com/

Re: [PATCH] ath10k: transmit queued frames after waking queues

2018-05-24 Thread Bob Copeland
ar); > > > + > > > > Just sanity checking - what's protecting htt->num_pending_tx? or is it > > serialised some other way? [...] > I can't see that any of the examples applies, but let's add READ_ONCE(), > to make sure that the compiler doesn't try to optimize thi

Re: [PATCH] ath10k: transmit queued frames after waking queues

2018-05-24 Thread Bob Copeland
> > Just sanity checking - what's protecting htt->num_pending_tx? or is it > > serialised some other way? [...] > I can't see that any of the examples applies, but let's add READ_ONCE(), > to make sure that the compiler doesn't try to optimize this. Couldn't you just move the num_pending_tx read inside tx_lock which is 2 lines above? I think all the other manipulations are protected by tx_lock. -- Bob Copeland %% https://bobcopeland.com/

Re: [PATCH 03/14] omfs: Implement show_options

2017-07-07 Thread Bob Copeland
ly > over a file descriptor. > > Note that the uid and gid should possibly be displayed relative to the > viewer's user namespace. > > Signed-off-by: David Howells <dhowe...@redhat.com> > cc: Bob Copeland <m...@bobcopeland.com> Acked-by: Bob Copeland <m..

Re: [PATCH 03/14] omfs: Implement show_options

2017-07-07 Thread Bob Copeland
ly > over a file descriptor. > > Note that the uid and gid should possibly be displayed relative to the > viewer's user namespace. > > Signed-off-by: David Howells > cc: Bob Copeland Acked-by: Bob Copeland -- Bob Copeland %% https://bobcopeland.com/

Re: [PATCH 2/7] fs: support RENAME_NOREPLACE for local filesystems

2016-08-25 Thread Bob Copeland
> err = omfs_remove(new_dir, new_dentry); > @@ -444,7 +448,7 @@ static int omfs_readdir(struct file *file, struct > dir_context *ctx) omfs changes look fine. Acked-by: Bob Copeland <m...@bobcopeland.com> -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 2/7] fs: support RENAME_NOREPLACE for local filesystems

2016-08-25 Thread Bob Copeland
> err = omfs_remove(new_dir, new_dentry); > @@ -444,7 +448,7 @@ static int omfs_readdir(struct file *file, struct > dir_context *ctx) omfs changes look fine. Acked-by: Bob Copeland -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH v2 2/3] mac80211: mesh: improve path resolving time

2016-07-19 Thread Bob Copeland
e only cases where "true" is passed). Generally I try to avoid bool parameters where possible because when you look at a callsite, you don't know immediately what "true" and "false" mean, and also each one you add doubles the code paths through a given function. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH v2 2/3] mac80211: mesh: improve path resolving time

2016-07-19 Thread Bob Copeland
e only cases where "true" is passed). Generally I try to avoid bool parameters where possible because when you look at a callsite, you don't know immediately what "true" and "false" mean, and also each one you add doubles the code paths through a given function. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 3/3] mac80211: mesh: fixed HT ies in beacon template

2016-07-18 Thread Bob Copeland
; -are identical for the first 10 bytes */ > memset(_oper->basic_set, 0, 16); > - memcpy(_oper->basic_set, _cap->mcs, 10); This change doesn't look right (basic mcs set will be all zeroes) but then, neither does the original code. Basic MCS set for a mesh STA should be the mandatory MCSes according to 9.7.4. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 3/3] mac80211: mesh: fixed HT ies in beacon template

2016-07-18 Thread Bob Copeland
; -are identical for the first 10 bytes */ > memset(_oper->basic_set, 0, 16); > - memcpy(_oper->basic_set, _cap->mcs, 10); This change doesn't look right (basic mcs set will be all zeroes) but then, neither does the original code. Basic MCS set for a mesh STA should be the mandatory MCSes according to 9.7.4. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 1/4] mac80211: mesh: flush stations before beacons are stopped

2016-07-13 Thread Bob Copeland
test on ath10k and wcn36xx as they are the ones most likely to care about ordering. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 1/4] mac80211: mesh: flush stations before beacons are stopped

2016-07-13 Thread Bob Copeland
test on ath10k and wcn36xx as they are the ones most likely to care about ordering. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 3/4] mac80211: mesh: fixed HT ies in beacon template

2016-06-28 Thread Bob Copeland
sh_add_ht_cap_ie(struct ieee80211_sub_if_data > *sdata, > sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) > return 0; > > +/* determine capability flags */ > + cap = sband->ht_cap.cap; There is some weird whitespace he

Re: [PATCH 3/4] mac80211: mesh: fixed HT ies in beacon template

2016-06-28 Thread Bob Copeland
(struct ieee80211_sub_if_data > *sdata, > sdata->vif.bss_conf.chandef.width == NL80211_CHAN_WIDTH_10) > return 0; > > +/* determine capability flags */ > + cap = sband->ht_cap.cap; There is some weird whitespace here (space instead of tabs for the comment). -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 4/4] mac80211: sta_info: max_peers reached falsely

2016-06-28 Thread Bob Copeland
> verify plink_state is not ESTAB and if so, decrease > plink count and update beacon. This should be fixed already (and properly) by the patch "mac80211: Fix mesh estab links counting" -- please let us know if you have a case that's still broken with that fix. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 4/4] mac80211: sta_info: max_peers reached falsely

2016-06-28 Thread Bob Copeland
ot ESTAB and if so, decrease > plink count and update beacon. This should be fixed already (and properly) by the patch "mac80211: Fix mesh estab links counting" -- please let us know if you have a case that's still broken with that fix. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 2/4] mac80211/cfg: mesh: fix healing time when a mesh peer is disconnecting

2016-06-28 Thread Bob Copeland
.c > @@ -159,7 +159,8 @@ void mesh_sta_cleanup(struct sta_info *sta) > if (!sdata->u.mesh.user_mpm) { > changed |= mesh_plink_deactivate(sta); > del_timer_sync(>mesh->plink_timer); > - } > + } else > + mesh_path_flush_by_nexthop(sta); And this is already fixed in mac80211-next. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 2/4] mac80211/cfg: mesh: fix healing time when a mesh peer is disconnecting

2016-06-28 Thread Bob Copeland
(!sdata->u.mesh.user_mpm) { > changed |= mesh_plink_deactivate(sta); > del_timer_sync(>mesh->plink_timer); > - } > + } else > + mesh_path_flush_by_nexthop(sta); And this is already fixed in mac80211-next. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 01/21] fs: Replace CURRENT_TIME_SEC with current_fs_time()

2016-06-09 Thread Bob Copeland
time interfaces. [...] > Cc: Bob Copeland <m...@bobcopeland.com> OMFS parts look sane, thanks. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 01/21] fs: Replace CURRENT_TIME_SEC with current_fs_time()

2016-06-09 Thread Bob Copeland
time interfaces. [...] > Cc: Bob Copeland OMFS parts look sane, thanks. -- Bob Copeland %% http://bobcopeland.com/

Re: [PATCH 24/31] fs/omfs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Bob Copeland
s - Acked-by: Bob Copeland -- Bob Copeland %% http://bobcopeland.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 24/31] fs/omfs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Bob Copeland
-by: Bob Copeland m...@bobcopeland.com -- Bob Copeland %% http://bobcopeland.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Re: [PATCH] fs, omfs: add NULL terminator in the end up the token list

2015-03-12 Thread Bob Copeland
idn't recognize would sometimes > panic the system. Yikes, thanks for the catch! Acked-by: Bob Copeland > Signed-off-by: Sasha Levin -- Bob Copeland %% http://bobcopeland.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH] fs, omfs: add NULL terminator in the end up the token list

2015-03-12 Thread Bob Copeland
sometimes panic the system. Yikes, thanks for the catch! Acked-by: Bob Copeland m...@bobcopeland.com Signed-off-by: Sasha Levin sasha.le...@oracle.com -- Bob Copeland %% http://bobcopeland.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH V2 resend] FS/OMFS: block number sanity check during fill_super operation

2014-09-29 Thread Bob Copeland
On Mon, Sep 29, 2014 at 07:07:08PM +0200, Fabian Frederick wrote: > This patch defines maximum block number to 2^31. > It also converts bitmap_size and array_size to > unsigned int in omfs_get_imap > > Suggested-By: Linus Torvalds > Suggested-By: Bob Copeland > Cc: Linu

Re: [PATCH V2 resend] FS/OMFS: block number sanity check during fill_super operation

2014-09-29 Thread Bob Copeland
On Mon, Sep 29, 2014 at 07:07:08PM +0200, Fabian Frederick wrote: This patch defines maximum block number to 2^31. It also converts bitmap_size and array_size to unsigned int in omfs_get_imap Suggested-By: Linus Torvalds torva...@linux-foundation.org Suggested-By: Bob Copeland m

Re: [PATCH 1/1] fs/omfs/inode.c: replace count*size kzalloc by kcalloc

2014-06-25 Thread Bob Copeland
han the ones that were available when this FS was used on a few devices. (As for why the designers used u64 for all data structures, I guess just optimism?) -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

Re: [PATCH 1/1] fs/omfs/inode.c: replace count*size kzalloc by kcalloc

2014-06-25 Thread Bob Copeland
On Wed, Jun 25, 2014 at 08:17:17PM +0200, Fabian Frederick wrote: > kcalloc manages count*sizeof overflow. > > Cc: Bob Copeland > Cc: Andrew Morton > Signed-off-by: Fabian Frederick Acked-by: Bob Copeland -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from

Re: [PATCH 1/1] fs/omfs/inode.c: replace count*size kzalloc by kcalloc

2014-06-25 Thread Bob Copeland
4-bit block count, I've never seen an OMFS fs with more than about 2M blocks (typical device had 20 gigs w/ 8k blocks). So it would make sense to bail in omfs_fill_super if that number is greater than 2^31 or so. (I am fine with the kcalloc patch too, though.) -- Bob Copeland %% www.bobcopeland.

Re: [PATCH 1/1] fs/omfs/inode.c: replace count*size kzalloc by kcalloc

2014-06-25 Thread Bob Copeland
fs with more than about 2M blocks (typical device had 20 gigs w/ 8k blocks). So it would make sense to bail in omfs_fill_super if that number is greater than 2^31 or so. (I am fine with the kcalloc patch too, though.) -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send

Re: [PATCH 1/1] fs/omfs/inode.c: replace count*size kzalloc by kcalloc

2014-06-25 Thread Bob Copeland
On Wed, Jun 25, 2014 at 08:17:17PM +0200, Fabian Frederick wrote: kcalloc manages count*sizeof overflow. Cc: Bob Copeland m...@bobcopeland.com Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be Acked-by: Bob Copeland m...@bobcopeland.com -- Bob

Re: [PATCH 1/1] fs/omfs/inode.c: replace count*size kzalloc by kcalloc

2014-06-25 Thread Bob Copeland
. (As for why the designers used u64 for all data structures, I guess just optimism?) -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH V2] fs/omfs/inode.c: use ULLONG_MAX instead of ~0ULL

2014-06-15 Thread Bob Copeland
goto out; So I agree they are the same, but is there a good reason for the change? Semantically, I think of ~0ULL as "all ones" whereas ULLONG_MAX as a maximum of a magnitude comparison, which this is not really. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this l

Re: [PATCH V2] fs/omfs/inode.c: use ULLONG_MAX instead of ~0ULL

2014-06-15 Thread Bob Copeland
they are the same, but is there a good reason for the change? Semantically, I think of ~0ULL as all ones whereas ULLONG_MAX as a maximum of a magnitude comparison, which this is not really. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: linux-next: manual merge of the wireless-next tree with the wireless tree

2013-12-03 Thread Bob Copeland
; > > > > > ieee80211_tx_skb(sdata, skb); > I think the above is correct, the pre_value assignment with 1/++ and > chsw_init moved into another function in Bob's patch. Bob? The quoted resolution looks right to me. But, I think the patch in question was actually Ch

Re: linux-next: manual merge of the wireless-next tree with the wireless tree

2013-12-03 Thread Bob Copeland
so I'm not sure my opinion counts :) -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Re: trace-cmd problem with FC19

2013-10-17 Thread Bob Copeland
ion with a recent kernel. The FC19 distro version may be fine, for all I know. Arend says he used the latest version from the repo which should not be a problem, but just throwing that out there since the symptoms are similar. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from

Re: trace-cmd problem with FC19

2013-10-17 Thread Bob Copeland
ice input Perhaps this is an instance of this bug? https://lkml.org/lkml/2013/5/31/426 tl;dr try with latest trace-cmd? I hit the above myself. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

Re: trace-cmd problem with FC19

2013-10-17 Thread Bob Copeland
? I hit the above myself. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: trace-cmd problem with FC19

2013-10-17 Thread Bob Copeland
distro version may be fine, for all I know. Arend says he used the latest version from the repo which should not be a problem, but just throwing that out there since the symptoms are similar. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line unsubscribe linux

Re: [PATCH 05/21] omfs: drop vmtruncate

2012-11-07 Thread Bob Copeland
On Sat, Nov 03, 2012 at 10:24:58AM +0100, Marco Stornelli wrote: > Removed vmtruncate > > Signed-off-by: Marco Stornelli Thanks! Acked-by: Bob Copeland > --- > fs/omfs/file.c | 22 +++--- > 1 files changed, 15 insertions(+), 7 deletions(-)

Re: [PATCH 05/21] omfs: drop vmtruncate

2012-11-07 Thread Bob Copeland
On Sat, Nov 03, 2012 at 10:24:58AM +0100, Marco Stornelli wrote: Removed vmtruncate Signed-off-by: Marco Stornelli marco.storne...@gmail.com Thanks! Acked-by: Bob Copeland m...@bobcopeland.com --- fs/omfs/file.c | 22 +++--- 1 files changed, 15 insertions(+), 7

Re: [PATCH] omfs: convert to use beXX_add_cpu()

2012-09-28 Thread Bob Copeland
Yongjun Thanks, Acked-by: Bob Copeland -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] omfs: convert to use beXX_add_cpu()

2012-09-28 Thread Bob Copeland
yongjun_...@trendmicro.com.cn Thanks, Acked-by: Bob Copeland m...@bobcopeland.com -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH 20/25] userns: Convert omfs to use kuid and kgid where appropriate

2012-09-20 Thread Bob Copeland
On Thu, Sep 20, 2012 at 06:13:52AM -0700, Eric W. Biederman wrote: > Bob Copeland writes: > > > On Thu, Sep 20, 2012 at 04:42:01AM -0700, Eric W. Biederman wrote: > >> From: "Eric W. Biederman" > >> > >> Cc: Bob Copeland > >> Ack

Re: [PATCH 20/25] userns: Convert omfs to use kuid and kgid where appropriate

2012-09-20 Thread Bob Copeland
On Thu, Sep 20, 2012 at 04:42:01AM -0700, Eric W. Biederman wrote: > From: "Eric W. Biederman" > > Cc: Bob Copeland > Acked-by: Serge Hallyn > Signed-off-by: Eric W. Biederman Thanks, looks good to me. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from

Re: [PATCH 20/25] userns: Convert omfs to use kuid and kgid where appropriate

2012-09-20 Thread Bob Copeland
On Thu, Sep 20, 2012 at 04:42:01AM -0700, Eric W. Biederman wrote: From: Eric W. Biederman ebied...@xmission.com Cc: Bob Copeland m...@bobcopeland.com Acked-by: Serge Hallyn serge.hal...@canonical.com Signed-off-by: Eric W. Biederman ebied...@xmission.com Thanks, looks good to me. -- Bob

Re: [PATCH 20/25] userns: Convert omfs to use kuid and kgid where appropriate

2012-09-20 Thread Bob Copeland
On Thu, Sep 20, 2012 at 06:13:52AM -0700, Eric W. Biederman wrote: Bob Copeland m...@bobcopeland.com writes: On Thu, Sep 20, 2012 at 04:42:01AM -0700, Eric W. Biederman wrote: From: Eric W. Biederman ebied...@xmission.com Cc: Bob Copeland m...@bobcopeland.com Acked-by: Serge Hallyn

Re: [RFT 1/1] single_chip test

2008-02-06 Thread Bob Copeland
> > We failed to resume after a hardware reset here for a whole second. Is > > there any > > version of ath5k which worked for you (is this a regression)? > > I cannot speak for Tino, but my ath5k never worked in MacBook -- it > failed the same way, and I believe the hardware was the same. My >

Re: ath5k failure with 2.6.24-git14

2008-02-06 Thread Bob Copeland
> On Tue, 5 Feb 2008 23:57:46 +0100 Tino Keitel <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I tried the current git (9ef9dc69d4167276c04590d67ee55de8380bc1ad) and > > got the following error message from ath5k: > > > > ath5k_pci :02:00.0: registered as 'phy0' > > ath5k phy0: failed to resume

Re: ath5k failure with 2.6.24-git14

2008-02-06 Thread Bob Copeland
On Tue, 5 Feb 2008 23:57:46 +0100 Tino Keitel [EMAIL PROTECTED] wrote: Hi, I tried the current git (9ef9dc69d4167276c04590d67ee55de8380bc1ad) and got the following error message from ath5k: ath5k_pci :02:00.0: registered as 'phy0' ath5k phy0: failed to resume the MAC Chip

Re: [RFT 1/1] single_chip test

2008-02-06 Thread Bob Copeland
We failed to resume after a hardware reset here for a whole second. Is there any version of ath5k which worked for you (is this a regression)? I cannot speak for Tino, but my ath5k never worked in MacBook -- it failed the same way, and I believe the hardware was the same. My

Re: [PATCH] add_partition silently ignored errors

2007-11-02 Thread Bob Copeland
On 11/2/07, Dirk Hohndel <[EMAIL PROTECTED]> wrote: > > > @@ -554,8 +573,11 @@ int rescan_partitions(struct gendisk *disk, struct > > > block_device *bdev) > > > if (from + size > get_capacity(disk)) { > > > printk(" %s: p%d exceeds device capacity\n", > > >

Re: [PATCH] add_partition silently ignored errors

2007-11-02 Thread Bob Copeland
On 11/2/07, Dirk Hohndel [EMAIL PROTECTED] wrote: @@ -554,8 +573,11 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev) if (from + size get_capacity(disk)) { printk( %s: p%d exceeds device capacity\n,

Re: Documentation files in html format?

2007-08-09 Thread Bob Copeland
On 8/9/07, Stephen Hemminger <[EMAIL PROTECTED]> wrote: > Since the network device documentation needs a rewrite, I was thinking > of using basic html format instead of just plain text. But since this would > be starting an new precedent for kernel documentation, some it seemed > like a worthwhile

Re: Documentation files in html format?

2007-08-09 Thread Bob Copeland
On 8/9/07, Stephen Hemminger [EMAIL PROTECTED] wrote: Since the network device documentation needs a rewrite, I was thinking of using basic html format instead of just plain text. But since this would be starting an new precedent for kernel documentation, some it seemed like a worthwhile topic

Re: If not readdir() then what?

2007-04-10 Thread Bob Copeland
On 4/10/07, Neil Brown <[EMAIL PROTECTED]> wrote: 2/ Some data structure using an ordered search key that is based on the filename (e.g. a B-tree with a search key that is a hash of the filename). In the first case, you just use a fixed opaque cookie for location in a directory. In the

Re: If not readdir() then what?

2007-04-10 Thread Bob Copeland
On 4/10/07, Neil Brown [EMAIL PROTECTED] wrote: 2/ Some data structure using an ordered search key that is based on the filename (e.g. a B-tree with a search key that is a hash of the filename). In the first case, you just use a fixed opaque cookie for location in a directory. In the second

Re: [PATCH -mm 4/4] Blackfin: on-chip Two Wire Interface I2C driver

2007-03-21 Thread Bob Copeland
+config I2C_BLACKFIN_TWI + tristate "Blackfin TWI I2C support" + depends on I2C && (BF534 || BF536 || BF537) + help + This is the TWI I2C device driver for Blackfin 534/536/537. + This driver can also be built as a module. If so, the module + will be

Re: [PATCH -mm 4/4] Blackfin: on-chip Two Wire Interface I2C driver

2007-03-21 Thread Bob Copeland
+config I2C_BLACKFIN_TWI + tristate Blackfin TWI I2C support + depends on I2C (BF534 || BF536 || BF537) + help + This is the TWI I2C device driver for Blackfin 534/536/537. + This driver can also be built as a module. If so, the module + will be called

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Bob Copeland
Thanks for the driver! -- Bob Copeland %% www.bobcopeland.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Bob Copeland
I tried neverball on my Macbook Pro 1st generation (Core Duo, not Core 2 Duo), and the x axis in inverted, not the y axis. Could you confirm which axis is inverted on your Macbook? Indeed, my memory is hazy and it may well have been the x-axis. I can't find my modified copy. I'll check it

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Bob Copeland
I tried neverball on my Macbook Pro 1st generation (Core Duo, not Core 2 Duo), and the x axis in inverted, not the y axis. Could you confirm which axis is inverted on your Macbook? Indeed, my memory is hazy and it may well have been the x-axis. I can't find my modified copy. I'll check it

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Bob Copeland
, available here: http://mactel-linux.svn.sourceforge.net/viewvc/mactel-linux/trunk/tools/hdaps-gl/ ? Is it working correctly? Ok I tried it out again and it is in fact the x-axis that is inverted within neverball. The hdaps-gl works fine (Macbook Core Duo here). Thanks for the driver! -- Bob

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-19 Thread Bob Copeland
On 3/14/07, Nicolas Boichat <[EMAIL PROTECTED]> wrote: Hello, I developed, a while ago, a driver the Apple System Management Controller, which provides an accelerometer (Apple Sudden Motion Sensor), light sensors, temperature sensors, keyboard backlight control and fan control on Intel-based

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-19 Thread Bob Copeland
On 3/14/07, Nicolas Boichat [EMAIL PROTECTED] wrote: Hello, I developed, a while ago, a driver the Apple System Management Controller, which provides an accelerometer (Apple Sudden Motion Sensor), light sensors, temperature sensors, keyboard backlight control and fan control on Intel-based

Re: [patch] epoll use a single inode ...

2007-03-08 Thread Bob Copeland
+ its done only when the path is needed.). Real filesystems probably + dont want to use it, because their dentries are present in global Pedantry: it's and don't? -Bob - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [patch] epoll use a single inode ...

2007-03-08 Thread Bob Copeland
+ its done only when the path is needed.). Real filesystems probably + dont want to use it, because their dentries are present in global Pedantry: it's and don't? -Bob - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: [PATCH] Kwatch: kernel watchpoints using CPU debug registers

2007-02-07 Thread Bob Copeland
On 2/7/07, Alan Stern <[EMAIL PROTECTED]> wrote: I wonder where this convention of using lower numbers to indicate higher priorities comes from... It seems to be quite prevalent even though it's obviously backwards. I agree but at least in the case of 'nice' it works in the sense that the

Re: [PATCH] Kwatch: kernel watchpoints using CPU debug registers

2007-02-07 Thread Bob Copeland
On 2/7/07, Alan Stern [EMAIL PROTECTED] wrote: I wonder where this convention of using lower numbers to indicate higher priorities comes from... It seems to be quite prevalent even though it's obviously backwards. I agree but at least in the case of 'nice' it works in the sense that the value

Re: Free Linux Driver Development!

2007-01-31 Thread Bob Copeland
ges. I do have some interest in working on various device drivers, though. Greg, assuming this somehow kicks off some avalanche of specs, will there be a ML for hooking up driver writers with specs and willing users? -- Bob Copeland %% www.bobcopeland.com - To unsubscribe from this list: send t

Re: Free Linux Driver Development!

2007-01-31 Thread Bob Copeland
interest in working on various device drivers, though. Greg, assuming this somehow kicks off some avalanche of specs, will there be a ML for hooking up driver writers with specs and willing users? -- Bob Copeland %% www.bobcopeland.com - To unsubscribe from this list: send the line unsubscribe linux

Re: my handy-dandy, "coding style" script

2006-12-19 Thread Bob Copeland
On 12/19/06, Dave Jones <[EMAIL PROTECTED]> wrote: On Tue, Dec 19, 2006 at 10:46:24AM -0500, Robert P. J. Day wrote: > > just for fun, i threw the following together to peruse the tree (or > any subdirectory) and look for stuff that violates the CodingStyle > guide. clearly, it's far from

Re: my handy-dandy, coding style script

2006-12-19 Thread Bob Copeland
On 12/19/06, Dave Jones [EMAIL PROTECTED] wrote: On Tue, Dec 19, 2006 at 10:46:24AM -0500, Robert P. J. Day wrote: just for fun, i threw the following together to peruse the tree (or any subdirectory) and look for stuff that violates the CodingStyle guide. clearly, it's far from

Re: Linux slack space question

2006-12-08 Thread Bob Copeland
On 12/8/06, Maria Short <[EMAIL PROTECTED]> wrote: What I need is the code in the kernel that does that. I have been looking at http://lxr.linux.no/source/fs/ext3/inode.c but I could not find the specific code for partially filling the last block and placing an EOF at the end, leaving the rest

Re: Linux slack space question

2006-12-08 Thread Bob Copeland
On 12/8/06, Maria Short [EMAIL PROTECTED] wrote: What I need is the code in the kernel that does that. I have been looking at http://lxr.linux.no/source/fs/ext3/inode.c but I could not find the specific code for partially filling the last block and placing an EOF at the end, leaving the rest to