pub fn add_alias(&self, alias: &str) -> bool {
        let alias = CString::new(alias).unwrap();
        let ret = unsafe {
            spdk_sys::spdk_bdev_alias_add(self.0.as_ptr(), alias.as_ptr())
        };

        ret == 0
    }
/// Set an alias on the bdev, this alias can be used to find the bdev later
Set an alias on the bdev, this alias can be used to find the bdev later
Set an alias on the bdev this alias can be used to find the bdev later
pub fn add_alias(&self, alias: &str) -> bool {
        let alias = CString::new(alias).unwrap();
        let ret = unsafe {
            spdk_sys::spdk_bdev_alias_add(self.0.as_ptr(), alias.as_ptr())
        };
        ret == 0
    }
pub fn add_alias ( & self , alias : & str ) -> bool { let alias = CString :: new ( alias ) . unwrap ( ) ; let ret = unsafe { spdk_sys :: spdk_bdev_alias_add ( self . 0 . as_ptr ( ) , alias . as_ptr ( ) ) } ; ret == 0 }
Set an alias on the bdev, this alias can be used to find the bdev later
Set an alias on the bdev this alias can be used to find the bdev later
&self
alias
&str