Re: [PATCH 08/15] tgt: os.h: Services unavailable in BSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun,  1 Mar 2009 18:51:20 +0200
Boaz Harrosh <bharrosh@xxxxxxxxxxx> wrote:

> * ipc_perm => os_ipc_perm
> 	Let in any request. credential checks are turned
> 	off in BSD.
> 
> * oom_adjust - => os_oom_adjust Not available on BSD
> 
> * ioctl(, BLKGETSIZE64) => os_blockdev_size
> 	FIXME: How to do on BSD
> 
> Signed-off-by: Boaz Harrosh <bharrosh@xxxxxxxxxxx>
> ---
>  usr/bsd/os.c   |   17 +++++++++++++++++
>  usr/linux/os.c |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  usr/mgmt.c     |   27 +--------------------------
>  usr/os.h       |    5 +++++
>  usr/tgtd.c     |   23 +----------------------
>  usr/util.c     |    2 +-
>  6 files changed, 77 insertions(+), 49 deletions(-)
> 
> diff --git a/usr/bsd/os.c b/usr/bsd/os.c
> index f24f515..28a5926 100644
> --- a/usr/bsd/os.c
> +++ b/usr/bsd/os.c
> @@ -22,3 +22,20 @@ int os_sync_file_range(int fd, __off64_t offset, __off64_t bytes,
>  {
>  	return fsync(fd);
>  }
> +
> +int os_ipc_perm(int fd)
> +{
> +	return 0;
> +}
> +
> +int os_oom_adjust(void)
> +{
> +	return 0;
> +}
> +
> +int os_blockdev_size(int fd, uint64_t *size)
> +{
> +	/* FIXME: how to get block-dev size in BSD */
> +	*size = ~0ULL;
> +	return 0;

http://swtch.com/usr/local/plan9/src/lib9/_p9dir.c

Doesn't it work?
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux