All of lore.kernel.org
 help / color / mirror / Atom feed
* Errors on compiling master-backport of ceph-client-standalone
@ 2010-12-16  7:39 Henry C Chang
  2010-12-16  7:56 ` Jeff Wu
  2010-12-16 18:06 ` Sage Weil
  0 siblings, 2 replies; 5+ messages in thread
From: Henry C Chang @ 2010-12-16  7:39 UTC (permalink / raw)
  To: ceph-devel

Hi,

Just tried to compile master-backport of ceph-client-standalone and got errors.
I did two modifications to fix the errors:

1. include <linux/smp_lock.h> in ceph/mds_client.c for lock_kernel()
2. Revert commit "convert ceph"
(ff8a8d2006dca58f71b5dc5df0c95b8f837a0a4e) because mount operation
does not exist before 2.6.37.

Henry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Errors on compiling master-backport of ceph-client-standalone
  2010-12-16  7:39 Errors on compiling master-backport of ceph-client-standalone Henry C Chang
@ 2010-12-16  7:56 ` Jeff Wu
  2010-12-16 18:06 ` Sage Weil
  1 sibling, 0 replies; 5+ messages in thread
From: Jeff Wu @ 2010-12-16  7:56 UTC (permalink / raw)
  To: Henry C Chang; +Cc: ceph-devel@vger.kernel.org



在 2010-12-16四的 15:39 +0800,Henry C Chang写道:
> Hi,
> 
> Just tried to compile master-backport of ceph-client-standalone and got errors.
> I did two modifications to fix the errors:
> 
> 1. include <linux/smp_lock.h> in ceph/mds_client.c for lock_kernel()
> 2. Revert commit "convert ceph"
> (ff8a8d2006dca58f71b5dc5df0c95b8f837a0a4e) because mount operation
> does not exist before 2.6.37.
I also compiled fail for ceph-client-standalone : master &&
master-backport.
 LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 36),
struct file_system_type added  "mount".

---------
static struct file_system_type ceph_fs_type = {
        .owner          = THIS_MODULE,
         .name           = "ceph",
         .mount          = ceph_mount,
         .kill_sb        = ceph_kill_sb,
         .fs_flags       = FS_RENAME_DOES_D_MOVE,
};
 



> 
> Henry
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Errors on compiling master-backport of ceph-client-standalone
  2010-12-16  7:39 Errors on compiling master-backport of ceph-client-standalone Henry C Chang
  2010-12-16  7:56 ` Jeff Wu
@ 2010-12-16 18:06 ` Sage Weil
  1 sibling, 0 replies; 5+ messages in thread
From: Sage Weil @ 2010-12-16 18:06 UTC (permalink / raw)
  To: Henry C Chang; +Cc: ceph-devel

On Thu, 16 Dec 2010, Henry C Chang wrote:
> Hi,
> 
> Just tried to compile master-backport of ceph-client-standalone and got errors.
> I did two modifications to fix the errors:
> 
> 1. include <linux/smp_lock.h> in ceph/mds_client.c for lock_kernel()

Pushed this to the master-backport branch.

> 2. Revert commit "convert ceph"
> (ff8a8d2006dca58f71b5dc5df0c95b8f837a0a4e) because mount operation
> does not exist before 2.6.37.

Sigh... this one is going to be a pain to surround with kernel version 
#ifdefs.  The commit that needs to be conditional on the version is Al's, 
ff8a8d20.  Any takers?

sage

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Errors on compiling master-backport of ceph-client-standalone
@ 2010-12-29  7:18 Henry Chang
  2011-01-03 21:58 ` Sage Weil
  0 siblings, 1 reply; 5+ messages in thread
From: Henry Chang @ 2010-12-29  7:18 UTC (permalink / raw)
  To: ceph-devel

> Sigh... this one is going to be a pain to surround with kernel version
> #ifdefs.  The commit that needs to be conditional on the version is Al's,
> ff8a8d20.  Any takers?

Fixed by two patches:
1. include version.h for kernel version checking
https://github.com/tcloud/ceph-client-standalone/commit/c1696dc02658ae98f2d8c94f03624b18acc8a20a

2. backport mount pre 2.6.37
https://github.com/tcloud/ceph-client-standalone/commit/704ba2ce3aac60fbdc7d10e229f8d93ffe87389f

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Errors on compiling master-backport of ceph-client-standalone
  2010-12-29  7:18 Henry Chang
@ 2011-01-03 21:58 ` Sage Weil
  0 siblings, 0 replies; 5+ messages in thread
From: Sage Weil @ 2011-01-03 21:58 UTC (permalink / raw)
  To: Henry Chang; +Cc: ceph-devel

On Wed, 29 Dec 2010, Henry Chang wrote:
> > Sigh... this one is going to be a pain to surround with kernel version
> > #ifdefs.  The commit that needs to be conditional on the version is Al's,
> > ff8a8d20.  Any takers?
> 
> Fixed by two patches:
> 1. include version.h for kernel version checking
> https://github.com/tcloud/ceph-client-standalone/commit/c1696dc02658ae98f2d8c94f03624b18acc8a20a
> 
> 2. backport mount pre 2.6.37
> https://github.com/tcloud/ceph-client-standalone/commit/704ba2ce3aac60fbdc7d10e229f8d93ffe87389f

Thanks!  These are applied.

There are two new patches in unstable now that need backports, too :(... 
the create_workqueue cleanups from Tejun.  The backport essentially needs 
to revert the patch (keep the QUEUED/BUSY bits in place) for older 
kernels.

sage

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-03 21:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-16  7:39 Errors on compiling master-backport of ceph-client-standalone Henry C Chang
2010-12-16  7:56 ` Jeff Wu
2010-12-16 18:06 ` Sage Weil
  -- strict thread matches above, loose matches on Subject: below --
2010-12-29  7:18 Henry Chang
2011-01-03 21:58 ` Sage Weil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.